Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2539 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44514 invoked from network); 22 Jun 2003 14:34:22 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 22 Jun 2003 14:34:22 -0000 Received: (qmail 23125 invoked from network); 22 Jun 2003 14:34:13 -0000 Received: from localhost (HELO zeev-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 22 Jun 2003 14:34:13 -0000 Reply-To: zeev@zend.com Message-ID: <5.1.0.14.2.20030622174120.09ea1600@localhost> X-Sender: zeev@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 22 Jun 2003 17:41:52 +0300 To: michel 'ziobudda' morelli Cc: php-dev In-Reply-To: <1056290055.1849.7.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Double warnings with session_start From: zeev@zend.com (Zeev Suraski) References: <1056290055.1849.7.camel@localhost.localdomain> Any chance you have both display_errors and log_errors enabled? It would cause one copy of the error to go to stdout, and another to go to stderr. Zeev At 16:54 22/06/2003, michel 'ziobudda' morelli wrote: >Hi, I'm devoloping a book for PHP so I'm writing a chapter about >session. And I have found this new error with >/usr/local/php5-17062003/bin/php -v >PHP 5.0.0-dev (cli) (built: Jun 17 2003 21:40:52) >Copyright (c) 1997-2003 The PHP Group >Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies > >The little file.php is > > 1 > 2 3 session_start(); > 4 ?> > 5 session inizializzata > >and this is the output: > > >Warning: session_start(): Cannot send session cookie - headers already >sent by (output started at /home/httpd/html/LIBRO/sessioni/1.php:2) in >/home/httpd/html/LIBRO/sessioni/1.php on line 3 > >Warning: session_start(): Cannot send session cache limiter - headers >already sent (output started at /home/httpd/html/LIBRO/sessioni/1.php:2) >in /home/httpd/html/LIBRO/sessioni/1.php on line 3 >session inizializzata > >Note the double warning. > >The other error for session is the not working of session_decode into a >class for managing session >(http://www.ziobudda.net/test/session4-3.phps). With PHP4 there is no >problem with this. > >Bye. >-- >michel 'ziobudda' morelli > > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php