|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-12 08:24 UTC] sas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
Hi The following script is from the php4 documentation <?php function open ($save_path, $session_name) { echo "open ($save_path, $session_name)\n"; return true; } function close () { echo "close\n"; return true; } function read ($key) { echo "read ($key)\n"; return "foo|i:1;"; } function write ($key, $val) { echo "write ($key, $val)\n"; return true; } function destroy ($key) { return true; } function gc ($maxlifetime) { return true; } session_set_save_handler ("open", "close", "read", "write", "destroy", "gc"); session_start(); echo $foo; ?> On my computer at work running on php4.0 it executes perfectly with the following output: open (/tmp, PHPSESSID) read (f4a6e6cb93bdb1b36fcedc7ea1283780) 1 write (f4a6e6cb93bdb1b36fcedc7ea1283780, foo|i:1;) close On my computer at home running on php4.01pl2 (latest version I think) the write and close function is never called: open (/tmp, PHPSESSID) read (2c0b4ffcf5076fa5b99cb93e672445e9) 1 Both installations have identical php.ini files. The only difference is that I included some more libraries at home. Here's my current configure line: './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-zlib=/usr' '--with-gd=/usr/local' '--with-png-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--enable-ftp' '--enable-track-vars' '--enable-magic-quotes' '--disable-debug' '--disable-short-tags' I don't exactly know if it is a bug or just a misconfiguration. Maybe it's of some help to you. See ya kronos_2k