ÿØÿà JFIF ÿÛ „ ( %!1!%*+...983,7(-.-
File manager
File manager - Edit - /opt/alt/tests/alt-php82-pecl-luasandbox_4.1.2-2.el8/tests/callback_exception.phpt
Back
--TEST-- Exception in a PHP function called from Lua --FILE-- <?php function throw_exception() { throw new Exception('message'); } $sandbox = new LuaSandbox; $sandbox->registerLibrary( 'test', array( 'throw_exception' => 'throw_exception' ) ); $f = $sandbox->loadString('test.throw_exception()'); try { $f->call(); } catch ( Exception $e ) { print $e->getMessage(); } --EXPECT-- message
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.92 |
proxy
|
phpinfo
|
Settings