|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-03 05:01 UTC] stas@php.net
[2003-07-03 05:15 UTC] tleake at ebuyer dot com
[2003-07-03 07:04 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 08:00:01 2025 UTC |
Description: ------------ Trying the code below from the php site fails with the following error. This is php-5.0.0 beta1 compiled with --disable-all under linux Call to undefined method exception::__construct() Reproduce code: --------------- <?php class MyExceptionFoo extends Exception { function __construct($exception) { parent::__construct($exception); } } try { throw new MyExceptionFoo("Hello"); } catch (MyException $exception) { print $exception->getMessage(); } ?> Expected result: ---------------- hello Actual result: -------------- <br /> <b>Fatal error</b>: Call to undefined method exception::__construct() in <b>/home/tony/software/web/php-5.0.0b1/sapi/cgi/test.php</b> on line <b>4</b><br />