chregu          Wed Jun 14 09:41:29 2006 UTC

  Modified files:              
    /php-src/ext/xsl    xsltprocessor.c 
  Log:
  Fix a segfault, when an unknown type was given support all known xpath object 
types
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/xsl/xsltprocessor.c?r1=1.45&r2=1.46&diff_format=u
Index: php-src/ext/xsl/xsltprocessor.c
diff -u php-src/ext/xsl/xsltprocessor.c:1.45 
php-src/ext/xsl/xsltprocessor.c:1.46
--- php-src/ext/xsl/xsltprocessor.c:1.45        Fri May 12 18:52:11 2006
+++ php-src/ext/xsl/xsltprocessor.c     Wed Jun 14 09:41:28 2006
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: xsltprocessor.c,v 1.45 2006/05/12 18:52:11 rrichards Exp $ */
+/* $Id: xsltprocessor.c,v 1.46 2006/06/14 09:41:28 chregu Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -231,8 +231,7 @@
                                }
                                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];

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to