mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
fix TSRM build
This commit is contained in:
parent
7ea6e4431e
commit
832b5a4964
1 changed files with 1 additions and 1 deletions
|
@ -541,6 +541,7 @@ PHP_FUNCTION(xslt_process)
|
||||||
/* Can return NULL */
|
/* Can return NULL */
|
||||||
if (args) {
|
if (args) {
|
||||||
char *baseuri;
|
char *baseuri;
|
||||||
|
TSRMLS_FETCH();
|
||||||
i=0;
|
i=0;
|
||||||
while (args[i]) {
|
while (args[i]) {
|
||||||
/* We can safely add args[i+1] since xslt_make_array sets args[i] to NULL if
|
/* We can safely add args[i+1] since xslt_make_array sets args[i] to NULL if
|
||||||
|
@ -553,7 +554,6 @@ PHP_FUNCTION(xslt_process)
|
||||||
/* Since we have args passed, we need to set the base uri, so pull in executor
|
/* Since we have args passed, we need to set the base uri, so pull in executor
|
||||||
globals and set the base, using the current filename, specifally for the
|
globals and set the base, using the current filename, specifally for the
|
||||||
'arg' scheme */
|
'arg' scheme */
|
||||||
TSRMLS_FETCH();
|
|
||||||
baseuri = (char *)emalloc(strlen(zend_get_executed_filename(TSRMLS_C))+7+1);
|
baseuri = (char *)emalloc(strlen(zend_get_executed_filename(TSRMLS_C))+7+1);
|
||||||
sprintf(baseuri, "file://%s", zend_get_executed_filename(TSRMLS_C));
|
sprintf(baseuri, "file://%s", zend_get_executed_filename(TSRMLS_C));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue