#19215 [Bgs->Opn]: ini_set returning FALSE when shouldn't

From: Date: Tue, 03 Sep 2002 21:09:18 +0000
Subject: #19215 [Bgs->Opn]: ini_set returning FALSE when shouldn't
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18334@lists.php.net to get a copy of this message
ID: 19215 User updated by: spam@mattbergin.co.uk Reported By: spam@mattbergin.co.uk -Status: Bogus +Status: Open Bug Type: PHP options/info functions Operating System: Slackware 8.1 (2.4.19) PHP Version: 4.2.2 New Comment: So how do I tell the difference between when the call has failed or just that there was no previous value? Previous Comments: ------------------------------------------------------------------------ [2002-09-03 15:54:22] sniper@php.net What's the bug here? If some ini setting is not set at all, what should be returned else than false? ------------------------------------------------------------------------ [2002-09-03 15:28:24] spam@mattbergin.co.uk When I set a configuration directive which has no value defined initially, ini_set returns FALSE, even though the call succeeded. Example: var_dump(ini_get('error_log')); // bool(false) var_dump(ini_set('error_log', '/tmp/foo')); // bool(false) var_dump(ini_get('error_log')); // string(8) "/tmp/foo" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19215&edit=1

« previous php.bugs (#18334) next »