note 107764 deleted from function.session-start by peehaa
| From: | peehaa@php.net | Date: | Fri, 09 Dec 2016 21:59:13 +0000 |
| Subject: | note 107764 deleted from function.session-start by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208310@lists.php.net to get a copy of this message | ||
Note Submitter: LaKing at D250 dot hu
----
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.