php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14650 include_path is badly broken in SAPI version
Submitted: 2001-12-21 14:39 UTC Modified: 2001-12-21 15:53 UTC
From: garth at utmail dot to Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.1.0 OS: Windows 2000 (Win2K)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: garth at utmail dot to
New email:
PHP Version: OS:

 

 [2001-12-21 14:39 UTC] garth at utmail dot to
Note: Please ONLY look at this bug if you have a 
system that can replicate the environment detailed 
below...

Environment
-----------
OS: Windows 2000 Pro or Server
Webserver: Apache 1.3.x
PHP: 4.05, 4.06, 4.08, 4.1.0 running as an SAPI Apache module.  

HTTPD.CONF (SAPI module not PHP.EXE CGI)
----------------------------------------
SAPI mode is:
  LoadModule php4_module "./php/sapi/php4apache.dll"

SAPI mode is NOT:
  Action application/x-httpd-php "/php/php.exe" 

If you are running in SAPI mode and you set the 
value of include_path in C:\WINNT\PHP.INI to ANYTHING
other then "" (empty), you will get an error similar
to:

Warning: Failed opening '/apache/htdocs/helloworld.php' for inclusion (include_path='.')
in Unknown on line 0

The test script to create the error is:
<?php
echo "hello world";
?>

this bug has been errnously closed twice by folks
who have not been able to replicate it be cause they
don't have the right system config
http://bugs.php.net/bug.php?id=11612 (uhl@cis.ohio-state.edu)
http://bugs.php.net/bug.php?id=14563 (myself)

-GED

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-21 15:53 UTC] sander@php.net
Do not open new bugs. Reopen your old one!

Anyway, I can't reproduce with the following specs:
Windows 2000 Pro
Apache 1.3.22
PHP 4.1.0 as a apache-module
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 10:01:32 2024 UTC