summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-08-10 12:54:38 +0000
committerAntony Dovgal <tony2001@php.net>2007-08-10 12:54:38 +0000
commitc13e337f276c216039a640189685765c0883e455 (patch)
treed1f7b6d5d5c6bc1c236192722501d4d8c344f5ec
parent28cf1788a9dfce75683e7b19a10bb9670bde8e2e (diff)
downloadphp-git-c13e337f276c216039a640189685765c0883e455.tar.gz
allow empty prefix (restore 5_2 behavior)
-rw-r--r--ext/standard/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index c7914c0836..b01b598f65 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -1417,7 +1417,7 @@ PHP_FUNCTION(extract)
if (prefix) {
convert_to_text(prefix);
- if (!Z_UNILEN_P(prefix) || !php_valid_var_name(Z_UNIVAL_P(prefix), Z_UNILEN_P(prefix), Z_TYPE_P(prefix))) {
+ if (Z_UNILEN_P(prefix) && !php_valid_var_name(Z_UNIVAL_P(prefix), Z_UNILEN_P(prefix), Z_TYPE_P(prefix))) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "prefix is not a valid identifier");
return;
}