From: gabriel at oxeva dot fr Operating system: Linux 2.6 PHP version: 5.2.0 PHP Bug Type: *Compile Issues Bug description: GNU layout and --sysconfdir option break install and include paths
Description: ------------ When compiling PHP, using the configure script with the --sysconfdir or using the GNU layout option breaks paths such as PHP_INCLUDE_PATH or PHP_SYSCONFDIR set in main/build-defs.h. It seems there is some path expansions are missing in the configure script Reproduce code: --------------- use the configure script with --prefix=/usr and --with-layout=GNU and/or --sysconfdir=/etc/php some examples : first, rebuild the configure script with ./buildconf --force then, CASE 1 : configure line (sysconfdir, but not the GNU layout): ./configure --prefix=/usr --disable-cgi --sysconfdir=/etc/php CASE 2 : configure with GNU layout, but without sysconfdir : ./configure --prefix=/usr --disable-cgi --with-layout=GNU CASE 3 : configure with GNU layout and sysconfdir : ./configure --prefix=/usr --disable-cgi --sysconfdir=/etc/php --with-layout=GNU Expected result: ---------------- CASE 1: - Man pages in the right place (/usr/man) CASE 2: - include_path : .:/usr/share/pear - have a working --sysconfdir option CASE 3: - man pages in /usr/man - pear in /usr/share/pear - include_path : .:/usr/share/pear Actual result: -------------- CASE 1: - man pages installed in /man (directly in the root filesystem!) CASE 2: - include_path broken : include_path => .:${prefix}/share/pear - no option to define where to place files such as pear.conf (in sysconfdir) CASE 3: - man pages installed in /man - pear installed in /pear - include_path broken : include_path => .:${prefix}/share/pear -- Edit bug report at http://bugs.php.net/?id=39890&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39890&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39890&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39890&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39890&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39890&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39890&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39890&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39890&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39890&r=support Expected behavior: http://bugs.php.net/fix.php?id=39890&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39890&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39890&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39890&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39890&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39890&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39890&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39890&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39890&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39890&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39890&r=mysqlcfg