<?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
Example #2
0
function write($id, $session_data)
{
    echo "write: goodbye cruel world\n";
    undefined_function();
}
Example #3
0
function test_call_undefined_function()
{
    //ERROR: undefined entity
    undefined_function();
}
Example #4
0
function close()
{
    echo "close: goodbye cruel world\n";
    undefined_function();
}
 public function actionUndefinedFunction()
 {
     undefined_function();
 }