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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 08:01:27 2025 UTC