unset(Segmentation Fault)
April 28th, 2007
I admit that one of the main reasons jumped the PHP bandwagon is that I was lazy. So lazy that I even would forgoe best practices such as calling unset(…) on object properties in the destructor. . . I always figured that PHP interpreter would intrepret what I wanted it to do. In C++ ofcourse, youd blow your leg off immediately if you didn’t destroy your objects explicitly. Well, seems you can do the same thing in PHP, just takes a little bit more effort. I’ve had a mysterious segfault in my server that was solved today by properly applying unset. Leason learned!
add to del.icio.us
add to technorati favs
email this