mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
allow empty prefix (restore 5_2 behavior)
This commit is contained in:
parent
28cf1788a9
commit
c13e337f27
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user