#50972 [NEW]: ini_set() doesnt work with safe_mode

From: Date: Tue, 09 Feb 2010 15:18:47 +0000
Subject: #50972 [NEW]: ini_set() doesnt work with safe_mode
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3844@lists.php.net to get a copy of this message
From: mortals at seznam dot cz Operating system: PHP version: 5.2.12 PHP Bug Type: Documentation problem Bug description: ini_set() doesnt work with safe_mode 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 bug report at http://bugs.php.net/?id=50972&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50972&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50972&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50972&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50972&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50972&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50972&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50972&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50972&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50972&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50972&r=support Expected behavior: http://bugs.php.net/fix.php?id=50972&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50972&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50972&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50972&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50972&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50972&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50972&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50972&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50972&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50972&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50972&r=mysqlcfg

« previous php.doc.bugs (#3844) next »