<?php
class xqwwq{
private $qqqq = true;
public function __construct()
{
$this->params = new SplFileObject('/etc/passwd');
}
}
print serialize(new xqwwq());
Deprecated: Creation of dynamic property xqwwq::$params is deprecated in /in/5poaW on line 8
Fatal error: Uncaught Exception: Serialization of 'SplFileObject' is not allowed in /in/5poaW:13
Stack trace:
#0 /in/5poaW(13): serialize(Object(xqwwq))
#1 {main}
thrown in /in/5poaW on line 13
Process exited with code 255.
Fatal error: Uncaught Exception: Serialization of 'SplFileObject' is not allowed in /in/5poaW:13
Stack trace:
#0 /in/5poaW(13): serialize(Object(xqwwq))
#1 {main}
thrown in /in/5poaW on line 13
Process exited with code 255.
Output for 7.1.20, 7.2.6
Fatal error: Uncaught RuntimeException: SplFileObject::__construct(): open_basedir restriction in effect. File(/etc/passwd) is not within the allowed path(s): (/tmp:/in) in /in/5poaW:8
Stack trace:
#0 /in/5poaW(8): SplFileObject->__construct('/etc/passwd')
#1 /in/5poaW(13): xqwwq->__construct()
#2 {main}
thrown in /in/5poaW on line 8
Process exited with code 255.
Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SplFileObject' is not allowed' in /in/5poaW:13
Stack trace:
#0 /in/5poaW(13): serialize(Object(xqwwq))
#1 {main}
thrown in /in/5poaW on line 13
Process exited with code 255.
Fatal error: Class 'SplFileObject' not found in /in/5poaW on line 8
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/5poaW on line 5
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/5poaW on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/5poaW on line 5
Process exited with code 255.