ID:               41263
 User updated by:  tachu at ezboardcorp dot com
 Reported By:      tachu at ezboardcorp dot com
 Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: 2.6.20-15-386
 PHP Version:      5.2.1
 New Comment:

Also doing an isset($moo['cow']) returns true.


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

[2007-05-03 00:56:12] tachu at ezboardcorp dot com

Description:
------------
When accessing a string by character offset php doesnt trigger error
when going out of bounds of the string or accessing a non existing
element.

Reproduce code:
---------------
<?php
$moo="asd";
var_dump($moo[444]);
var_dump($moo['cow']);
?>



Expected result:
----------------
Return false or null since the offset or index is not defined.


Actual result:
--------------
Notice: Uninitialized string offset:  444 in
/home/tachu/.thunderbird/xs4vamjr.default/moo on line 3
string(0) ""
string(1) "a"



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


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

Reply via email to