#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


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks