?? ?? 1999, Version 4.0 Beta 3
+- Fixed refcount problem in XML module. (Thies)
- Fixed crash in HTTP_RAW_POST_DATA handling (Thies)
- You can use resources as array-indices again (Thies, Zend library)
- Fixed pg_fetch_array() with three arguments (Sascha)
/* }}} */
/* {{{ function prototypes */
-
PHP_MINIT_FUNCTION(xml);
PHP_RINIT_FUNCTION(xml);
PHP_MSHUTDOWN_FUNCTION(xml);
ret->type = IS_RESOURCE;
ret->value.lval = value;
+ zend_list_addref(value);
+
return ret;
}
MAKE_STD_ZVAL(retval);
retval->type = IS_BOOL;
- retval->value.lval = IS_BOOL;
+ retval->value.lval = 0;
/* We cannot call internal variables from a function module as
it breaks any chance of compiling it as a module on windows.
zval_dtor(retval);
efree(retval);
}
- zval_dtor(func);
- efree(func);
+
+ zval_del_ref(&func);
+
for (i = 0; i < argc; i++) {
- if (i != 0) { /* arg 0 is always our parser-resource - we don't wat to destruct that! */
- zval_dtor(argv[i]);
- }
- efree(argv[i]);
+ zval_del_ref(&(argv[i]));
}
+
if (result == FAILURE) {
return NULL;
} else {