PHP

From Epavewiki

Jump to: navigation, search

PHP est le langage qui est au programmeur ce que la téquila paf est au funamble.

$ python
Python 2.5.1 (r251:54863, Oct  5 2007, 13:36:32) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> def foo():
...   foo()
... 
>>> foo()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 2, in foo
(...)
RuntimeError: maximum recursion depth exceeded
$ irb --simple-prompt
>> def foo
>>   foo
>> end
=> nil
>> foo
SystemStackError: stack level too deep
        from (irb):2:in `foo'
        from (irb):2:in `foo'
        from (irb):4
$ perl -we 'sub foo { foo(); } foo();'
Deep recursion on subroutine "main::foo" at -e line 1.
$ php -r 'function foo() { foo(); } foo();'
Segmentation fault (core dumped)
Personal tools