mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
extend Exception
This commit is contained in:
parent
08ed2cb9f7
commit
229aa6351f
@ -4,7 +4,7 @@ ZE2: set_exception_handler()
|
||||
<?php if (version_compare(zend_version(), "2.0.0-dev", "<")) print "skip Zend engine 2 required"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
class MyException {
|
||||
class MyException extends Exception {
|
||||
function MyException($_error) {
|
||||
$this->error = $_error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user