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