Deprecated: Foobar 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/QEdfQ on line 3
string(86) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:14:"Europe/Andorra";}"
string(14) "Europe/Andorra"
string(86) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:14:"Europe/Andorra";}"
Fatal error: Uncaught DateObjectError: Object of type DateTimeZone has not been correctly initialized by calling parent::__construct() in its constructor in /in/QEdfQ:15
Stack trace:
#0 /in/QEdfQ(15): DateTimeZone->getName()
#1 [internal function]: Foobar->unserialize('O:12:"DateTimeZ...')
#2 /in/QEdfQ(20): unserialize('C:6:"Foobar":86...')
#3 {main}
thrown in /in/QEdfQ on line 15
Process exited with code 255.
Output for 8.1.0 - 8.1.33, 8.2.0 - 8.2.29
Deprecated: Foobar 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/QEdfQ on line 3
string(86) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:14:"Europe/Andorra";}"
string(14) "Europe/Andorra"
string(86) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:14:"Europe/Andorra";}"
Fatal error: Uncaught Error: The DateTimeZone object has not been correctly initialized by its constructor in /in/QEdfQ:15
Stack trace:
#0 /in/QEdfQ(15): DateTimeZone->getName()
#1 [internal function]: Foobar->unserialize('O:12:"DateTimeZ...')
#2 /in/QEdfQ(20): unserialize('C:6:"Foobar":86...')
#3 {main}
thrown in /in/QEdfQ on line 15
Process exited with code 255.
Output for 8.0.0 - 8.0.30
string(86) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:14:"Europe/Andorra";}"
string(14) "Europe/Andorra"
string(86) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:14:"Europe/Andorra";}"
Fatal error: Uncaught Error: The DateTimeZone object has not been correctly initialized by its constructor in /in/QEdfQ:15
Stack trace:
#0 /in/QEdfQ(15): DateTimeZone->getName()
#1 [internal function]: Foobar->unserialize('O:12:"DateTimeZ...')
#2 /in/QEdfQ(20): unserialize('C:6:"Foobar":86...')
#3 {main}
thrown in /in/QEdfQ on line 15
Process exited with code 255.
string(86) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:14:"Europe/Andorra";}"
string(14) "Europe/Andorra"
string(86) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:14:"Europe/Andorra";}"
Warning: DateTimeZone::getName(): The DateTimeZone object has not been correctly initialized by its constructor in /in/QEdfQ on line 15
bool(false)
object(Foobar)#1 (0) {
}