ID: 43055 Updated by: [EMAIL PROTECTED] Reported By: sebastien dot cabot at umontreal dot ca -Status: Bogus +Status: Open Bug Type: Variables related Operating System: Linux PHP Version: 5.2.4 New Comment:
Oh, had an encoding problem here - request looks valid :-) Previous Comments: ------------------------------------------------------------------------ [2007-10-20 23:21:49] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php \"extract() checks each key to see whether it has a valid variable name.\" http://php.net/extract ------------------------------------------------------------------------ [2007-10-20 20:21:36] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi I can't reproduce this with 5.2.5-dev ------------------------------------------------------------------------ [2007-10-20 19:52:24] sebastien dot cabot at umontreal dot ca Description: ------------ extract() fail to treats keys as variable names when a key contains ASCII characters from 127 through 255 (0x7f-0xff). Reproduce code: --------------- <?php $été = "#"; $a = array('été' => '---'); echo extract($a); /* Failure: return 0 instead of 1 */ echo $été; /* Failure consequence, print '#' instead of '---' */ ?> Expected result: ---------------- 1--- Actual result: -------------- 0# ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43055&edit=1