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
