Index: php_domxml.c =================================================================== RCS file: /repository/php4/ext/domxml/php_domxml.c,v retrieving revision 1.116 diff -u -r1.116 php_domxml.c --- php_domxml.c 4 Feb 2002 21:07:39 -0000 1.116 +++ php_domxml.c 13 Feb 2002 10:53:09 -0000 @@ -718,9 +718,8 @@ { zval *wrapper; - if (! found) { + if (found) *found = 0; - } if (!obj) { MAKE_STD_ZVAL(wrapper); @@ -730,7 +729,8 @@ if ((wrapper = (zval *) xpath_object_get_data((void *) obj))) { zval_add_ref(&wrapper); - *found = 1; + if (found) + *found = 1; return wrapper; } @@ -825,9 +825,8 @@ zval *wrapper; int rsrc_type; - if (! found) { + if (found) *found = 0; - } if (!obj) { MAKE_STD_ZVAL(wrapper); @@ -837,7 +836,8 @@ if ((wrapper = (zval *) xpath_context_get_data((void *) obj))) { zval_add_ref(&wrapper); - *found = 1; + if (found) + *found = 1; return wrapper; } @@ -911,9 +911,8 @@ char *content; int rsrc_type; - if (! found) { + if (found) *found = 0; - } if (!obj) { MAKE_STD_ZVAL(wrapper); @@ -923,7 +922,8 @@ if ((wrapper = (zval *) dom_object_get_data((void *) obj))) { zval_add_ref(&wrapper); - *found = 1; + if (found) + *found = 1; return wrapper; } @@ -3354,9 +3354,8 @@ zval *wrapper; int rsrc_type; - if (! found) { + if (found) *found = 0; - } if (!obj) { MAKE_STD_ZVAL(wrapper); @@ -3366,7 +3365,8 @@ if ((wrapper = (zval *) dom_object_get_data((void *) obj))) { zval_add_ref(&wrapper); - *found = 1; + if (found) + *found = 1; return wrapper; }