[Fwd: Re: [PHP] Recursive Static Method]

2008-11-13 Thread Craige Leeder
--- Begin Message --- Hi Guys, I found the problem. I was using the error suppression operator on my include, and thus I could not see the syntatic error on the page. Problem Solved, - Craige Yeti wrote: Some code would be quite helpful here. But your scenario should not make any problem.

Re: [PHP] Recursive Static Method

2008-11-13 Thread ceo
Works for me: $ cat recurses.php ; php -q recurses.php 4! = 24 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Recursive Static Method

2008-11-13 Thread Dan
Craige - In short, yes you can recursively call a static method. The following code, for example, will work fine: However, you'll probably notice if you try it, that the example above only calls the test() method twice. This is because it's using include_once, and thus the code within the inclu

Re: [PHP] Recursive Static Method

2008-11-12 Thread Yeti
Some code would be quite helpful here. But your scenario should not make any problem. EXAMPLE: "; include_once('test.php'); } } foo::test(); ?> EXAMPLE (@file: test.php): OUTPUT: Call 1Call 2 //A yeti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v