note 85438 added to function.parse-ini-file
| From: | tim at timj dot co dot uk | Date: | Sat, 30 Aug 2008 18:55:26 +0000 |
| Subject: | note 85438 added to function.parse-ini-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144017@lists.php.net to get a copy of this message | ||
Unfortunately it does not appear to be possible to handle errors properly with parse_ini_file(). A
file with syntax errors (e.g. an exclamation mark) throws an E_WARNING and the function returns an
empty array (the same as if the file was empty) rather than FALSE.
----
Server IP: 87.124.35.190
Probable Submitter: 84.92.175.66
----
Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php
Edit -- https://master.php.net/note/edit/85438
Del: integrated -- https://master.php.net/note/delete/85438/integrated
Del: useless -- https://master.php.net/note/delete/85438/useless
Del: bad code -- https://master.php.net/note/delete/85438/bad+code
Del: spam -- https://master.php.net/note/delete/85438/spam
Del: non-english -- https://master.php.net/note/delete/85438/non-english
Del: in docs -- https://master.php.net/note/delete/85438/in+docs
Del: other reasons-- https://master.php.net/note/delete/85438
Reject -- https://master.php.net/note/reject/85438
Search -- https://master.php.net/manage/user-notes.php