Req #76645 [NEW]: Impossible to determine correct auto pre/append file syntax.

From: Date: Thu, 19 Jul 2018 10:15:24 +0000
Subject: Req #76645 [NEW]: Impossible to determine correct auto pre/append file syntax.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216372@lists.php.net to get a copy of this message
From: php at zeweb dot co dot uk Operating system: Any PHP version: Irrelevant Package: Reproducible crash Bug Type: Feature/Change Request Bug description:Impossible to determine correct auto pre/append file syntax. Description: ------------ Presently, depending on actual php implementation there can be three or more ways to use the auto_prepend_file directive - In .htaccess, in .user.ini or php.ini There is as far as I know no reliable way to test for the correct method on any given server. Worse, use of an inapplicable method will in some cases cause the entire website to go down. This situation makes it extremely hard to write a reliable and SAFE automatic installer for software using this feature. Applies to all php versions. (tested 5.3, 5.6, 7.2) - The php version has some bearing on which method might apply to a given server, but is not in itself a reliable indicator. Test script: --------------- In .htaccess: php_value auto_prepend_file path/to/file.php In php or .user ini: auto_prepend_file = 'path/to/file.php' Expected result: ---------------- auto_prepend_file should use a single syntax and work predictably. Actual result: -------------- Use of .htaccess syntax when not appropriate - entire website brought down with 500 error. Use of ini file syntax when not appropriate - No result. -- Edit bug report at https://bugs.php.net/bug.php?id=76645&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76645&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76645&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76645&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76645&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76645&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76645&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76645&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76645&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76645&r=support Expected behavior: https://bugs.php.net/fix.php?id=76645&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76645&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76645&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76645&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76645&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76645&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76645&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76645&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76645&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76645&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76645&r=mysqlcfg

« previous php.bugs (#216372) next »