function safe_unserialize in Webform Multiple File Upload 6
Same name and namespace in other branches
- 7 safe_unserialize.inc \safe_unserialize()
Wrapper for _safe_unserialize() that handles exceptions and multibyte encoding issue
Parameters
string $str:
Return value
mixed
10 calls to safe_unserialize()
- theme_webform_render_multifile in ./
multifile.inc - Render a File component.
- webform_multifile_delete_form_submit in ./
webform_multifile.module - + * Form submit callback. +
- _webform_analysis_multifile in ./
multifile.inc - Implementation of _webform_analysis_component().
- _webform_attachments_multifile in ./
multifile.inc - Implements _webform_attachments_component().
- _webform_csv_data_multifile in ./
multifile.inc - Implementation of _webform_csv_data_component().
10 string references to 'safe_unserialize'
- theme_webform_render_multifile in ./
multifile.inc - Render a File component.
- webform_multifile_delete_form_submit in ./
webform_multifile.module - + * Form submit callback. +
- _webform_analysis_multifile in ./
multifile.inc - Implementation of _webform_analysis_component().
- _webform_attachments_multifile in ./
multifile.inc - Implements _webform_attachments_component().
- _webform_csv_data_multifile in ./
multifile.inc - Implementation of _webform_csv_data_component().
File
- ./
safe_unserialize.inc, line 138 - Contains helper functions for webform_multifile_update_7001().
Code
function safe_unserialize($str) {
// ensure we use the byte count for strings even when strlen() is overloaded by mb_strlen()
if (function_exists('mb_internal_encoding') && (int) ini_get('mbstring.func_overload') & 2) {
$mbIntEnc = mb_internal_encoding();
mb_internal_encoding('ASCII');
}
$out = _safe_unserialize($str);
if (isset($mbIntEnc)) {
mb_internal_encoding($mbIntEnc);
}
return $out;
}