#48787 [Com]: session_set_save_handler: can't find previously included class in write func

From: Date: Mon, 06 Jul 2009 16:51:05 +0000
Subject: #48787 [Com]: session_set_save_handler: can't find previously included class in write func
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-139341@lists.php.net to get a copy of this message
 ID:               48787
 Comment by:       pietro dot baldassarri at unibo dot it
 Reported By:      pietro dot baldassarri at unibo dot it
 Status:           Feedback
 Bug Type:         Session related
 Operating System: Gentoo Linux
 PHP Version:      5.2.10
 New Comment:

Sorry. I was too hasty. Bug seems apc related


Previous Comments:
------------------------------------------------------------------------

[2009-07-06 16:42:52] pietro dot baldassarri at unibo dot it

I could reproduce the error with all the extension disabled with
version 5.2.10 but with version 5.2.10-r1 (just upgraded) everithing
works fine also with apc and xdebug enabled.

------------------------------------------------------------------------

[2009-07-06 12:41:08] jani@php.net

Do you have any 3rd party extensions, zend extensions like APC
installed and enabled?

------------------------------------------------------------------------

[2009-07-03 14:20:14] pietro dot baldassarri at unibo dot it

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 this bug report at http://bugs.php.net/?id=48787&edit=1



Thread (6 messages)

« previous php.bugs (#139341) next »