cvs: php4 /ext/domxml php_domxml.c
| From: | Joey Smith | Date: | Tue, 14 Aug 2001 07:36:19 +0000 |
| Subject: | cvs: php4 /ext/domxml php_domxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6818@lists.php.net to get a copy of this message | ||
joey Tue Aug 14 03:36:19 2001 EDT
Modified files:
/php4/ext/domxml php_domxml.c
Log:
Don't hammer the resource type right off the bat.
Index: php4/ext/domxml/php_domxml.c
diff -u php4/ext/domxml/php_domxml.c:1.62 php4/ext/domxml/php_domxml.c:1.63
--- php4/ext/domxml/php_domxml.c:1.62 Tue Aug 14 03:34:20 2001
+++ php4/ext/domxml/php_domxml.c Tue Aug 14 03:36:18 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.62 2001/08/14 07:34:20 joey Exp $ */
+/* $Id: php_domxml.c,v 1.63 2001/08/14 07:36:18 joey Exp $ */
#ifdef HAVE_CONFIG_H
@@ -489,7 +489,10 @@
{
zval *wrapper;
- *found = 0;
+ if (! found) {
+ *found = 0;
+ }
+
if (!obj) {
MAKE_STD_ZVAL(wrapper);
ZVAL_NULL(wrapper);
@@ -585,7 +588,10 @@
zval *wrapper;
int rsrc_type;
- *found = 0;
+ if (! found) {
+ *found = 0;
+ }
+
if (!obj) {
MAKE_STD_ZVAL(wrapper);
ZVAL_NULL(wrapper);
@@ -660,7 +666,10 @@
char *content;
int rsrc_type;
- *found = 0;
+ if (! found) {
+ *found = 0;
+ }
+
if (!obj) {
MAKE_STD_ZVAL(wrapper);
ZVAL_NULL(wrapper);