📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-29 10:23:16
📂
/
/
opt
/
alt
/
tests
/
alt-php85-pecl-luasandbox_4.1.2-3.el8
/
tests
✏️
Editing: callback_exception.phpt
--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
💾 Save Changes
❌ Cancel