From:             mogmios at gmail dot com
Operating system: Fedora Linux
PHP version:      4.4.7
PHP Bug Type:     Compile Failure
Bug description:  Can't find php_session.h if using non-standard location.

Description:
------------
When installing the memcache module for Apache/PHP with a non-standard
location, such as /services/apache/, it seems like there is no way to
define the location when configuring for build. You'll get an error
complaining about being unable to find php_session.h. I modified configure
to try the PREFIX location too and that seems to have worked fine.

Reproduce code:
---------------
if test -f "${prefix}/include/php/ext/session/php_session.h"; then
  session_inc_path="${prefix}/include/php"
elif test -f "$abs_srcdir/include/php/ext/session/php_session.h"; then
  session_inc_path="$abs_srcdir/include/php"
elif test -f "$abs_srcdir/ext/session/php_session.h"; then
  session_inc_path="$abs_srcdir"
elif test -f "$phpincludedir/ext/session/php_session.h"; then
  session_inc_path="$phpincludedir"
fi

Expected result:
----------------
The memcache module to correctly build and run.

Actual result:
--------------
Failed with "Can't find php_Session.h" error during build.

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

Reply via email to