php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47558 ini_set not returning FALSE upon failure
Submitted: 2009-03-04 12:16 UTC Modified: 2009-03-04 13:27 UTC
From: jan dot ptacek at gmail dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.2.6 OS: linux
Private report: No CVE-ID: None
 [2009-03-04 12:16 UTC] jan dot ptacek at gmail dot com
Description:
------------
ini_set is not returning FALSE upon failure

Reproduce code:
---------------
ini_set('include_path', APP_DIR . DS . PATH_SEPARATOR . ini_get('include_path'));

Expected result:
----------------
updated include_path or FALSE return value

Actual result:
--------------
old include_path is returned but new one is not set,
because include_path was configured using php_admin_value


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-04 12:37 UTC] scottmac@php.net
I can't reproduce this with 5.2.9

var_dump(ini_set('include_path', '/fooo/bar'));

results in a return of bool (false)
 [2009-03-04 12:50 UTC] jan dot ptacek at gmail dot com
I am really sorry for reporting wron version
I am actually on 5.2.6 and can't change that.
 [2009-03-04 13:27 UTC] scottmac@php.net
Bug reports should only be against the latest version, since I can't reproduce this on 5.2.9, it can be assumed its fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 11:01:37 2024 UTC