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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -