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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Sun Jan 17 04:01:23 2021 UTC