Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#72 php5b2, error with class-specification in functionheader

open
nobody
None
5
2003-12-05
2003-12-05
No

The following code results in an fatal error after it
is loaded into mmcache for php5b2 (the first time it
runs without any problems, the second run hower the
below error is displayed).
<?
class test
{
}

class test2
{
function func(test $var)
{
echo "ok";
}
}

$test = new test;
$test2 = new test2;

$test2->func($test);
?>

Fatal error: Class 'testfunc' not found in
/home/acm/public_html/mmcache/test.php on line 8

Discussion