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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: useful-soft at yandex dot ru
New email:
PHP Version: OS:

 

 [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: Sat Dec 21 12:01:31 2024 UTC