From: spisek at kerio dot com Operating system: Linux/Macos PHP version: 5.2.9 PHP Bug Type: *Compile Issues Bug description: Custom settings of CPPFLAGS are lost during processing phpize.m4 file
Description: ------------ When phpize script is run all custom settings of CPPFLAGS are lost. Reproduce code: --------------- CPPFLAGS="-D_MY_FLAGS" ./phpize Expected result: ---------------- A definition of _MY_FLAGS is propagated to gcc command line Actual result: -------------- No _MY_FLAGS definitoin on gcc command line. here is a patch for the issue: --- scripts/phpize.m4 2009-06-02 11:03:14.000000000 +0200 +++ scripts/phpize.m4 2009-06-02 13:35:22.000000000 +0200 @@ -70,12 +70,13 @@ #endif ],[ PHP_DEBUG=yes ],[ PHP_DEBUG=no ]) +CPPFLAGS=$old_CPPFLAGS AC_MSG_RESULT([$PHP_DEBUG]) AC_MSG_CHECKING([if zts is enabled]) old_CPPFLAGS=$CPPFLAGS CPPFLAGS="-I$phpincludedir" AC_EGREP_CPP(php_zts_is_enabled,[ -- Edit bug report at http://bugs.php.net/?id=48456&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48456&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48456&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48456&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48456&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48456&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48456&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48456&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48456&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48456&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48456&r=support Expected behavior: http://bugs.php.net/fix.php?id=48456&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48456&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48456&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48456&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48456&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48456&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48456&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48456&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48456&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48456&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48456&r=mysqlcfg
