<?php
// Everything you enter here will be executed by our servers. Try it!
class Framework {
const NAME = "Microd";
const SOURCE_VERSION = "0.1.0";
const DATABASE_VERSION = "0.1.0";
function __construct() {
echo "Framework Start\n";
}
function __destruct() {
echo "Framework End\n";
}
}
class Test {
const NAME = "Microd";
const SOURCE_VERSION = "0.1.0";
const DATABASE_VERSION = "0.1.0";
function __construct() {
echo "Test Start\n";
}
function __destruct() {
echo "Test End\n";
}
}
$framework = new Framework();
//echo \Microd\Framework::DATABASE_VERSION;
$test = new Test();
Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/FEZU7 on line 6
Process exited with code 255.
Parse error: parse error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/FEZU7 on line 6
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/FEZU7 on line 6
Process exited with code 255.