mirror of
https://github.com/php/php-src.git
synced 2024-12-22 08:20:23 +08:00
16 lines
454 B
Plaintext
16 lines
454 B
Plaintext
|
--TEST--
|
||
|
Testing throw exception doesn't crash with wrong params, variant 1
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class Hello extends Exception {}
|
||
|
throw new Hello(new stdClass);
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Uncaught Error: Wrong parameters for Hello([string $message [, long $code [, Throwable $previous = NULL]]]) in %sexception_018.php:%d
|
||
|
Stack trace:
|
||
|
#0 %sexception_018.php(%d): Exception->__construct(Object(stdClass))
|
||
|
#1 {main}
|
||
|
thrown in %sexception_018.php on line %d
|