|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35085 session_set_save_handler(): Argument 2 is not a valid callback
Submitted: 2005-11-03 12:44 UTC Modified: 2005-11-11 01:00 UTC
Avg. Score:3.7 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (66.7%)
From: joerg at krause dot net Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.4.1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
43 - 10 = ?
Subscribe to this entry?

 [2005-11-03 12:44 UTC] joerg at krause dot net
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-03 21:10 UTC]
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..

 [2005-11-11 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 03:01:29 2023 UTC