php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #70867 Uncatchable fatal error.
Submitted: 2015-11-05 22:50 UTC Modified: 2015-11-07 01:34 UTC
From: useful-soft at yandex dot ru Assigned: bwoebi (profile)
Status: Closed Package: PHP Language Specification
PHP Version: 5.4.45 OS: Linux
Private report: No CVE-ID: None
 [2015-11-05 22:50 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-11-07 01:34 UTC] bwoebi@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: bwoebi
 [2015-11-07 01:34 UTC] bwoebi@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC