<?php
$test = unserialize('a:19:{s:4:"mode";s:9:"connected";s:9:"binAttach";N;s:10:"fileAttach";N;s:5:"login";N;s:8:"password";N;s:4:"date";s:19:"2015-03-26 01:50:07";s:4:"from";N;s:6:"knetid";s:8:"50333754";s:7:"fleetId";N;s:2:"to";i:255;s:6:"custId";N;s:4:"flow";i:6;s:5:"tname";s:9:"245545475";s:6:"status";N;s:5:"value";s:8:"position";s:4:"info";N;s:2:"id";N;s:4:"body";s:11:"<position/>";s:6:"delaym";N;}');
$myObject = new ArrayObject($test);
$test2 = serialize($myObject);
var_dump(unserialize($test2));
- Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- object(ArrayObject)#2 (1) {
["storage":"ArrayObject":private]=>
array(19) {
["mode"]=>
string(9) "connected"
["binAttach"]=>
NULL
["fileAttach"]=>
NULL
["login"]=>
NULL
["password"]=>
NULL
["date"]=>
string(19) "2015-03-26 01:50:07"
["from"]=>
NULL
["knetid"]=>
string(8) "50333754"
["fleetId"]=>
NULL
["to"]=>
int(255)
["custId"]=>
NULL
["flow"]=>
int(6)
["tname"]=>
string(9) "245545475"
["status"]=>
NULL
["value"]=>
string(8) "position"
["info"]=>
NULL
["id"]=>
NULL
["body"]=>
string(11) "<position/>"
["delaym"]=>
NULL
}
}
- Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
- object(ArrayObject)#2 (19) {
["mode"]=>
string(9) "connected"
["binAttach"]=>
NULL
["fileAttach"]=>
NULL
["login"]=>
NULL
["password"]=>
NULL
["date"]=>
string(19) "2015-03-26 01:50:07"
["from"]=>
NULL
["knetid"]=>
string(8) "50333754"
["fleetId"]=>
NULL
["to"]=>
int(255)
["custId"]=>
NULL
["flow"]=>
int(6)
["tname"]=>
string(9) "245545475"
["status"]=>
NULL
["value"]=>
string(8) "position"
["info"]=>
NULL
["id"]=>
NULL
["body"]=>
string(11) "<position/>"
["delaym"]=>
NULL
}
- Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
- Fatal error: Cannot instantiate non-existent class: arrayobject in /in/6IDGB on line 8
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- Fatal error: Cannot instantiate non-existent class: arrayobject in /in/6IDGB on line 8
preferences:
243.77 ms | 401 KiB | 341 Q