ID: 30007 Updated by: [EMAIL PROTECTED] Reported By: nightcat at poczta dot onet dot pl -Status: Open +Status: Bogus Bug Type: Zend Engine 2 problem Operating System: Linux PHP Version: 5.0.1 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php This has been discussed before, it's not going to change in 5.0 Previous Comments: ------------------------------------------------------------------------ [2004-09-07 12:28:03] nightcat at poczta dot onet dot pl Description: ------------ PHP breaks OOB by not accepting null as a proper value for type_hinted argument. In every OO language i know i have the way to dereference non-primitive object to null. Without this, i have to make _very_ big mess in code to make such things work. Reproduce code: --------------- class Foo { } function x(Foo $a, Foo $x) { } $l = new Foo(); x(null, $l); Expected result: ---------------- normal work Actual result: -------------- Fatal error: Argument 1 must not be null in file.php in line 7 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30007&edit=1