Request Web Server 組み込み型 Web Server CGI Protocol run PHP Script HTTP Request CGI型 起動して実行 Web Server FastCGI Protocol run PHP Script HTTP Request FastCGI型 起動済み
func() new Cls(); // Class 'Cls' not found if (1) { function func() {} class Cls {} } func(); // OK new Cls(); // OK 定義がトップレベルではないの で early binding されない
= $b; $b->r = $a; unset($a); unset($b); $a $b stdClass(ref:1) stdClass(ref:1) $a $b stdClass(ref:2) r stdClass(ref:2) r $a $b stdClass(ref:1) r stdClass(ref:2) r $b stdClass(ref:1) r stdClass(ref:1) r 解放されない