cvs: php4 /ext/xslt sablot.c

From: Date: Fri, 07 Dec 2001 17:29:52 +0000
Subject: cvs: php4 /ext/xslt sablot.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8514@lists.php.net to get a copy of this message
rasmus Fri Dec 7 12:29:52 2001 EDT Modified files: /php4/ext/xslt sablot.c Log: Let's not crash when no error str has been set Index: php4/ext/xslt/sablot.c diff -u php4/ext/xslt/sablot.c:1.27 php4/ext/xslt/sablot.c:1.28 --- php4/ext/xslt/sablot.c:1.27 Thu Nov 22 02:48:58 2001 +++ php4/ext/xslt/sablot.c Fri Dec 7 12:29:52 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sablot.c,v 1.27 2001/11/22 07:48:58 derick Exp $ */ +/* $Id: sablot.c,v 1.28 2001/12/07 17:29:52 rasmus Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -581,7 +581,11 @@ } ZEND_FETCH_RESOURCE(handle, php_xslt *, processor_p, -1, le_xslt_name, le_xslt); - RETURN_STRING(XSLT_ERRSTR(handle), 1); + if(XSLT_ERRSTR(handle)) { + RETURN_STRING(XSLT_ERRSTR(handle), 1); + } else { + RETURN_FALSE; + } } /* }}} */

« previous php.cvs (#8514) next »