Bug #14160 Updated: associative arrays - cannot use exclamation mark in key!
| From: | mfischer@php.net | Date: | Wed, 21 Nov 2001 15:31:10 +0000 |
| Subject: | Bug #14160 Updated: associative arrays - cannot use exclamation mark in key! | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71237@lists.php.net to get a copy of this message | ||
ID: 14160
Updated by: mfischer
Reported By: davidfelton@codemasters.com
Old Status: Open
Status: Feedback
Bug Type: Arrays related
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:
Can't reproduce this under win32 (but only have some 4.0.8-dev).
Lets wait what he reports back with RC
Previous Comments:
------------------------------------------------------------------------
[2001-11-21 10:27:59] davidfelton@codemasters.com
Maybe it is a windows thingie, specifically windows 2000, I don't have the same problem with
4.0.4pl1 and IIS4. If it helps, I'm using the PHP Installer version of 4.0.6 (CGI)
------------------------------------------------------------------------
[2001-11-21 10:22:38] jan@php.net
Can't reproduce this on FreeBSD 4.2-Stable and PHP 4.1.0RC3 as cgi or RC2 as mod_php. maybe a
windows thingie ?
------------------------------------------------------------------------
[2001-11-21 10:22:24] mfischer@php.net
Sorry, of course I meant
http://phpuk.org/~james/php-4.1.0RC3-win32.zip
------------------------------------------------------------------------
[2001-11-21 10:20:43] mfischer@php.net
Works for me:
[chroot] mfischer@ficken:~/src/php/bugtest$ php
<?
$translations=Array();
$translations["Register Now for Free!"]="¡Regístrate ya gratis!";
echo $translations["Register Now for Free!"];
?>
X-Powered-By: PHP/4.0.6-dev
Content-type: text/html
¡Regístrate ya gratis![chroot] mfischer@ficken:~/src/php/bugtest$
Hmm.... probably dumb question, are you really running 4.0.6?
Can you try latest RC
http://www.php.net/~zeev/php-4.1.0RC3.tar.gz
Feedback.
------------------------------------------------------------------------
[2001-11-21 10:15:34] davidfelton@codemasters.com
$translations=Array();
$translations["Register Now for Free!"]="¡Regístrate ya gratis!";
echo $translations["Register Now for Free!"];
will print nothing, or an error about undefined index, depending on your error settings in php.ini.
As I said before, removing the exclamation mark in the key fixes the problem.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=14160
Edit this bug report at http://bugs.php.net/?id=14160&edit=1