php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40456 php5.2.1 - Uncaught exception try/catch
Submitted: 2007-02-13 03:26 UTC Modified: 2007-02-13 08:33 UTC
Votes:3
Avg. Score:3.7 ± 1.9
Reproduced:0 of 3 (0.0%)
From: zeldign at zeldign dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.1 OS: CentOS 4.4
Private report: No CVE-ID: None
 [2007-02-13 03:26 UTC] zeldign at zeldign dot com
Description:
------------
php5.2.0 -> caught exception
php5.2.1 -> Uncaught exception

Reproduce code:
---------------
<?
class a extends exception {

	function __construct() {
		
	}
}

try{
	throw new a;
} catch (Exception $e) {        // Will be caught
   echo "Caught Default Exception\n", $e;
}
?>

Expected result:
----------------
Caught Default Exception exception 'a' in /home/company/solution/public_html/info.php:11 Stack trace: #0 {main}

Actual result:
--------------
Fatal error: Uncaught exception 'a' in /home/company/igearmall/public_html/info.php:11 Stack trace: #0 {main} thrown in /home/company/igearmall/public_html/info.php on line 11

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-13 06:28 UTC] judas dot iscariote at gmail dot com
works perfectly fine here, do you have any zend_extension loaded ? APC, eaccelerator, Zend optimizer..or whatever?
 [2007-02-13 08:22 UTC] zeldign at zeldign dot com
Yes .

Use together with and is using eaccelerator coming zend optimizer present.

Is established to be loaded all by zend_extension Eu, is it related with it?
 [2007-02-13 08:33 UTC] mike@php.net
Do not file bugs when you have Zend extensions (zend_extension=)
loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache,
APC, Xdebug and ionCube loader.  These extensions often modify engine
behavior which is not related to PHP itself.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 07:00:02 2025 UTC