--- 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.
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
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
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
4 matches
Mail list logo