Marcus Boerger wrote: > Hello Florian, > > there is no problem in calling resource destructors/terminators in > your destructors. You simply cannot output text to your pages from > them. If this is not true then we need to fix it. For example if an > object of yours holds a database connection and your destructor > executes some SQL code this must work. Open a bug report if necessary. >
Well you can output text in destructors. All other functions are also available but _might_ not behave the way we would expect them to. I was wrong regarding the mysql extension - (really bad guesswork on my part). However if I'm not wrong this time (again I might, since I have no dev. environment with me right now to check back with the sources) the extensions PHP_RSHUTDOWN_FUNCTION is called _before_ object destructors are called. That seems now to be the problem already stated in "documentation" bug ( #27555 ). Developers might well clean up their stuff at that point in the extension (like write the session to disk in the session ext.) expecting the session to be "over" what leads to confusing results for people (extension and php developers alike) when it actually isn't. ./regards Florian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php