Bug #4151 » saxon.diff
Saxonica/Saxon-HEC1.1.2/Saxon.C.API/php5_saxon.cpp 2019-02-26 18:27:15.564772680 +0100 | ||
---|---|---|
if(strcmp(objName, "Saxon\\XdmNode")==0) {
|
||
ooth = (xdmNode_object*)zend_object_store_get_object(retval TSRMLS_CC);
|
||
if(ooth != NULL) {
|
||
obj = ooth->xdmNode->getUnderlyingValue(NULL);
|
||
obj = ooth->xdmNode->getUnderlyingValue();
|
||
}
|
||
}
|
||
... | ... | |
}
|
||
}
|
||
PHP_METHOD(XsltProcessor, compileFromStringAndSave)
|
||
{
|
||
XsltProcessor *xsltProcessor;
|
||
char * stylesheetStr;
|
||
char * filename;
|
||
size_t len1, len2, myint;
|
||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &stylesheetStr, filename, &len1, &len2) == FAILURE) {
|
||
RETURN_NULL();
|
||
}
|
||
xsltProcessor_object *obj = (xsltProcessor_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
|
||
xsltProcessor = obj->xsltProcessor;
|
||
if (xsltProcessor != NULL) {
|
||
xsltProcessor->compileFromStringAndSave(stylesheetStr, filename);
|
||
}
|
||
}
|
||
PHP_METHOD(XsltProcessor, compileFromFileAndSave)
|
||
{
|
||
XsltProcessor *xsltProcessor;
|
||
char * stylesheetFilename;
|
||
char * filename;
|
||
size_t len1, len2, myint;
|
||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &stylesheetFilename, filename, &len1, &len2) == FAILURE) {
|
||
RETURN_NULL();
|
||
}
|
||
xsltProcessor_object *obj = (xsltProcessor_object *) zend_object_store_get_object(getThis() TSRMLS_CC);
|
||
xsltProcessor = obj->xsltProcessor;
|
||
if (xsltProcessor != NULL) {
|
||
xsltProcessor->compileFromStringAndSave(stylesheetFilename, filename);
|
||
}
|
||
}
|
||
PHP_METHOD(XsltProcessor, compileFromValue)
|
||
{
|
||
XsltProcessor *xsltProcessor;
|
||
... | ... | |
PHP_ME(XsltProcessor, compileFromFile, NULL, ZEND_ACC_PUBLIC)
|
||
PHP_ME(XsltProcessor, compileFromValue, NULL, ZEND_ACC_PUBLIC)
|
||
PHP_ME(XsltProcessor, compileFromString, NULL, ZEND_ACC_PUBLIC)
|
||
PHP_ME(XsltProcessor, compileFromStringAndSave, NULL, ZEND_ACC_PUBLIC)
|
||
PHP_ME(XsltProcessor, compileFromFileAndSave, NULL, ZEND_ACC_PUBLIC)
|
||
PHP_ME(XsltProcessor, setOutputFile, NULL, ZEND_ACC_PUBLIC)
|
||
PHP_ME(XsltProcessor, setSourceFromFile, NULL, ZEND_ACC_PUBLIC)
|
||
PHP_ME(XsltProcessor, setSourceFromXdmValue, NULL, ZEND_ACC_PUBLIC)
|
||
... | ... | |
PHP_MSHUTDOWN_FUNCTION(saxon) {
|
||
UNREGISTER_INI_ENTRIES();
|
||
//SaxonProcessor::release();
|
||
SaxonProcessor::release();
|
||
return SUCCESS;
|
||
}
|