Bug #13279 Updated: parse_ini_file causes PHP to exit if ini file syntax is malformed

From: Date: Thu, 24 Jan 2002 12:56:19 +0000
Subject: Bug #13279 Updated: parse_ini_file causes PHP to exit if ini file syntax is malformed
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-77990@lists.php.net to get a copy of this message
ID: 13279 Updated by: eskaly Reported By: zak@php.net Status: Open Bug Type: PHP options/info functions Operating System: Win2k/CGI PHP Version: 4.0.6 New Comment: doesn't seem to be os depended, got the same behaviour under linux 2.4.3, php 4.0.6 malformed means for example <sample.ini> [foo] bar = buz boz <EOF> Previous Comments: ------------------------------------------------------------------------ [2001-09-13 03:42:51] zak@php.net parse_ini_file() causes PHP to exit if ini file syntax is malformed. This can be reproduced by parsing a ini file with the following content: ; Start broken ini file a ; End broken ini file This is not quite a bug - more an expression of the belief that functions should exit gracefully when possible. :) ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13279&edit=1

« previous php.dev (#77990) next »