From:             douglas dot day at calendarsystems dot com
Operating system: WinXP
PHP version:      5.0.3
PHP Bug Type:     Session related
Bug description:  session_start() outputs newline character when complex object 
used in session

Description:
------------
I assign a complex object as a session variable, then the next time
session_start() is called, it outputs a newline character (which should
never happen).  

If I don't assign this object as a session variable, session_start()
functions normally.  Any other action I've taken with $_SESSION produces
the same results, unless I assign the complex object.

Reproduce code:
---------------
// Page 1
$_SESSION["var"] = new MyComplexObject();

// Page 2
ob_start();
$len_before = ob_get_length();
session_start();
$len_after = ob_get_length();
ob_end_flush();

echo $len_before . "," . $len_after;

Expected result:
----------------
Output: 0,0

Actual result:
--------------
Output: [newline]
0,2

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

Reply via email to