#29313 [NEW]: session_start

From: Date: Thu, 22 Jul 2004 00:26:12 +0000
Subject: #29313 [NEW]: session_start
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63306@lists.php.net to get a copy of this message
From: webmaster at behzad-m dot net Operating system: redhat PHP version: 4.3.8 PHP Bug Type: Session related Bug description: session_start Description: ------------ hi , when i use only this code : <?php session_start();?> i get this error : "Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/novin/public_html/admin/test.php:1) in /home/novin/public_html/admin/test.php on line 1 " http://www.9vin.com/admin/test.php i have the same problem on an other domain of my server Reproduce code: --------------- <?php session_start();?> Expected result: ---------------- no error page !! Actual result: -------------- Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/novin/public_html/admin/test.php:1) in /home/novin/public_html/admin/test.php on line 1 -- Edit bug report at http://bugs.php.net/?id=29313&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29313&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29313&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29313&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29313&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29313&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29313&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29313&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29313&r=support Expected behavior: http://bugs.php.net/fix.php?id=29313&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29313&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29313&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29313&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29313&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29313&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29313&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29313&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29313&r=float

« previous php.bugs (#63306) next »