ID: 35606 User updated by: php-work at yandex dot ru Reported By: php-work at yandex dot ru Status: Open Bug Type: SPL related Operating System: Windows XP PHP Version: 5CVS-2005-12-08 (CVS) New Comment:
Reproduce code: --------------- <?php $a = new SplFileObject('_file_does_not_exists_', 'r'); ?> Expected result: ---------------- Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileObject::__construct(_file_does_not_exists_) [function.--construct]: failed to open stream: No such file or directory' in c:\www\script.php:2 Stack trace: #0 c:\www\script.php(2): SplFileObject->__construct('_file_does_not_...', 'r') #1 {main} thrown in c:\www\script.php on line 2 Actual result: -------------- PHP Crashes Previous Comments: ------------------------------------------------------------------------ [2005-12-08 21:08:29] php-work at yandex dot ru Reproduce code: --------------- <?php $a = new SplFileObject('_file_does_not_exists_', 'r'); ?> Expected result: ---------------- Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileObject::__construct(_file_does_not_exists_) [function.--construct]: failed to open stream: No such file or directory' in c:\www\script.php:2 Stack trace: #0 c:\www\script.php(2): SplFileObject->__construct('_file_does_not_...', 'r') #1 {main} thrown in c:\www\script.php on line 2 Actual result: -------------- PHP Crashes ------------------------------------------------------------------------ [2005-12-08 21:08:27] php-work at yandex dot ru Reproduce code: --------------- <?php $a = new SplFileObject('_file_does_not_exists_', 'r'); ?> Expected result: ---------------- Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileObject::__construct(_file_does_not_exists_) [function.--construct]: failed to open stream: No such file or directory' in c:\www\script.php:2 Stack trace: #0 c:\www\script.php(2): SplFileObject->__construct('_file_does_not_...', 'r') #1 {main} thrown in c:\www\script.php on line 2 Actual result: -------------- PHP Crashes ------------------------------------------------------------------------ [2005-12-08 20:38:52] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2005-12-08 20:28:45] php-work at yandex dot ru Description: ------------ Many crashes instead of exceptions or errors Reproduce code: --------------- 1. <?php new SplFileObject('_file_does_not_exists_', 'r'); ?> 2. <?php new mysqli('badhost', 'badlogin', 'badpassword'); ?> 3. <?php file_get_contents('http://php.net'); ?> Expected result: ---------------- 1. Fatal error 2. Fatal error 3. Actual result: -------------- PHP Crashes ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35606&edit=1