<?php
class a {
function a() {
echo 'construct';
}
function __construct() {
echo 'plop';
}
function __invoke()
{
echo 'invoke';
}
}
$a = new a();
$a();
Strict Standards: Redefining already defined constructor for class a in /in/RAVI7 on line 6
plop
Fatal error: Function name must be a string in /in/RAVI7 on line 17
Process exited with code 255.
Output for 4.4.5 - 4.4.9
construct
Notice: Object to string conversion in /in/RAVI7 on line 17
Fatal error: Call to undefined function: object() in /in/RAVI7 on line 17
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
construct
Notice: Object to string conversion in /in/RAVI7 on line 17
Fatal error: Call to undefined function: object() in /in/RAVI7 on line 17
Process exited with code 255.
Output for 4.3.0 - 4.3.1
construct
Notice: Object to string conversion in /in/RAVI7 on line 17
Fatal error: Call to undefined function: object() in /in/RAVI7 on line 17