ID:               30488
 Updated by:       [EMAIL PROTECTED]
 Reported By:      azmoo at azmoo dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Variables related
 Operating System: Linux
 PHP Version:      5.0.2
 New Comment:

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

This is expected, no bug here!


Previous Comments:
------------------------------------------------------------------------

[2004-10-20 06:35:36] azmoo at azmoo dot net

Description:
------------
If referencing an associative array key on a string (which we shouldn't
be doing, obviously), it seems to make the key equal 0, and consequently
returns the first character of the string. I expected this to return
NULL.

Reproduce code:
---------------
$string = 'This is a string!';
var_dump($string['key']);

Expected result:
----------------
NULL

Actual result:
--------------
'T'


------------------------------------------------------------------------


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

Reply via email to