Req #61455 [NEW]: Warn when ini_set()'ing certain directives
| From: | brad at njoe dot com | Date: | Tue, 20 Mar 2012 13:56:55 +0000 |
| Subject: | Req #61455 [NEW]: Warn when ini_set()'ing certain directives | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-168654@lists.php.net to get a copy of this message | ||
From:
Operating system: N/A
PHP version: 5.3.10
Package: PHP options/info functions
Bug Type: Feature/Change Request
Bug description:Warn when ini_set()'ing certain directives
Description:
------------
If ini_set() is called to set any PHP directive whose 'Changeable'
attribute (e.g.
as per man page http://php.net/ini.list) is not
'PHP_INI_USER' or
'PHP_INI_ALL',
an error message could be generated to advise the developer that the
statement
will have no effect. In other words, don't quietly allow directives to be
changed
when they've already taken effect by the time the script is executed (thus
changing them via ini_set() won't ever do anything).
Test script:
---------------
<?php
ini_set('allow_url_fopen', '1');
Expected result:
----------------
Warning: Changing PHP directive at runtime has no effect in <code> on line
3
--
Edit bug report at https://bugs.php.net/bug.php?id=61455&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61455&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61455&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61455&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=61455&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61455&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=61455&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=61455&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=61455&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=61455&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=61455&r=support
Expected behavior: https://bugs.php.net/fix.php?id=61455&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=61455&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=61455&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=61455&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61455&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61455&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=61455&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=61455&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=61455&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=61455&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=61455&r=mysqlcfg