1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00

- Use spprintf to avoid two calls to zend_get_executed_filename, suggested

by Marcus Börger
This commit is contained in:
Melvyn Sopacua
2002-11-02 15:01:43 +00:00
parent b39ca47d20
commit 8a210264e7

View File

@@ -554,8 +554,7 @@ PHP_FUNCTION(xslt_process)
/* 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
'arg' scheme */
baseuri = (char *)emalloc(strlen(zend_get_executed_filename(TSRMLS_C))+7+1);
sprintf(baseuri, "file://%s", zend_get_executed_filename(TSRMLS_C));
spprintf(&baseuri, 0, "file://%s", zend_get_executed_filename(TSRMLS_C));
SablotSetBaseForScheme(XSLT_PROCESSOR(handle), "arg", baseuri);