php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50972 ini_set() doesnt work with safe_mode
Submitted: 2010-02-09 15:18 UTC Modified: 2010-02-09 23:20 UTC
From: mortals at seznam dot cz Assigned:
Status: Wont fix Package: Documentation problem
PHP Version: 5.2.12 OS:
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mortals at seznam dot cz
New email:
PHP Version: OS:

 

 [2010-02-09 15:18 UTC] mortals at seznam dot cz
Description:
------------
ini_set() doesnt work with safe_mode

Reproduce code:
---------------
---
From manual page: features.safe-mode.functions
---
echo ini_get('safe_mode')."<br>\n";
var_dump(ini_set('memory_limit', '64M'));
//output
//0
//string(3) "40M" 64M

//change safe_mode to On
//and new output is
//1
//bool(false) 40M

Expected result:
----------------
ini_set() in list:
http://cz.php.net/manual/en/features.safe-mode.functions.php

or

working ini_set() with safe_mode

Actual result:
--------------
see reproduce code

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-09 23:20 UTC] degeberg@php.net
Thanks for your report.

You can set some directives using ini_set() even with safe mode on. An example would be display_errors. We would have to figure out which directives that are affected. Seeing as safe mode is deprecated as of PHP 5.3.0, doing that isn't really feasible.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 18 11:01:31 2024 UTC