<?php
abstract class bob{
function __contruct(){
$myitem = 25;
}
public $myitem;
}
class john extends bob{
public function GetItem(){
echo $base->$myitem;
}
}
$j = new john();
$j->GetItem();
Warning: Undefined variable $base in /in/SkdnT on line 15
Warning: Undefined variable $myitem in /in/SkdnT on line 15
Warning: Attempt to read property "" on null in /in/SkdnT on line 15
Notice: Undefined variable: base in /in/SkdnT on line 15
Notice: Undefined variable: myitem in /in/SkdnT on line 15
Notice: Trying to get property '' of non-object in /in/SkdnT on line 15
Notice: Undefined variable: base in /in/SkdnT on line 15
Notice: Undefined variable: myitem in /in/SkdnT on line 15
Notice: Trying to get property of non-object in /in/SkdnT on line 15
Output for 5.0.4 - 5.0.5, 5.2.9 - 5.2.17
Notice: Undefined variable: myitem in /in/SkdnT on line 15
Notice: Undefined variable: base in /in/SkdnT on line 15
Notice: Trying to get property of non-object in /in/SkdnT on line 15
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.8
Notice: Undefined variable: base in /in/SkdnT on line 15
Notice: Trying to get property of non-object in /in/SkdnT on line 15
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: myitem in /in/SkdnT on line 15
Notice: Undefined variable: base in /in/SkdnT on line 15
Notice: Trying to get property of non-object in /in/SkdnT on line 15
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CLASS in /in/SkdnT on line 2
Process exited with code 255.