Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2536 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21492 invoked from network); 22 Jun 2003 13:51:17 -0000 Received: from unknown (HELO mail.fastwebnet.it) (213.140.2.40) by pb1.pair.com with SMTP; 22 Jun 2003 13:51:17 -0000 Received: from [192.168.0.2] (1.10.219.49) by mail.fastwebnet.it (6.5.032) id 3E3A53E20085514A for internals@lists.php.net; Sun, 22 Jun 2003 15:51:15 +0200 To: php-dev Content-Type: text/plain Organization: Message-ID: <1056290055.1849.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 22 Jun 2003 15:54:15 +0200 Content-Transfer-Encoding: 7bit Subject: Double warnings with session_start From: michel@ziobudda.net (michel 'ziobudda' morelli) 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 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