#37593 [Bgs]: extract() does not work for accented keys

2006-05-31 Thread gallard at mmic dot net
 ID:   37593
 User updated by:  gallard at mmic dot net
 Reported By:  gallard at mmic dot net
 Status:   Bogus
 Bug Type: Arrays related
 Operating System: Linux Mandriva 2006
 PHP Version:  5.0.4
 New Comment:

Toni wrote: 
Which means in the locale used by Apache symbols 
e(accented) and e are equal. 
The following variation shows that the problem is not 
related to an equality to 'e'. 
$x['aq']=1; 
$x['aw']=2; 
$x['aé']=3; 
$x['az']=4; 
have the same problem. Third item is not extracted. 
 
I also checked on another server 
(Apache1.3.33+php4.3.10-16). The problem does not happen. 
 
I do not have access to a more recent version of PHP. Can 
somebody else try it?


Previous Comments:


[2006-05-30 16:19:10] [EMAIL PROTECTED]

Which means in the locale used by Apache symbols e(accented) and e are
equal.
Which is not PHP problem.



[2006-05-30 16:14:55] gallard at mmic dot net

Supplementary note:  
The problem only happen in apache environment.  
There is no problem if executed in CLI mode.



[2006-05-30 09:58:57] [EMAIL PROTECTED]

What if you try with this array?
$x['aq']=1;
$x['aw']=2;
$x['aé']=3;
$x['az']=4;

And with a newer PHP version?



[2006-05-25 21:48:46] gallard at mmic dot net

Description:

Problem seen in PHP5.0.4 
extract() will not extract an array element if the key name 
contain an accented character. In the following example, 
the third element is not extracted. 

Reproduce code:
---
$x['aa']=1;
$x['ae']=2;
$x['aé']=3;
$x['af']=4;
extract($x);
print_r( get_defined_vars());

Expected result:

Array 
( 
[x] = Array 
( 
[aa] = 1 
[ae] = 2 
[aé] = 3 
[af] = 4 
) 
[aa] = 1 
[ae] = 2 
[aé] = 3 
[af] = 4 
) 
 

Actual result:
--
Array 
( 
[x] = Array 
( 
[aa] = 1 
[ae] = 2 
[aé] = 3 
[af] = 4 
) 
 
[aa] = 1 
[ae] = 2 
[af] = 4 
) 
 





-- 
Edit this bug report at http://bugs.php.net/?id=37593edit=1


#37593 [Bgs]: extract() does not work for accented keys

2006-05-31 Thread gallard at mmic dot net
 ID:   37593
 User updated by:  gallard at mmic dot net
 Reported By:  gallard at mmic dot net
 Status:   Bogus
 Bug Type: Arrays related
 Operating System: Linux Mandriva 2006
 PHP Version:  5.0.4
 New Comment:

I was wrong. The problem also happen with PHP4.3.10-16


Previous Comments:


[2006-05-31 18:48:56] gallard at mmic dot net

Toni wrote: 
Which means in the locale used by Apache symbols 
e(accented) and e are equal. 
The following variation shows that the problem is not 
related to an equality to 'e'. 
$x['aq']=1; 
$x['aw']=2; 
$x['aé']=3; 
$x['az']=4; 
have the same problem. Third item is not extracted. 
 
I also checked on another server 
(Apache1.3.33+php4.3.10-16). The problem does not happen. 
 
I do not have access to a more recent version of PHP. Can 
somebody else try it?



[2006-05-30 16:19:10] [EMAIL PROTECTED]

Which means in the locale used by Apache symbols e(accented) and e are
equal.
Which is not PHP problem.



[2006-05-30 16:14:55] gallard at mmic dot net

Supplementary note:  
The problem only happen in apache environment.  
There is no problem if executed in CLI mode.



[2006-05-30 09:58:57] [EMAIL PROTECTED]

What if you try with this array?
$x['aq']=1;
$x['aw']=2;
$x['aé']=3;
$x['az']=4;

And with a newer PHP version?



[2006-05-25 21:48:46] gallard at mmic dot net

Description:

Problem seen in PHP5.0.4 
extract() will not extract an array element if the key name 
contain an accented character. In the following example, 
the third element is not extracted. 

