1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 13:31:27 +02:00

Don't hammer the resource type right off the bat.

This commit is contained in:
Joey Smith
2001-08-14 07:36:18 +00:00
parent e3d6fc72e5
commit 109f414557

View File

@@ -489,7 +489,10 @@ static zval *php_xpathobject_new(xmlXPathObjectPtr obj, int *found TSRMLS_DC)
{
zval *wrapper;
*found = 0;
if (! found) {
*found = 0;
}
if (!obj) {
MAKE_STD_ZVAL(wrapper);
ZVAL_NULL(wrapper);
@@ -585,7 +588,10 @@ static zval *php_xpathcontext_new(xmlXPathContextPtr obj, int *found TSRMLS_DC)
zval *wrapper;
int rsrc_type;
*found = 0;
if (! found) {
*found = 0;
}
if (!obj) {
MAKE_STD_ZVAL(wrapper);
ZVAL_NULL(wrapper);
@@ -660,7 +666,10 @@ static zval *php_domobject_new(xmlNodePtr obj, int *found TSRMLS_DC)
char *content;
int rsrc_type;
*found = 0;
if (! found) {
*found = 0;
}
if (!obj) {
MAKE_STD_ZVAL(wrapper);
ZVAL_NULL(wrapper);