X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php82-pecl-luasandbox_4.1.2-2.el8/tests
opt
/
alt
/
tests
/
alt-php82-pecl-luasandbox_4.1.2-2.el8
/
tests
/
ðŸ“
..
📄
LuaSandboxFunction_construct.phpt
(253 B)
📄
array-key-conversion.phpt
(3.11 KB)
📄
call.phpt
(5.1 KB)
📄
callback_exception.phpt
(392 B)
📄
datatypes-unsupported.phpt
(2.78 KB)
📄
datatypes.phpt
(2.43 KB)
📄
dump_loadBinary_call.phpt
(393 B)
📄
errors-at-call-boundaries.phpt
(1.98 KB)
📄
extending-LuaSandbox.phpt
(845 B)
📄
ipairs.phpt
(1.53 KB)
📄
loadString.phpt
(334 B)
📄
lua_catches_php_exception.phpt
(1.34 KB)
📄
pairs.phpt
(3.31 KB)
📄
pcall.phpt
(1.27 KB)
📄
profiler-sorting.phpt
(1.18 KB)
📄
profiler.phpt
(1.54 KB)
📄
reentrant.phpt
(1.1 KB)
📄
xpcall.phpt
(2.6 KB)
Editing: dump_loadBinary_call.phpt
--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) }
Upload File
Create Folder