From:             joerg at krause dot net
Operating system: Linux
PHP version:      4.4.1
PHP Bug Type:     Session related
Bug description:  session_set_save_handler(): Argument 2 is not a valid callback

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 bug report at http://bugs.php.net/?id=35085&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35085&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35085&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35085&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35085&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35085&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35085&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35085&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35085&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35085&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35085&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=35085&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=35085&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35085&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35085&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35085&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35085&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35085&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35085&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35085&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35085&r=mysqlcfg

Reply via email to