note 107764 added to function.session-start

From: Date: Fri, 02 Mar 2012 15:13:34 +0000
Subject: note 107764 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-186468@lists.php.net to get a copy of this message
I had a warning complaining about session_start() after adding an include file. - It broke the functionality of my php code in a very strange manner. - The included tree did not contain any additional session_start calls. - it produced this warning only with with php -l from my development environment, and didn't produce any errors in the error_log. - the warning pointed into a non-existing line, 1 line after last line of the file. I use gedit on CentOS 6.1 with UTF-8 as current locale. - Switching encoding back and forth didn't help. - Commented out all the included content, only the php tags left, the error wa still there. .. The solution was to clear out everything, and re-writing the php tags and posting back the content. As it seems "hidden" unsupported characters produce errors and warnings falsely pointing to this function. ---- Server IP: 69.147.83.197 Probable Submitter: 188.36.68.81 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- https://master.php.net/note/edit/107764 Del: integrated -- https://master.php.net/note/delete/107764/integrated Del: useless -- https://master.php.net/note/delete/107764/useless Del: bad code -- https://master.php.net/note/delete/107764/bad+code Del: spam -- https://master.php.net/note/delete/107764/spam Del: non-english -- https://master.php.net/note/delete/107764/non-english Del: in docs -- https://master.php.net/note/delete/107764/in+docs Del: other reasons-- https://master.php.net/note/delete/107764 Reject -- https://master.php.net/note/reject/107764 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186468) next »