Jasper Bryant-Greene wrote:
<snip>
I never close connections; PHP does that for me and has never caused any problems doing that. I don't see it as sloppy programming, it is a documented feature that PHP closes resources such as database connections at the end of the script.


It's extremely sloppy programming. You're assuming that a) PHP will continue to be a forgiving language when it comes to items like this and b) your script is going to exit normally. The reason this is a 'documented feature' is because PHP is trying to make up for sloppy programming. You shouldn't rely on the language to clean up your toys for you.

--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to