From 53ad22aec3cc9db43a84b807e4264ed9b8cd000e Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 9 Jul 2007 14:32:59 +0000 Subject: [PATCH] wrong condition --- ext/standard/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/array.c b/ext/standard/array.c index ac4c78a902..b1f25e0a8d 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -1403,7 +1403,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; } -- 2.50.1