id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	phpversion	appname	pending	exts	sapi	probability	blocking
238	if and else execute together! (class extends)	ehsanch	moo	"i create a simple php script :

{{{
<?php
class newclass {
    public function newfunc() {
        echo 'class exist';
    }
}
 
if (true) {
    class myclass1 extends newclass {}
}
else {
    class myclass2 extends newclass {}
}
 
$test = new myclass2;
$test->newfunc();
 
}}}

--------------------run with php vs php-cgi--------------------

[root@server]# php test.php
Fatal error: Class 'myclass2' not found in test.php on line 15

[root@server]# php-cgi test.php
X-Powered-By: PHP/5.2.6
Content-type: text/html
class exist
"	defect	closed	critical	1.3.2	cacher	1.3.0	worksforme				tested on 5.2.6		0		FastCGI	Always	
