php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55205 Catchable fatal error is not fatal
Submitted: 2011-07-14 06:41 UTC Modified: 2011-07-15 04:12 UTC
From: vodmal at yandex dot ru Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.3.6 OS: redhat
Private report: No CVE-ID: None
 [2011-07-14 06:41 UTC] vodmal at yandex dot ru
Description:
------------
Catchable fatal error is not fatal. 

Test script:
---------------
<?php
class ClassA {
    function __construct(ClassA $a) {}
}
$a = new ClassA(new stdClass);

echo ":( not halted";

Expected result:
----------------
Fatal error. Script execution halt.

Actual result:
--------------
:( not halted

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-14 21:07 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [2011-07-14 21:07 UTC] felipe@php.net
Are you using some zend extension?
 [2011-07-15 04:12 UTC] vodmal at yandex dot ru
-Status: Feedback +Status: Closed
 [2011-07-15 04:12 UTC] vodmal at yandex dot ru
PHP 5.3.6 (cli) (built: May  4 2011 09:01:50)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with XCache v1.3.2, Copyright (c) 2005-2011, by mOo
    with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans


Yes. I found. It is XDebug's problem.
 [2012-10-01 17:22 UTC] levi at eneservices dot com
Xdebug?  I don't have xdebug, and I am getting Catchable fetal errors on 
converting one item to another, and my code still finishes.
 [2012-10-01 17:24 UTC] levi at eneservices dot com
Does catchable fatal error, mean, I am not able to capture this error in a try 
catch?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 09:01:29 2024 UTC