php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16186 include path in the module version, using sub dir as php causing error
Submitted: 2002-03-20 10:38 UTC Modified: 2002-06-06 20:09 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: HummerX123 at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.1.2 OS: Win2k
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: HummerX123 at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-03-20 10:38 UTC] HummerX123 at hotmail dot com
after I upgrade to 4.1.2 from 4.1.1 the php module version of Apache
stop working
all my working php script would throw an error

Warning: Failed opening 'path_of_the_script' for inclusion
(include_path='c:\php4\pear') in Unknown on line 0

even the one that doesn't require the use of include or require
function. In fact one of the script only have phpinfo() in it.

I've try to play around with the include_path however this make no
different.
I add my comment to a bogus post and also a Analyzed post so I thought I would post it again

Anyway I move to the cgi version and get it to work fine, however I found another bug, when I use a sub directly with the name php immediate after the webroot any php page in that directly then Apache will throw a not found error

Not Found
The requested URL /php/test.php was not found on this server.

I check in the log and this is what I found
[Wed Mar 20 10:37:18 2002] [error] [client 192.168.1.101] (2)No such file or directory: script not found or unable to stat: c:/php/test.php

It seem to me that because I name the directory php, somehow it confuse php and it start to pick up the page from c:\php which is where I install php and not from the webroot.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-09 05:02 UTC] mak77 at anvi dot it
I have a similar problem but only with pages that contain phpinfo()

If i activate the include_path in the php.ini ALL scripts give the same error ("Warning: failed opening...."), if i comment out the include_path instead only phpinfo() gives this error but the other functions work fine

System is: 
Win 2000 Server sp2, Security Rollup Patch 1, all the patches founded by HFNETCHK.exe were installed.
PHP 4.1.2 as ISAPI with php.ini-recommended
IIS 5.0 with all patches.
 [2002-04-09 05:04 UTC] mak77 at anvi dot it
This problem doesn't exists on Windows XP as i can see....
 [2002-04-16 03:54 UTC] yeuxquipic at free dot fr
I've the same problem
i've test php 4.1.2, 4.2.0rc3 , 4.2.0rc4.[Tue Apr 16 

My msg is:
09:45:42 2002] [error] PHP Warning:  Failed opening '/serveur web/apache/htdocs/info.php' for inclusion (include_path='.;c:\serveur web\php-4.2.0RC4-win32\pear') in Unknown on line 0
 [2002-05-04 04:23 UTC] slach at ems dot ru
for win32 php4.2.0+Apache1.3.x platform
replace in httd.conf DocumentRoot path like /usr/... on  c:/usr/... (with drive literal)

but in this configuration not work correct mod_rewrite
 [2002-06-06 20:09 UTC] sniper@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. 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

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC