From:             [EMAIL PROTECTED]
Operating system: win2k
PHP version:      4.0.5
PHP Bug Type:     Strings related
Bug description:  no check for bound of a string

array:
$foo = array("bar");
echo $foo[0]; // correct
echo $foo[1]; // warnning

string?:
$foo = "bar"; // 0-b 1-a 3-r
echo $foo[0]; // correct
echo $foo[4]; // no warnning?


safe:
$foo = "bar"; // 0-b 1-a 3-r
echo $foo;    // all rignts
$foo[1] = "";

crash in win2k:
$foo = "bar"; // 0-b 1-a 3-r
echo $foo[0];
echo $foo[4]; // no warnning
$foo[1] = $foo[4]; // no warnning
echo $foo;    // crash! memory cannot be "written"


-- 
Edit Bug report at: http://bugs.php.net/?id=11630&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to