- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
- Parse error: syntax error, unexpected '}' in /in/S81YI on line 22
Process exited with code 255.
<?php
class A {
protected $test;
function __construct() {
$test = 999;
}
}
class B extends A {
}
class C extends B {
function Myfunction() {
echo 'VAL: ' . $test;
}
}
$obj = new C;
$obj->Myfunction();
}
?>