Req #46894 [Com]: Syntax errors in php.ini go unnoticed

From: Date: Tue, 27 Sep 2011 09:51:56 +0000
Subject: Req #46894 [Com]: Syntax errors in php.ini go unnoticed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-163915@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=46894&edit=1 ID: 46894 Comment by: youdontneedme at o2 dot pl Reported by: ilatypov at infradead dot org Summary: Syntax errors in php.ini go unnoticed Status: Open Type: Feature/Change Request Package: Feature/Change Request Operating System: Windows XP Pro PHP Version: 6CVS-2008-12-18 (snap) Block user comment: N Private report: N New Comment: I've also found syntax error in php.ini in php 5.4b1: In line 601 [both php.ini devel and production] is: : paid for the registration of these arrays and because ENV is not as commonly should be: ; paid for the registration of these arrays and because ENV is not as commonly Note that there is colon as starting char. Previous Comments: ------------------------------------------------------------------------ [2008-12-18 02:54:25] ilatypov at infradead dot org Description: ------------ I accidentally commented out a line in php.ini with a hash mark instead of a semi-colon. It appears that the php.ini parser does not raise an all-important alarm on this kind of error. I spent hours trying to understand why my changes to php.ini were not reflected in ini_get_all(). It would be nice if the php.ini parser threw a message about syntax errors to stderr. Pretty please! ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=46894&edit=1

« previous php.bugs (#163915) next »