cvs: php-src /ext/xsl xsltprocessor.c
| From: | Rob Richards | Date: | Fri, 02 Sep 2005 15:38:23 +0000 |
| Subject: | cvs: php-src /ext/xsl xsltprocessor.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-33773@lists.php.net to get a copy of this message | ||
rrichards Fri Sep 2 11:38:23 2005 EDT
Modified files:
/php-src/ext/xsl xsltprocessor.c
Log:
Fix crash: handler name not length needs to be passed to php_error_docref
http://cvs.php.net/diff.php/php-src/ext/xsl/xsltprocessor.c?r1=1.42&r2=1.43&ty=u
Index: php-src/ext/xsl/xsltprocessor.c
diff -u php-src/ext/xsl/xsltprocessor.c:1.42 php-src/ext/xsl/xsltprocessor.c:1.43
--- php-src/ext/xsl/xsltprocessor.c:1.42 Fri Sep 2 02:37:29 2005
+++ php-src/ext/xsl/xsltprocessor.c Fri Sep 2 11:38:22 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: xsltprocessor.c,v 1.42 2005/09/02 06:37:29 rrichards Exp $ */
+/* $Id: xsltprocessor.c,v 1.43 2005/09/02 15:38:22 rrichards Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -268,7 +268,7 @@
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call handler %R()",
Z_TYPE(callable), Z_UNIVAL(callable));
} else if ( intern->registerPhpFunctions == 2 &&
zend_u_hash_exists(intern->registered_phpfunctions, Z_TYPE(callable), Z_UNIVAL(callable),
Z_UNILEN(callable) + 1) == 0) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Not allowed to call handler
'%R()'.", Z_TYPE(callable), Z_UNILEN(callable));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Not allowed to call handler
'%R()'.", Z_TYPE(callable), Z_UNIVAL(callable));
// Push an empty string, so that we at least have an xslt result...
valuePush(ctxt, xmlXPathNewString(""));
} else {