無限ループ
「無限ループ」大好きです。
php
無限ループ(関数の再帰呼び出し)させるとメモリ不足かセグメンテーション違反になります。仕様です。 xdebugを使うと無限ループを指摘してくれるそうです。
Yes, endless recursion is likely to eat all the RAM and/or cause a
crash.
That was already reported thousands of times.
perl
メモリを使い果たすまで愚直にループしてくれます。