php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42807 Can't find php_session.h if using non-standard location.
Submitted: 2007-10-01 04:07 UTC Modified: 2007-10-02 09:31 UTC
From: mogmios at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.4.7 OS: Fedora Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mogmios at gmail dot com
New email:
PHP Version: OS:

 

 [2007-10-01 04:07 UTC] mogmios at gmail dot com
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-02 09:31 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

PECL/memcache problems should be reported to PECL bug tracker.
This one is already fixed btw.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 21 11:00:02 2025 UTC