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

From: Date: Tue, 23 Jan 2001 17:25:20 +0000
Subject: PHP 4.0 Bug #8172 Updated: allow extract() of numerically indexed arrays with EXTR_PREFIX_ALL
Groups: php.dev 
Request: Send a blank email to php-dev+get-44835@lists.php.net to get a copy of this message
ID: 8172 Updated by: cynic Reported By: cynic@mail.cz Old-Status: Open Status: Closed Bug Type: Feature/Change Request Assigned To: Comments: implemented. Previous Comments: --------------------------------------------------------------------------- [2000-12-08 11:25:41] cynic@mail.cz 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 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8172

« previous php.dev (#44835) next »