summaryrefslogtreecommitdiff
path: root/Zend/tests/exception_006.phpt
blob: 61eb5c7cb310ba5b1860f6397ac45159de5c3342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--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