diff options
| author | Antony Dovgal <tony2001@php.net> | 2007-08-10 12:54:38 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2007-08-10 12:54:38 +0000 |
| commit | c13e337f276c216039a640189685765c0883e455 (patch) | |
| tree | d1f7b6d5d5c6bc1c236192722501d4d8c344f5ec | |
| parent | 28cf1788a9dfce75683e7b19a10bb9670bde8e2e (diff) | |
| download | php-git-c13e337f276c216039a640189685765c0883e455.tar.gz | |
allow empty prefix (restore 5_2 behavior)
| -rw-r--r-- | ext/standard/array.c | 2 |
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; } |
