Segmentation Fault
June 30th, 2006
Came across by accident something you shouldn’t do in PHP5. Try and construct yourself in your constructor (silly little typo led me to this one).
http://bugs.php.net/bug.php?id=37976
Where upon they reply…
30 Jun 9:50pm UTC] judas dot iscariote at gmail dot com
this is the expected behaviuor, if you want recursion control to aid development or something, install xdebug.[30 Jun 10:08pm UTC] tony2001@php.netYes, endless recursion is likely to eat all the RAM and/or cause a crash. That was already reported thousands of times.
To say that segmentation faulting is the expected behavior is a copout. The problem is with the with zend_str_tolower_copy(…) not gracefully handling a memory allocation failure and deliberately aborting. Using the operating system as an “Exception” handler is IMHO sloppy and not a best practice. Sure, the problem is the fault of the developer (as is usually the case) — two fold. The problem is with the implementation of the PHP interpreter and on the PHP developer for creating the recursion.
add to del.icio.us
add to technorati favs
email this
May 31st, 2007 at 3:47 pm
Very interesting site!