--TEST-- Exception in a PHP function called from Lua --FILE-- registerLibrary( 'test', array( 'throw_exception' => 'throw_exception' ) ); $f = $sandbox->loadString('test.throw_exception()'); try { $f->call(); } catch ( Exception $e ) { print $e->getMessage(); } --EXPECT-- message