Bug #74531 [NEW]: config.cache causes build failures in upgrades; should be php-version-specific
From: litt at acm dot org
Operating system: Linux
PHP version: 7.1.4
Package: Compile Failure
Bug Type: Bug
Bug description:config.cache causes build failures in upgrades; should be php-version-specific
Description:
------------
configure creates a cache file in ..; specifically ../config.cache.
I'm not thrilled about a build touching a directory above itself - this
is not good practice, as the containing directory is often shared among
many products.
However, PHP even creates trouble for itself, since it caches paths.
For example, consider an upgrade from PHP 5.4.7 to 5.6.30 or 7.1.4.
Burried in the configure script (after debugging various weird symptoms
- compile and/or link failures):
checking for PDO includes... (cached) /home/litt/kits/php-5.4.7/ext
configure is using the result of a different version.
I strongly suggest that the configure .cache file be put in a
subdirectory of the kit. I understand why ../ was chosen - it allows
one to wipe out the kit directory, untar cleanly, and still use the
cache. And if one has a common directory for php extensions, arguably
they can use the same cache. But the side effect is bad, and quite
unexpected; starting over should START OVER!.
If you must have a sticky cache, or believe its benefits outweigh the
risks, how about changing the file name? E.g. php-5.4.7-config.cache
At least this would prevent versions of PHP from conflicing with
each-other - and with other products...
Thanks.
--
Edit bug report at https://bugs.php.net/bug.php?id=74531&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74531&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74531&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74531&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74531&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74531&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74531&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74531&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74531&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74531&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74531&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74531&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74531&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74531&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74531&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74531&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74531&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74531&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74531&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74531&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74531&r=mysqlcfg
Thread (1 message)
- litt at acm dot org