summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2004-01-28 20:25:30 +0000
committerAndrey Hristov <andrey@php.net>2004-01-28 20:25:30 +0000
commiteaab3ef8cdf1c8fc3fba95948b68e7aedabfbdb1 (patch)
treebaf98a3d08788fc4b461d0174d4995170c01fe2c
parenta61c2d667c93eb13c0677328194cffbd6847618d (diff)
downloadphp-git-eaab3ef8cdf1c8fc3fba95948b68e7aedabfbdb1.tar.gz
this should not belong to HEAD
-rw-r--r--ext/standard/array.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index a023c77673..539848322e 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -1135,12 +1135,6 @@ static void php_search_array(INTERNAL_FUNCTION_PARAMETERS, int behavior)
WRONG_PARAM_COUNT;
}
-#ifndef ZEND_ENGINE_2
- if (Z_TYPE_PP(value) == IS_OBJECT) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Wrong datatype for first argument");
- RETURN_FALSE;
- }
-#endif
if (Z_TYPE_PP(array) != IS_ARRAY) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Wrong datatype for second argument");
@@ -1480,14 +1474,6 @@ PHP_FUNCTION(array_fill)
}
newval = *val;
while (i--) {
-#ifndef ZEND_ENGINE_2
- if (newval->refcount >= 62000) {
- MAKE_STD_ZVAL(newval);
- *newval = **val;
- zval_copy_ctor(newval);
- newval->refcount = 0;
- }
-#endif
zval_add_ref(&newval);
zend_hash_next_index_insert(Z_ARRVAL_P(return_value), &newval, sizeof(zval *), NULL);
}