note 85438 deleted from function.parse-ini-file by felipe

From: Date: Sun, 31 Aug 2008 21:19:31 +0000
Subject: note 85438 deleted from function.parse-ini-file by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-144029@lists.php.net to get a copy of this message
Note Submitter: tim at timj dot co dot uk ---- 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.

« previous php.notes (#144029) next »