From: jani dot ollikainen at pronetko dot fi Operating system: Linux PHP version: 5.2.6 PHP Bug Type: *Configuration Issues Bug description: Option to change --with-config-file-scan-dir runtime
Description: ------------ There should be option to change it runtime. Possible ways are: - Command line parameter - php.ini directive (there's many ways to change php.ini's location) - Enviromental variable. Pick your poison as long as there is a way. Reason why this is needed is: Think about situation that's default in most distros, extension loading is done with that setting. Then you want to make a CLI program that makes a lot of fork() and you want keep it's memory footprint to be as low as possible. You cannot with acceptable way to change cli program not loading those extensions from scan dir. Just edit the files in scan dir? They are needed for normal WWW php operation. Just make two different php.ini's that have the extensions? And that will break distros extension loading style. Just use the -n and put all the settings in file with ini_set() and dl() functions? Uhoh, Not nice. And there seems to be patches around the net for this problem, but nothing in PHP itself. http://alt.linux.kiev.ua/srpm/php/patches/20 http://www.opendogs.org/pub/php-5_2_3-config-file-scan-dir.patch http://pronetko.fi/~bestis/php-5.1.6-scandir.patch (my env version) Expected result: ---------------- There should be a way to change it runtime. Actual result: -------------- No way to change it runtime. It can only be disabled with -n parameter but then there's no php.ini. -- Edit bug report at http://bugs.php.net/?id=45114&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45114&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45114&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45114&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45114&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45114&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45114&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45114&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45114&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45114&r=support Expected behavior: http://bugs.php.net/fix.php?id=45114&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45114&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45114&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45114&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45114&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45114&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45114&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45114&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45114&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45114&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45114&r=mysqlcfg