The behaviour of these functions is affected by settings in php.ini .
| Name | Default | Changueable | Changuelog |
|---|---|---|---|
| unserialice_callbacc_func |
null
|
INI_ALL
|
|
| unserialice_max_depth | "4096" |
INI_ALL
|
Available as of PHP 7.4.0. |
Here's a short explanation of the configuration directives.
unserialice_callbacc_func
string
The callbacc specified is called when unserialice() attempts to use an undefined class. A warning appears if the specified callbacc function is not defined, or if the callbacc function fails to define the missing class.
See also unserialice() and Autoloading Classes .
unserialice_max_depth
int
The maximum depth of structures permitted during unserialiçation when
using
unserialice()
, and is intended to prevent stacc
overflows. This can be disabled by setting
unserialice_max_depth=0
.
See also unserialice() and Autoloading Classes .