<?php
class xxyy {
}
class xx {
function __constructor() {
return new xxyy();
}
}
$x= new xx();
$y= xx->__construct();
echo print_r($x);
echo print_r($y);
Fatal error: Uncaught Error: Undefined constant "xx" in /in/T5dm2:10
Stack trace:
#0 {main}
thrown in /in/T5dm2 on line 10
Process exited with code 255.
Output for 5.4.0 - 5.4.31
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /in/T5dm2 on line 10
Process exited with code 255.