ID: 11826
User Update by: aral@aralbalkan.com
Status: Open
Bug Type: Reproducible crash
Operating system: WinMe, Linux
PHP Version: 4.0.4
Description: Custom sessions handler using Metabase calls crashes Apache
I have included in the downloadable file a full installation of Metabase and also a session handler
that uses plain old MySQL calls to save the session information (this does *not* crash the server
and is there to help with your testing -- it is called mysql_sessions.php and can be tested just by
including it in the nabsession_test.php and nabsession_test2.php scripts in the place of
metabase_sessions.php.)
Previous Comments:
---------------------------------------------------------------------------
[2001-07-01 16:35:37] aral@aralbalkan.com
This error has been reproduced on WinMe running Apache 1.3.19, PHP 4.04, MySQL 3.23.37 and Linux
running Apache 1.3.12, PHP 4.0.3pl1, MySQL 3.23.6.
When a custom session handler is set up that points to functions that use Manuel Lemos'
Metabase database abstraction library to save session information in a database, Apace crashes
randomly. When it does not crash, the code works as it is supposed to.
For code necessary to recreate problem please download this file:
http://www.aralbalkan.com/php_sessions_bug/metabase_sessions.zip
It includes all necessary code (including the database schema, database schema installation script,
the Metabase custom session handler functions and two small test scripts that use these to increment
a variable.
After you have installed the database schema (metatest1-schema-install.php) and entered the settings
for you database in db_init.php please run nabsession_test.php and click on the link for the second
page and try reloading.
Randomly, your web server will crash. When it doesn't crash, the registered session variable
will update correctly.
Please don't hesitate to contact me if you need any further information. Manuel Lemos, the
author of Metabase is aware of the problem and believes that the problem is with the PHP custom
session handler code.
When the Metabase calls are replaced with direct calls to MySLQ (to
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=11826