diff options
author | Christian Stocker <chregu@php.net> | 2006-06-14 09:43:22 +0000 |
---|---|---|
committer | Christian Stocker <chregu@php.net> | 2006-06-14 09:43:22 +0000 |
commit | a060c0ad4652e9b0288fc1ae9721126c411bb405 (patch) | |
tree | ec94915afbd44df8ed40c13619fdf281f4440ecf | |
parent | dbd78f182ee58b56c0c12c38ec1754f2c9b445f8 (diff) | |
download | php-git-a060c0ad4652e9b0288fc1ae9721126c411bb405.tar.gz |
MFH
Fix a segfault, when an unknown type was given support all known xpath object types
-rw-r--r-- | ext/xsl/xsltprocessor.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/xsl/xsltprocessor.c b/ext/xsl/xsltprocessor.c index e534b1c125..62e0f8aa15 100644 --- a/ext/xsl/xsltprocessor.c +++ b/ext/xsl/xsltprocessor.c @@ -231,8 +231,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t } break; default: - php_error_docref(NULL TSRMLS_CC, E_WARNING, "php:function object type %d is not supported yet", obj->type); - ZVAL_STRING(args[i], "", 0); + ZVAL_STRING(args[i], xmlXPathCastToString(obj), 1); } xmlXPathFreeObject(obj); fci.params[i] = &args[i]; |