cvs: /php4/ext/wddx wddx.c
| From: | Andrey Zmievski | Date: | Thu, 26 Aug 1999 13:25:53 +0000 |
| Subject: | cvs: /php4/ext/wddx wddx.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3753@lists.php.net to get a copy of this message | ||
andrey Thu Aug 26 09:25:53 1999 EDT
Modified files:
/php4/ext/wddx wddx.c
Log:
Fix for #2161
Index: php4/ext/wddx/wddx.c
diff -u php4/ext/wddx/wddx.c:1.3 php4/ext/wddx/wddx.c:1.4
--- php4/ext/wddx/wddx.c:1.3 Wed Aug 18 12:43:57 1999
+++ php4/ext/wddx/wddx.c Thu Aug 26 09:25:53 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: wddx.c,v 1.3 1999/08/18 16:43:57 andrey Exp $ */
+/* $Id: wddx.c,v 1.4 1999/08/26 13:25:53 andrey Exp $ */
#include "php.h"
#include "php_wddx.h"
@@ -618,10 +618,12 @@
XML_ParserFree(parser);
- wddx_stack_top(&stack, (void**)&ent);
- *return_value = *(ent->data);
- zval_copy_ctor(return_value);
-
+ if (!wddx_stack_is_empty(&stack)) {
+ wddx_stack_top(&stack, (void**)&ent);
+ *return_value = *(ent->data);
+ zval_copy_ctor(return_value);
+ }
+
wddx_stack_destroy(&stack);
}
/* }}} */