From: [EMAIL PROTECTED]
Operating system:
PHP version: 4.3.0
PHP Bug Type: Scripting Engine problem
Bug description: bc break in parser
I don't think this is a bug, but someone sent it to me via
email, so I'm proxy-submitting:
Hello George-
I stumbled upon a serious bug in the string parser and it
goes something like this:
$arr = array('foo' => 'bar');
print "$arr['foo']";
This used to provide a parse error but now instead we get
this one of level E_NOTICE:
Notice: Undefined index: 'foo' in /tmp/a.php on line 4
/tmp/a.php(4) : Notice - Undefined index: 'foo'
This is a serious problem as it moved an error from
parse to E_NOTICE, fails silently as most have error
reporting turned down, shows a misleading error as foo
is defined, and breaks BC.
Tested latest 4_3 HEAD (4.3.1-dev). I would try php5
but I get segfault when trying to compile/use it :)
Have a nice day,
Philip Olson
cc: derick
--
Edit bug report at http://bugs.php.net/?id=21820&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21820&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21820&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21820&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21820&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21820&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21820&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21820&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21820&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21820&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21820&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21820&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21820&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21820&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21820&r=gnused