mirror of
https://github.com/php/php-src.git
synced 2024-12-17 05:50:14 +08:00
14 lines
189 B
PHP
14 lines
189 B
PHP
--TEST--
|
|
Trying to throw a non-object
|
|
--FILE--
|
|
<?php
|
|
|
|
throw 1;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Can only throw objects in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|