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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hannes dot magnusson at gmail dot com
New email:
PHP Version: OS:

 

 [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-2025 The PHP Group
All rights reserved.
Last updated: Mon Mar 31 06:01:30 2025 UTC