<?php
namespace HHVM\UserDocumentation\Inconsistencies\Intro\Examples\DCP;
class A {}
var_dump(new A(undefined_function())); // Works in PHP5 but not HHVM
class B {
public function __construct() {
}
}
var_dump(new B(undefined_function())); // Doesn't work in neither HHVM nor PHP5
Fatal error: Uncaught Error: Call to undefined function HHVM\UserDocumentation\Inconsistencies\Intro\Examples\DCP\undefined_function() in /in/FDpj0:6
Stack trace:
#0 {main}
thrown in /in/FDpj0 on line 6
Process exited with code 255.
Output for 7.3.0 - 7.3.1
Fatal error: Uncaught Error: Call to undefined function undefined_function() in /in/FDpj0:6
Stack trace:
#0 {main}
thrown in /in/FDpj0 on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.33
object(HHVM\UserDocumentation\Inconsistencies\Intro\Examples\DCP\A)#1 (0) {
}
Fatal error: Uncaught Error: Call to undefined function HHVM\UserDocumentation\Inconsistencies\Intro\Examples\DCP\undefined_function() in /in/FDpj0:12
Stack trace:
#0 {main}
thrown in /in/FDpj0 on line 12
Process exited with code 255.
object(HHVM\UserDocumentation\Inconsistencies\Intro\Examples\DCP\A)#1 (0) {
}
Fatal error: Call to undefined function HHVM\UserDocumentation\Inconsistencies\Intro\Examples\DCP\undefined_function() in /in/FDpj0 on line 12
Process exited with code 255.