xref: /PHP-7.1/Zend/tests/bug33318.phpt (revision 113213f0)
1--TEST--
2Bug #33318 (throw 1; results in Invalid opcode 108/1/8)
3--FILE--
4<?php
5throw 1;
6?>
7--EXPECTF--
8Fatal error: Uncaught Error: Can only throw objects in %sbug33318.php:2
9Stack trace:
10#0 {main}
11  thrown in %sbug33318.php on line 2
12