ID:               45406
 Updated by:       [EMAIL PROTECTED]
 Reported By:      oleg dot grenrus at dynamoid dot com
 Status:           Closed
 Bug Type:         Session related
 Operating System: *
 PHP Version:      5.2.6
 New Comment:

Backported to 5.2.7


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

[2008-08-04 06:22:05] [EMAIL PROTECTED]

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



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

[2008-07-01 16:29:05] oleg dot grenrus at dynamoid dot com

Description:
------------
PHP warnings are issued as
PHP Warning:  session_start(): Unknown session.serialize_handler.
Failed todecode session object. in - on line 2
PHP Warning:  Unknown: Unknown session.serialize_handler. Failed to
encode session object. in Unknown on line 0

These happen because session module try's to find serialize_handler
before
serializer module is loaded (and registered itself as valid
serialize_handler)

There are check for save_handler (PS(mod) != NULL) in the
PHP_RINIT_FUNCTION(session), but not for PS(serializer)

I wrote a short patch
http://phadej.daug.net/php-5.2.6-serialize_handler.patch
against php-5.2.6. PHP_RINIT_FUNCTION seems to be same in php-5.2 and
php-5.3
brances.


Reproduce code:
---------------
php -d "extension=wddx.so" -d 'session.serialize_handler=wddx' <<\EOF
<?php
        var_dump(session_start());
?>
EOF

Expected result:
----------------
bool(true)

Actual result:
--------------
PHP Warning:  session_start(): Unknown session.serialize_handler.
Failed to decode session object. in /home/phadej/dev/php-sess-bug/- on
line 2
bool(true)
PHP Warning:  Unknown: Unknown session.serialize_handler. Failed to
encode session object. in Unknown on line 0



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


-- 
Edit this bug report at http://bugs.php.net/?id=45406&edit=1

Reply via email to