Marks a Lua script for EVAL and EVALSHA as a read-only operation. When
the behaviour of a script can be decided only at runtime depending on
its arguments, a callable object can be provided to dynamically check
if the passed instance of EVAL or EVALSHA performs write operations or
not.
public setScriptReadOnly ( string $script, mixed $readonly = true ) | ||
$script | string | Body of the Lua script. |
$readonly | mixed | A boolean value or a callable object. |