Doc #77475 [NEW]: Order in which conf files are searched for is incomplete

From: Date: Wed, 16 Jan 2019 23:21:30 +0000
Subject: Doc #77475 [NEW]: Order in which conf files are searched for is incomplete
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16335@lists.php.net to get a copy of this message
From: korikulum at net dot hr Operating system: PHP version: Irrelevant Package: *Configuration Issues Bug Type: Documentation Problem Bug description:Order in which conf files are searched for is incomplete Description: ------------ The documentation states the following: php.ini is searched for in these locations (in order): ... ◦ Current working directory (except CLI). ... This however seems to be incomplete. According to the source code, all SAPIs that have php_ini_ignore_cwd set to 1 ignore the cwd https://github.com/php/php-src/blob/67e0138c0dfd966624223911a0821f6c294ad1c6/main/php_ini.c#L519 There are currently three SAPIs that have that: 1) CLI https://github.com/php/php-src/blob/cec091176cecd3f1efd553f4283fa7346184ad36/sapi/cli/php_cli.c#L1328 2) FPM https://github.com/php/php-src/blob/cec091176cecd3f1efd553f4283fa7346184ad36/sapi/fpm/fpm/fpm_main.c#L1594 3) phpdbg https://github.com/php/php-src/blob/68694c999796f9eec0f966f6d5181dcf5db68a99/sapi/phpdbg/phpdbg.c#L1612 Also, it might be good to explain what exactly is meant by "Current working directory", I wasn't really sure, that why I went to check the source code in the first place. -- Edit bug report at https://bugs.php.net/bug.php?id=77475&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77475&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77475&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77475&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77475&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77475&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77475&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77475&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77475&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77475&r=support Expected behavior: https://bugs.php.net/fix.php?id=77475&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77475&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77475&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77475&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77475&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77475&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77475&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77475&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77475&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77475&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77475&r=mysqlcfg

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