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
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: jan dot ptacek at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC