#41531 [NEW]: apache and apache_hooks config.w32 incorrect [PATCH]
From: auroraeosrose at gmail dot com
Operating system: WinXPSP2
PHP version: 5CVS-2007-05-29 (snap)
PHP Bug Type: *Compile Issues
Bug description: apache and apache_hooks config.w32 incorrect [PATCH]
Description:
------------
apache and apache_hooks sapis have the location of their libraries
hardcoded using ../php_build instead of using the PHP_PHP_BUILD variable,
so detecting libraries when --with-php-build is used fails - patches to fix
this error below
Reproduce code:
---------------
Index: apache/config.w32
===================================================================
RCS file: /repository/php-src/sapi/apache/config.w32,v
retrieving revision 1.7
diff -u -r1.7 config.w32
--- apache/config.w32 17 Jan 2004 13:00:04 -0000 1.7
+++ apache/config.w32 29 May 2007 19:30:49 -0000
@@ -9,10 +9,10 @@
if (PHP_APACHE != "no") {
if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE",
php_usual_include_suspects +
";" + PROGRAM_FILES + "\\Apache Group\\Apache\\include" +
- ";..\\php_build\\apache\\src\\include") &&
+ ";" + PHP_PHP_BUILD + "\\apache\\src\\include") &&
CHECK_LIB("ApacheCore.lib", "apache", php_usual_lib_suspects +
';' + PROGRAM_FILES + '\\Apache Group\\Apache\\libexec' +
- ';..\\php_build\\apache\\src\\corer')) {
+ ';' + PHP_PHP_BUILD + '\\apache\\src\\corer')) {
// We need to play tricks to get our readdir.h used by apache
// headers
SAPI('apache', 'mod_php5.c sapi_apache.c php_apache.c',
Index: apache_hooks/config.w32
===================================================================
RCS file: /repository/php-src/sapi/apache_hooks/config.w32,v
retrieving revision 1.2
diff -u -r1.2 config.w32
--- apache_hooks/config.w32 17 Jan 2004 13:00:08 -0000 1.2
+++ apache_hooks/config.w32 29 May 2007 19:42:45 -0000
@@ -6,10 +6,10 @@
if (PHP_APACHE_HOOKS != "no") {
if (CHECK_HEADER_ADD_INCLUDE("httpd.h", "CFLAGS_APACHE_HOOKS",
php_usual_include_suspects +
";" + PROGRAM_FILES + "\\Apache Group\\Apache\\include" +
- ";..\\php_build\\apache\\src\\include") &&
+ ";" + PHP_PHP_BUILD + "\\php_build\\apache\\src\\include") &&
CHECK_LIB("ApacheCore.lib", "apache_hooks", php_usual_lib_suspects +
';' + PROGRAM_FILES + '\\Apache Group\\Apache\\libexec' +
- ';..\\php_build\\apache\\src\\corer')) {
+ ';' + PHP_PHP_BUILD + '\\apache\\src\\corer')) {
// We need to play tricks to get our readdir.h used by apache
// headers
SAPI('apache_hooks', 'mod_php5.c sapi_apache.c php_apache.c',
--
Edit bug report at http://bugs.php.net/?id=41531&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41531&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41531&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41531&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41531&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41531&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41531&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41531&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41531&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41531&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41531&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41531&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41531&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41531&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41531&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41531&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41531&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41531&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41531&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41531&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41531&r=mysqlcfg
Thread (6 messages)
- auroraeosrose at gmail dot com