#50972 [Opn->WFx]: ini_set() doesnt work with safe_mode
| From: | degeberg@php.net | Date: | Tue, 09 Feb 2010 23:21:00 +0000 |
| Subject: | #50972 [Opn->WFx]: ini_set() doesnt work with safe_mode | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3847@lists.php.net to get a copy of this message | ||
ID: 50972
Updated by: degeberg@php.net
Reported By: mortals at seznam dot cz
-Status: Open
+Status: Wont fix
Bug Type: Documentation problem
PHP Version: 5.2.12
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2010-02-09 15:18:46] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50972&edit=1