Test: /tests/lang/bug20175.phpt - Version 7.2.0-dev        

Bug #20175 Array key -1 can crash PHP
Submitted: 2002-10-30 13:34:48 Modified: 2002-11-10 11:53:30
From: enigma Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: 4.3.0-dev OS: Linux

There is 1 diff reported by users for this test.

Count Diff
17 (100%)
004- foo:1
005- foo_static()
006- foo:1
007- bar_static()
008- bar_global()
005+ Fatal error: Uncaught TypeError: Cannot assign string to reference of type float in %s/bug20175.php:23
006+ Stack trace:
007+ #0 %s/bug20175.php(116): foo_static()
008+ #1 {main}
009+ thrown in %s/bug20175.php on line 23
010- Notice: Only variables should be assigned by reference in %sbug20175.php on line 47
011- bar:1
012- bar_static()
013- bar:1
014- wow_static()
015- wow_global()
016- wow:1
017- wow_static()
018- wow:1
019- oop_test()
020- oop_static()
021- oop_class()
022- oop:1
023- oop_static()
024- oop:1
025- oop_test()
026- oop_static()
027- oop:1