Project

Profile

Help

Bug #4151 ┬╗ saxon.diff

s├ębastien bocahu, 2019-03-05 09:33

View differences:

Saxonica/Saxon-HEC1.1.2/Saxon.C.API/php5_saxon.cpp 2019-02-26 18:27:15.564772680 +0100
833 833
               if(strcmp(objName, "Saxon\\XdmNode")==0) {
834 834
                       ooth = (xdmNode_object*)zend_object_store_get_object(retval TSRMLS_CC);
835 835
                       if(ooth != NULL) {
836
                               obj = ooth->xdmNode->getUnderlyingValue(NULL);
836
                               obj = ooth->xdmNode->getUnderlyingValue();
837 837
                       }
838 838
               }
......
1000 1000
    }
1001 1001
}
1002
PHP_METHOD(XsltProcessor, compileFromStringAndSave)
1003
{
1004
    XsltProcessor *xsltProcessor;
1005
    char * stylesheetStr;
1006
    char * filename;
1007
    size_t len1, len2, myint;
1008
    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &stylesheetStr, filename, &len1, &len2) == FAILURE) {
1009
        RETURN_NULL();
1010
    }
1011
    xsltProcessor_object *obj = (xsltProcessor_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
1012
    xsltProcessor = obj->xsltProcessor;
1013
    if (xsltProcessor != NULL) {
1014
        xsltProcessor->compileFromStringAndSave(stylesheetStr, filename);
1015
    }
1016
}
1017

  
1018
PHP_METHOD(XsltProcessor, compileFromFileAndSave)
1019
{
1020
    XsltProcessor *xsltProcessor;
1021
    char * stylesheetFilename;
1022
    char * filename;
1023
    size_t len1, len2, myint;
1024
    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &stylesheetFilename, filename, &len1, &len2) == FAILURE) {
1025
        RETURN_NULL();
1026
    }
1027
    xsltProcessor_object *obj = (xsltProcessor_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
1028
    xsltProcessor = obj->xsltProcessor;
1029
    if (xsltProcessor != NULL) {
1030
        xsltProcessor->compileFromStringAndSave(stylesheetFilename, filename);
1031
    }
1032
}
1033

  
1034

  
1002 1035
PHP_METHOD(XsltProcessor, compileFromValue)
1003 1036
{
1004 1037
    XsltProcessor *xsltProcessor;
......
3379 3412
    PHP_ME(XsltProcessor, compileFromFile, NULL, ZEND_ACC_PUBLIC)
3380 3413
    PHP_ME(XsltProcessor, compileFromValue, NULL, ZEND_ACC_PUBLIC)
3381 3414
    PHP_ME(XsltProcessor, compileFromString, NULL, ZEND_ACC_PUBLIC)
3415
    PHP_ME(XsltProcessor, compileFromStringAndSave, NULL, ZEND_ACC_PUBLIC)
3416
    PHP_ME(XsltProcessor, compileFromFileAndSave, NULL, ZEND_ACC_PUBLIC)
3382 3417
    PHP_ME(XsltProcessor,  setOutputFile, NULL, ZEND_ACC_PUBLIC)
3383 3418
    PHP_ME(XsltProcessor,  setSourceFromFile, NULL, ZEND_ACC_PUBLIC)
3384 3419
    PHP_ME(XsltProcessor,  setSourceFromXdmValue, NULL, ZEND_ACC_PUBLIC)
......
3581 3616
PHP_MSHUTDOWN_FUNCTION(saxon) {
3582 3617
    UNREGISTER_INI_ENTRIES();
3583
    //SaxonProcessor::release();
3618
    SaxonProcessor::release();
3584 3619
    return SUCCESS;
3585 3620
}
    (1-1/1)