php.net |  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
Votes:3
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: joerg at krause dot net
New email:
PHP Version: OS:

 

 [2005-11-03 12:44 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-03 21:10 UTC] sniper@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC