From:             [EMAIL PROTECTED]
Operating system: WinMe, Linux
PHP version:      4.0.4
PHP Bug Type:     Reproducible crash
Bug description:  Custom sessions handler using Metabase calls crashes Apache

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 


-- 
Edit Bug report at: http://bugs.php.net/?id=11826&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to