class - PHP Methods Referencing Each Other causes PHP to return "No Data" -
php methods referencing each other causes php return page says "no data received"
i completly lost why happening since both methods belong same class...help please? : ()
--------- code ----- simplified readability ----
<?php /** * simplified version of situation causing me problems... * each of theses methods needs make call other method */ class someclass { protected static function someprotectedstaticmethod() { someclass::somepublicstaticmethod('some value call make inside class'); return 'some return value'; } public static function somepublicstaticmethod($some_param) { $some_var = someclass::someprotectedstaticmethod(); return $some_var . $some_param; } } $var = someclass::somepublicstaticmethod('some value call make outside class'); ?>
i think should return stack overflow error.
Comments
Post a Comment