1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00

zend_hash_apply() doesn't use ZEND_HASH_APPLY_... macros

This commit is contained in:
Dmitry Stogov
2006-03-14 11:24:45 +00:00
parent a8dbb0ded6
commit 161ae714ae
3 changed files with 4 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ static int clean_non_persistent_constant(zend_constant *c TSRMLS_DC)
static int clean_non_persistent_constant_full(zend_constant *c TSRMLS_DC)
{
return (c->flags & CONST_PERSISTENT) ? ZEND_HASH_APPLY_KEEP : ZEND_HASH_APPLY_REMOVE;
return (c->flags & CONST_PERSISTENT) ? 0 : 1;
}

View File

@@ -103,7 +103,7 @@ static int clean_non_persistent_function(zend_function *function TSRMLS_DC)
static int clean_non_persistent_function_full(zend_function *function TSRMLS_DC)
{
return (function->type == ZEND_INTERNAL_FUNCTION) ? ZEND_HASH_APPLY_KEEP : ZEND_HASH_APPLY_REMOVE;
return (function->type != ZEND_INTERNAL_FUNCTION);
}
@@ -115,7 +115,7 @@ static int clean_non_persistent_class(zend_class_entry **ce TSRMLS_DC)
static int clean_non_persistent_class_full(zend_class_entry **ce TSRMLS_DC)
{
return ((*ce)->type == ZEND_INTERNAL_CLASS) ? ZEND_HASH_APPLY_KEEP : ZEND_HASH_APPLY_REMOVE;
return ((*ce)->type != ZEND_INTERNAL_CLASS);
}

View File

@@ -143,7 +143,7 @@ ZEND_API int zend_cleanup_function_data_full(zend_function *function TSRMLS_DC)
if (function->type == ZEND_USER_FUNCTION) {
zend_cleanup_op_array_data((zend_op_array *) function);
}
return ZEND_HASH_APPLY_KEEP;
return 0;
}
ZEND_API int zend_cleanup_class_data(zend_class_entry **pce TSRMLS_DC)