note 22969 added to function.fbsql-free-result
| From: | daggillies at yahoo dot com | Date: | Fri, 05 Jul 2002 15:54:53 +0000 |
| Subject: | note 22969 added to function.fbsql-free-result | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32638@lists.php.net to get a copy of this message | ||
As stated above, this function appears to be of critical importance. If you are experiencing random
hangs and crashes in your scripts, suspect a lack of fbsql_free_result().
It appears that failure to explicitly release a result set causes memory problems, usually
manifested by Apache segfaulting. With FrontBase < 3.4, this caused us very serious problems as
locks were not being released, resulting in a stalled database. With 3.5, this no longer happens,
but nonetheless the httpd child dies, which means that pages are only partially output, and also
impacts on performance. I don't know the internals of the fbsql PHP driver and don't have
time to investigate further. Simply using fbsql_free_result() without knowing exactly what is
causing the problem might look like voodoo, but in my experience it is voodoo that works.
David Gillies
San Jose
Costa Rica
--
http://www.php.net/manual/en/function.fbsql-free-result.php
http://master.php.net/manage/user-notes.php?action=edit+22969
http://master.php.net/manage/user-notes.php?action=delete+22969
http://master.php.net/manage/user-notes.php?action=reject+22969