PATH:
opt
/
alt
/
tests
/
alt-php84-pecl-luasandbox_4.1.2-2.el8
/
tests
--TEST-- dump -> loadBinary -> call --FILE-- <?php var_dump( $sandbox = new LuaSandbox ); var_dump( $f = $sandbox->loadString( 'return 1' ) ); $dump = $f->dump(); var_dump( $restore = $sandbox->loadBinary( $dump ) ); var_dump( $restore->call() ); --EXPECT-- object(LuaSandbox)#1 (0) { } object(LuaSandboxFunction)#2 (0) { } object(LuaSandboxFunction)#3 (0) { } array(1) { [0]=> int(1) }
[-] loadString.phpt
[edit]
[-] lua_catches_php_exception.phpt
[edit]
[-] datatypes-unsupported.phpt
[edit]
[-] profiler-sorting.phpt
[edit]
[-] LuaSandboxFunction_construct.phpt
[edit]
[-] callback_exception.phpt
[edit]
[-] errors-at-call-boundaries.phpt
[edit]
[-] pcall.phpt
[edit]
[+]
..
[-] reentrant.phpt
[edit]
[-] datatypes.phpt
[edit]
[-] array-key-conversion.phpt
[edit]
[-] profiler.phpt
[edit]
[-] call.phpt
[edit]
[-] extending-LuaSandbox.phpt
[edit]
[-] xpcall.phpt
[edit]
[-] ipairs.phpt
[edit]
[-] pairs.phpt
[edit]
[-] dump_loadBinary_call.phpt
[edit]