From: tleake at ebuyer dot com
Operating system: mandrake linux 9.0
PHP version: 5.0.0b1 (beta1)
PHP Bug Type: Zend Engine 2 problem
Bug description: exception example provided on php site fails
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 />
--
Edit bug report at http://bugs.php.net/?id=24413&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24413&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24413&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24413&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24413&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24413&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24413&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24413&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24413&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24413&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24413&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24413&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24413&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24413&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24413&r=gnused