ID: 18167 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Verified +Status: Closed Bug Type: Session related Operating System: Linux PHP Version: 4.2.1 New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, 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/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-07-04 18:07:47] [EMAIL PROTECTED] Hi And anyone see mistake in session_decode() I use a lot of this function update my statistic in database from session files before i delete it. Now i can't use it :) ------------------------------------------------------------------------ [2002-07-04 17:46:24] [EMAIL PROTECTED] (gdb) bt #0 0x080eae44 in php_set_session_var (name=0x406d34c4 "sesja", namelen=5, state_val=0x406d3554, var_hash=0xbfffdd58) at /dat/dev/php/php-4.3.0dev/ext/session/session.c:271 #1 0x080eb3d3 in ps_srlzr_decode_php (val=0x406d343c "!|sesja|s:4:\"test\";", vallen=19) at /dat/dev/php/php-4.3.0dev/ext/session/session.c:417 #2 0x080eb5e1 in php_session_decode (val=0x406d343c "!|sesja|s:4:\"test\";", vallen=19) at /dat/dev/php/php-4.3.0dev/ext/session/session.c:466 #3 0x080edf5b in zif_session_decode (ht=1, return_value=0x406d3484, this_ptr=0x0, return_value_used=0) at /dat/dev/php/php-4.3.0dev/ext/session/session.c:1319 #4 0x081cf4c3 in execute (op_array=0x406d312c) at /dat/dev/php/php-4.3.0dev/Zend/zend_execute.c:2103 #5 0x081bc6ba in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /dat/dev/php/php-4.3.0dev/Zend/zend.c:833 #6 0x0818e0c6 in php_execute_script (primary_file=0xbffff2c0) at /dat/dev/php/php-4.3.0dev/main/main.c:1390 #7 0x081d9f68 in main (argc=1, argv=0xbffff364) at /dat/dev/php/php-4.3.0dev/sapi/cli/php_cli.c:674 #8 0x404c7507 in __libc_start_main (main=0x81d96c8 <main>, argc=1, ubp_av=0xbffff364, init=0x806e438 <_init>, fini=0x81da5f0 <_fini>, rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffff35c) at ../sysdeps/generic/libc-start.c:129 ------------------------------------------------------------------------ [2002-07-04 15:25:30] [EMAIL PROTECTED] Only try to run this short php script: <? session_decode('!|sesja|s:4:"test";'); echo("ok"); ?> on php 4.2.0 or higher ------------------------------------------------------------------------ [2002-07-04 14:50:06] [EMAIL PROTECTED] Please give us a complete test case, not just one part of it. ------------------------------------------------------------------------ [2002-07-04 14:05:59] [EMAIL PROTECTED] Register global is on. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18167 -- Edit this bug report at http://bugs.php.net/?id=18167&edit=1