Reproduce code:
---
$x['aa']=1;
$x['ae']=2;
$x['aé']=3;
$x['af']=4;
extract($x);
print_r( get_defined_vars());

Expected result:

Array 
( 
[x] = Array 
( 
[aa] = 1 
[ae] = 2 
[aé] = 3 
[af] = 4 
) 
[aa] = 1 
[ae] = 2 
[aé] = 3 
[af] = 4 
) 
 

Actual result:
--
Array 
( 
[x] = Array 
( 
[aa] = 1 
[ae] = 2 
[aé] = 3 
[af] = 4 
) 
 
[aa] = 1 
[ae] = 2 
[af] = 4 
) 
 





-- 
Edit this bug report at http://bugs.php.net/?id=37593edit=1


#37593 [Fbk-Opn]: extract() does not work for accented keys

2006-05-30 Thread gallard at mmic dot net
 ID:   37593
 User updated by:  gallard at mmic dot net
 Reported By:  gallard at mmic dot net
-Status:   Feedback
+Status:   Open
 Bug Type: Arrays related
 Operating System: Linux Mandriva 2006
-PHP Version:  5.1.4
+PHP Version:  5.0.4
 New Comment:

Supplementary note:  
The problem only happen in apache environment.  
There is no problem if executed in CLI mode.


Previous Comments:


[2006-05-30 09:58:57] [EMAIL PROTECTED]

What if you try with this array?
$x['aq']=1;
$x['aw']=2;
$x['aé']=3;
$x['az']=4;

And with a newer PHP version?



[2006-05-25 21:48:46] gallard at mmic dot net

Description:

Problem seen in PHP5.0.4 
extract() will not extract an array element if the key name 
contain an accented character. In the following example, 
the third element is not extracted. 

Reproduce code:
---
$x['aa']=1;
$x['ae']=2;
$x['aé']=3;
$x['af']=4;
extract($x);
print_r( get_defined_vars());

Expected result:

Array 
( 
[x] = Array 
( 
[aa] = 1 
[ae] = 2 
[aé] = 3 
[af] = 4 
) 
[aa] = 1 
[ae] = 2 
[aé] = 3 
[af] = 4 
) 
 

Actual result:
--
Array 
( 
[x] = Array 
( 
[aa] = 1 
[ae] = 2 
[aé] = 3 
[af] = 4 
) 
 
[aa] = 1 
[ae] = 2 
[af] = 4 
) 
 





-- 
Edit this bug report at http://bugs.php.net/?id=37593edit=1


#37593 [NEW]: extract() does not work for accented keys

2006-05-25 Thread gallard at mmic dot net
From: gallard at mmic dot net
Operating system: Linux Mandriva 2006
PHP version:  5.1.4
PHP Bug Type: *Languages/Translation
Bug description:  extract() does not work for accented keys

Description:

Problem seen in PHP5.0.4 
extract() will not extract an array element if the key name 
contain an accented character. In the following example, 
the third element is not extracted. 

Reproduce code:
---
$x['aa']=1;
$x['ae']=2;
$x['aé']=3;
$x['af']=4;
extract($x);
print_r( get_defined_vars());

Expected result:

Array 
( 
[x] = Array 
( 
[aa] = 1 
[ae] = 2 
[aé] = 3 
[af] = 4 
) 
[aa] = 1 
[ae] = 2 
[aé] = 3 
[af] = 4 
) 
 

Actual result:
--
Array 
( 
[x] = Array 
( 
[aa] = 1 
[ae] = 2 
[aé] = 3 
[af] = 4 
) 
 
[aa] = 1 
[ae] = 2 
[af] = 4 
) 
 

-- 
Edit bug report at http://bugs.php.net/?id=37593edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37593r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37593r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37593r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37593r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=37593r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=37593r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=37593r=needscript
Try newer version:http://bugs.php.net/fix.php?id=37593r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=37593r=support
Expected behavior:http://bugs.php.net/fix.php?id=37593r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=37593r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=37593r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37593r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37593r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37593r=dst
IIS Stability:http://bugs.php.net/fix.php?id=37593r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=37593r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37593r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=37593r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=37593r=mysqlcfg