cvs: php4 /ext/xml xml.c

From: Date: Sat, 23 Dec 2000 21:46:44 +0000
Subject: cvs: php4 /ext/xml xml.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3286@lists.php.net to get a copy of this message
thies Sat Dec 23 13:46:44 2000 EDT Modified files: /php4/ext/xml xml.c Log: fix #8363. fix call_user_function when parser->object is not set. Index: php4/ext/xml/xml.c diff -u php4/ext/xml/xml.c:1.66 php4/ext/xml/xml.c:1.67 --- php4/ext/xml/xml.c:1.66 Wed Dec 13 14:50:10 2000 +++ php4/ext/xml/xml.c Sat Dec 23 13:46:44 2000 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xml.c,v 1.66 2000/12/13 22:50:10 zeev Exp $ */ +/* $Id: xml.c,v 1.67 2000/12/23 21:46:44 thies Exp $ */ #define IS_EXT_MODULE #include "php.h" @@ -358,7 +358,10 @@ retval->type = IS_BOOL; retval->value.lval = 0; - result = call_user_function(EG(function_table), &parser->object, handler, retval, argc, argv); + if (parser->object) + result = call_user_function(EG(function_table), &parser->object, handler, retval, argc, argv); + else + result = call_user_function(EG(function_table), NULL, handler, retval, argc, argv); if (result == FAILURE) { zval **method;

« previous php.cvs (#3286) next »