<?php
$bug = new BugBug;
$bug->hoge();
class Bug
{
function Bug()
{
$this->hoge();
}
function hoge() {
include_once 'bug.php';
}
}
class BugBug extends Bug
{
}
show_source(__FILE__);
?>
<?php
class ClassA { }
function FuncA($obj) {
return $obj;
}
function FuncB($obj) {
$dummy = &FuncA($obj);
}
$obj = new ClassA();
FuncB($obj);
$a = 'This is a string';
var_dump($obj);
show_source(__FILE__);
?>