ID: 46263 Updated by: [EMAIL PROTECTED] Reported By: pankkake at headfucking dot net -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Linux PHP Version: 5.2.6 New Comment:
$ php -r 'public static function getWatchedColumns(string $class)' PHP Parse error: syntax error, unexpected T_PUBLIC in Command line code on line 1 Perhaps you should give a better example OR simply tune your error reporting (display_errors = On and error_reporting = E_ALL).. Previous Comments: ------------------------------------------------------------------------ [2008-10-09 08:02:52] pankkake at headfucking dot net Description: ------------ When using type hinting on a function with a type that isn't allowed (int, string, etc.), PHP stops the execution of the page (it doesn't seem to crash) without any error, making debugging very hard. Reproduce code: --------------- public static function getWatchedColumns(string $class) (I *know* the code is wrong, that's the point.) Expected result: ---------------- a PHP error Actual result: -------------- blank page ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46263&edit=1
