chregu          Tue Aug 10 04:00:09 2004 EDT

  Modified files:              
    /php-src/ext/xsl    xsltprocessor.c 
  Log:
  Fix segfault on error in xslt
  
  
http://cvs.php.net/diff.php/php-src/ext/xsl/xsltprocessor.c?r1=1.32&r2=1.33&ty=u
Index: php-src/ext/xsl/xsltprocessor.c
diff -u php-src/ext/xsl/xsltprocessor.c:1.32 php-src/ext/xsl/xsltprocessor.c:1.33
--- php-src/ext/xsl/xsltprocessor.c:1.32        Sun Aug  8 14:01:33 2004
+++ php-src/ext/xsl/xsltprocessor.c     Tue Aug 10 04:00:06 2004
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: xsltprocessor.c,v 1.32 2004/08/08 18:01:33 chregu Exp $ */
+/* $Id: xsltprocessor.c,v 1.33 2004/08/10 08:00:06 chregu Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -400,7 +400,10 @@
        char **params = NULL;
        int clone;
 
-
+       if (style == NULL) {
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "No stylesheet associated 
to this object");
+               return NULL;
+       }
        if (intern->parameter) {
                params = php_xsl_xslt_make_params(intern->parameter, 0 TSRMLS_CC);
        }

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

Reply via email to