Deprecated: testClass_forSerialize implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /in/RGDCi on line 2
Deprecated: testClass_forSerialize_02 implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /in/RGDCi on line 43
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Deprecated: testClass_forSerialize implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /in/RGDCi on line 2
Deprecated: testClass_forSerialize_02 implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /in/RGDCi on line 43
Notice: unserialize(): Error at offset 4 of 4 bytes in /in/RGDCi on line 25
string(4) "r:5;"
Fatal error: Uncaught exception 'Exception' with message 'Serialize failed' in /in/RGDCi:27
Stack trace:
#0 [internal function]: testClass_forSerialize->serialize()
#1 /in/RGDCi(23): serialize(Object(stdClass))
#2 [internal function]: testClass_forSerialize->serialize()
#3 /in/RGDCi(57): serialize(Object(testClass_forSerialize_02))
#4 {main}
thrown in /in/RGDCi on line 27
Process exited with code 255.
Output for 5.4.0 - 5.4.13
Notice: unserialize(): Error at offset 4 of 4 bytes in /in/RGDCi on line 25
string(4) "r:5;"
Fatal error: Uncaught exception 'Exception' with message 'Serialize failed' in /in/RGDCi:27
Stack trace:
#0 [internal function]: testClass_forSerialize->serialize()
#1 /in/RGDCi(23): serialize(Object(stdClass))
#2 [internal function]: testClass_forSerialize->serialize()
#3 /in/RGDCi(57): serialize(Object(testClass_forSerialize_02))
#4 {main}
Next exception 'Exception' with message 'testClass_forSerialize::serialize() must return a string or NULL' in /in/RGDCi:23
Stack trace:
#0 /in/RGDCi(0): serialize()
#1 [internal function]: testClass_forSerialize->serialize()
#2 /in/RGDCi(57): serialize(Object(testClass_forSerialize_02))
#3 {main}
Next exception 'Exception' with message 'testClass_forSerialize::serialize() must return a string or NULL' in /in/RGDCi:23
Stack trace:
#0 /in/RGDCi(0): serialize()
#1 [internal function]: testClass_forSerialize->serialize()
#2 /in/RGDCi(57): serialize(Object(testClass_forSerialize_02))
#3 {main}
Next exception 'Exception' with message 'testClass_forSerialize::serialize() must return a str in /in/RGDCi on line 57
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 27
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 43
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 49
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 55
Output for 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 27
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 43
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 49
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 55
Fatal error: Interface 'Serializable' not found in /in/RGDCi on line 2
Process exited with code 255.
Output for 5.0.0 - 5.0.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 27
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 43
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 49
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/RGDCi on line 55
Fatal error: Class 'Serializable' not found in /in/RGDCi on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting '{' in /in/RGDCi on line 2
Process exited with code 255.