php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43055 extract() failure on ASCII characters from 127 through 255 (0x7f-0xff).
Submitted: 2007-10-20 19:52 UTC Modified: 2007-10-30 01:00 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sebastien dot cabot at umontreal dot ca Assigned:
Status: No Feedback Package: Variables related
PHP Version: 5.2.4 OS: Linux
Private report: No CVE-ID: None
 [2007-10-20 19:52 UTC] 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#

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-20 20:21 UTC] scottmac@php.net
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-22 08:11 UTC] jani@php.net
Works fine for me too using latest CVS. 

 [2007-10-30 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC