php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46811 ini_set() doesn't return false on failure
Submitted: 2008-12-09 10:04 UTC Modified: 2008-12-12 09:21 UTC
From: hannes dot magnusson at gmail dot com Assigned: bjori (profile)
Status: Closed Package: PHP options/info functions
PHP Version: 5.2.8 OS: Linux
Private report: No CVE-ID: None
 [2008-12-09 10:04 UTC] hannes dot magnusson at gmail dot com
Description:
------------
ini_set() doesn't return false when updating PHP_INI_ALL entries that can fail.

Reproduce code:
---------------
<?php
var_dump(ini_set("arg_separator.output", ""));
var_dump(ini_get("arg_separator.output"));
?>


Expected result:
----------------
bool(false)
string(1) "&"


Actual result:
--------------
string(1) "&"
string(1) "&"


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-09 10:25 UTC] bjori@php.net
Fixed in HEAD and 5.3.
Waiting for 5.2 status report...
 [2008-12-12 09:21 UTC] bjori@php.net
..won't be fixed in 5.2
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 09:01:32 2024 UTC