1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Index: php5-5.3.3.1/ext/xsl/xsltprocessor.c
===================================================================
--- php5-5.3.3.1.orig/ext/xsl/xsltprocessor.c 2015-10-19 10:57:11.000000000 +0200
+++ php5-5.3.3.1/ext/xsl/xsltprocessor.c 2015-10-19 11:03:11.000000000 +0200
@@ -292,9 +292,11 @@
fci.function_table = EG(function_table);
obj = valuePop(ctxt);
- if (obj->stringval == NULL) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Handler name must be a string");
- xmlXPathFreeObject(obj);
+ if (obj == NULL || obj->stringval == NULL) {
+ if (obj && obj->stringval == NULL) {
+ php_error_docref(NULL, E_WARNING, "Handler name must be a string");
+ xmlXPathFreeObject(obj);
+ }
if (fci.param_count > 0) {
for (i = 0; i < nargs - 1; i++) {
zval_ptr_dtor(&args[i]);
|