Req #70867 [Opn->Csd]: Uncatchable fatal error.

[email protected]
Newsgroups php.standards
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=70867&edit=1

 ID:                 70867
 Updated by:         [email protected]
 Reported by:        useful-soft at yandex dot ru
 Summary:            Uncatchable fatal error.
-Status:             Open
+Status:             Closed
 Type:               Feature/Change Request
 Package:            PHP Language Specification
 Operating System:   Linux
 PHP Version:        5.4.45
-Assigned To:        
+Assigned To:        bwoebi
 Block user comment: N
 Private report:     N

 New Comment:

We throw Error in PHP 7 for most things. For everything else, it's really fatal and you only will be able to do cleanup in a register_shutdown_function() for example.


Previous Comments:
------------------------------------------------------------------------
[2015-11-05 22:50:28] useful-soft at yandex dot ru

Description:
------------
Uncatchable fatal error.

Test script:
---------------
http://devbook.ru/cannot-redeclare-neulovimaya-fatalnaya-oshibka-v-php

Expected result:
----------------
'exception' or 'error handler'

Actual result:
--------------
Fatal error: Cannot redeclare test() (previously declared in /var/www/site/functions.php:5) in /var/www/site/functions.php on line 5


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70867&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.