|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-10-02 16:50 UTC] merrill at missioncriticallinux dot com
[2001-12-19 22:49 UTC] yohgaki@php.net
[2002-01-09 02:09 UTC] lobbin@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
'./configure' '--prefix=/var/php' '--with-config-file-path=/var/php' '--enable-track-vars' '--with-apxs=/var/apache/bin/apxs' '--with-ftp' '--with-xml' '--with-mcrypt=/var/libmcrypt-2.4.15' '--enable-sigchild' '--with-oci8=/u01/app/oracle/product/8.1.7' '--with-pgsql=/var/postgresql-7.1.3' '--with-mysql=/var/mysql-3.23.41' ---------------------------------------------------- We use sessions stored in the database, and so we have this code in our auto_prepend_file: include_once("session.inc"); session_start(); session.inc defines functions sessionOpen, sessionClose, sessionRead, sessionWrite, sessionDestroy, sessionGC, and at the very end of the php code in that file, it does this call: session_set_save_handler( "sessionOpen", "sessionClose", "sessionRead", "sessionWrite", "sessionDestroy", "sessionGC"); We wanted to change sessions from being saved in the database to being saved in files, and noticed today that even when we set session.save_handler = files in php.ini, the above call to session_set_save_handler seems to still take effect and force sessions to be stored in the database. Here's a quote from the set_session_save_handler documentation: Note: You must set the configuration option session.save_handler to user in your php.ini file for session_set_save_handler() to take effect. Is this a bug in PHP 4.0.6? Thanks. Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com