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

From: Date: Fri, 25 Jan 2002 07:34:37 +0000
Subject: Bug #13279 Updated: parse_ini_file causes PHP to exit if ini file syntax is malformed
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-78080@lists.php.net to get a copy of this message
ID: 13279 Updated by: derick Reported By: zak@php.net Status: Open Old Bug Type: PHP options/info functions Bug Type: Documentation problem Operating System: Win2k/CGI PHP Version: 4.0.6 New Comment: It's not a bug anyways... making it a Documentation problem. Previous Comments: ------------------------------------------------------------------------ [2002-01-24 07:56:19] eskaly@php.net 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> ------------------------------------------------------------------------ [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 (#78080) next »