ID: 11630
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Old-Bug Type: Strings related
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

The crash (your last example) should be fixed in CVS.

But I also think there should be a warning at least when
trying to access characters out of the string boundary.


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

[2001-06-23 13:19:42] [EMAIL PROTECTED]
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"

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



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11630&edit=2


-- 
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