From: pietro dot baldassarri at unibo dot it Operating system: Gentoo Linux PHP version: 5.2.10 PHP Bug Type: Session related Bug description: session_set_save_handler: can't find previously included class in write func
Description: ------------ PHP can't find a previously included class in user defined session write callback function. Class is used without any problem in open and read processes. The code works like a charme using PHP v. 5.2.9 Reproduce code: --------------- http://137.204.215.224/bug/code.txt Expected result: ---------------- Accessing Logger::log() method in each session's user defined callback functions to append dato to log file /tmp/debug.log content: *************************** OPENING *************************** *************************** READING *************************** *************************** WRITING *************************** Done Actual result: -------------- /tmp/debug.log content: *************************** OPENING *************************** *************************** READING *************************** PHP Fatal error: Class 'Logger' not found in /home/petrux/workspace/debug10/Session.php on line 41 -- Edit bug report at http://bugs.php.net/?id=48787&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48787&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48787&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48787&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48787&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48787&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48787&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48787&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48787&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48787&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48787&r=support Expected behavior: http://bugs.php.net/fix.php?id=48787&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48787&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48787&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48787&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48787&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48787&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48787&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48787&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48787&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48787&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48787&r=mysqlcfg