#35085 [Opn->Fbk]: session_set_save_handler(): Argument 2 is not a valid callback
| From: | sniper@php.net | Date: | Thu, 03 Nov 2005 20:10:59 +0000 |
| Subject: | #35085 [Opn->Fbk]: session_set_save_handler(): Argument 2 is not a valid callback | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-87498@lists.php.net to get a copy of this message | ||
ID: 35085
Updated by: sniper@php.net
Reported By: joerg at krause dot net
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: Linux
PHP Version: 4.4.1
New Comment:
Provide a full example script that doesn't work.
And why didn't you report before 4.4.1 was released?
There were RCs released first..
Previous Comments:
------------------------------------------------------------------------
[2005-11-03 12:44:50] joerg at krause dot net
Description:
------------
The following message arises:
session_set_save_handler(): Argument 2 is not a valid callback
it doesn't matter if there is valid callback or not, the function
crashes under all circumstances, if the handler is stored in a class
Reproduce code:
---------------
session_set_save_handler(array ($this,'lsess_open'), array
($this,'lsess_dummy'), array ($this, 'lsess_read'), array ($this,
'lsess_write'), array ($this, 'lsess_destroy'), array($this,
'lsess_gc'));
The handler are all in the same class defined as function. With all
previous versions of PHP it works fine.
Expected result:
----------------
No error, just accept callbacks.
Actual result:
--------------
error message (warning):
session_set_save_handler(): Argument 2 is not a valid callback
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35085&edit=1