From:             kennyz at nycap dot rr dot com
Operating system: Linux
PHP version:      5.2.0
PHP Bug Type:     *Compile Issues
Bug description:  INSTALL_HEADERS contains incorrect reference to php_filter.h

Description:
------------
The ./configure script for PHP 5.2.0 contains a small error that affects
the directory layout after a "make install".

On line 32682 of configure, the line:

    for header_file in $ext_srcdir/php_filter.h; do

causes $header_file to contain the full path to php_filter.h, instead of a
relative path like all of the other $header_file settings throughout
./configure.

Therefore, if $ext_srcdir is /usr/local/src/php-5.2.0, the installation
location for the filter extension ends up being:

$(INSTALL_ROOT)/usr/include/php/usr/local/src/php-5.2.0/ext/filter, which
is obviously not correct.


The Makefile that was generated from ./configure clearly shows the
problem:

INSTALL_HEADERS = ext/libxml/php_libxml.h ext/pcre/php_pcre.h
ext/pcre/pcrelib/
ext/date/php_date.h ext/date/lib/timelib.h ext/date/lib/timelib_structs.h
ext/date/lib/timelib_config.h ext/dom/xml_common.h
/usr/local/src/php-5.2.0/ext/filter/php_filter.h ext/gd/ ext/gd/libgd/
ext/hash/php_hash.h ext/hash/php_hash_md.h .................

The full path to php_filter.h is caused by the mistake on line 32682 in
./configure.

The correct line in ./configure should be:

    for header_file in ext/filter/php_filter.h; do


This fixes the problem in the resulting Makefile, and therefore fixes the
issue with the bad layout after "make install".





-- 
Edit bug report at http://bugs.php.net/?id=39358&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39358&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39358&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39358&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39358&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39358&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39358&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39358&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39358&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39358&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39358&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39358&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39358&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39358&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39358&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39358&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39358&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39358&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39358&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39358&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39358&r=mysqlcfg

Reply via email to