PHP 4.0 Bug #8172: allow extract() of numerically indexed arrays with EXTR_PREFIX_ALL

From: Date: Fri, 08 Dec 2000 16:25:41 +0000
Subject: PHP 4.0 Bug #8172: allow extract() of numerically indexed arrays with EXTR_PREFIX_ALL
Groups: php.dev 
Request: Send a blank email to php-dev+get-40574@lists.php.net to get a copy of this message
From: cynic@mail.cz Operating system: * PHP version: 4.0 Latest CVS (08/12/2000) PHP Bug Type: Feature/Change Request Bug description: allow extract() of numerically indexed arrays with EXTR_PREFIX_ALL see subject. I don't know C, so I can't write it myself, but I think the if (zend_hash_get_current_key(Z_ARRVAL_PP(var_array), &varname, &lkey) == HASH_KEY_IS_STRING) { if (_valid_var_name(varname)) { block of the extract function could be probably changed to 1) check whether EXTR_PREFIX_ALL is set, 2) if so, check, whether the PREFIXED varname is valid -- Edit Bug report at: http://bugs.php.net/?id=8172&edit=1

« previous php.dev (#40574) next »