php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6237 weird directory support
Submitted: 2000-08-18 09:09 UTC Modified: 2000-10-18 07:49 UTC
From: daniel at php4win dot de Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (18/08/2000) OS: Win32
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: daniel at php4win dot de
New email:
PHP Version: OS:

 

 [2000-08-18 09:09 UTC] daniel at php4win dot de
php as cgi show's some very weird directory support under windows.
for example it doesn't searches for the configuration file in the systemroot
anymore, but in the folder where the interpreter is stored.

also when it's coming to file searching php searches in the directory where
php is stored, not where it's executed:

ImageTTFText($handle, 0, 0, 0, 0, $color,$font,$string);

it should search the font in the diretory where the file is executed, but
php searches it in the directory where it's stored.
this doesn't only apply to the gd. so i made a quick scriot to see what's in
the folder:

<?
$handle = opendir("./");
while($file = readdir($handle))
print "$file<br>\n";
?>

it shows nothing, but there are several files in the actual folder.
running that script as apache module show's every file, oh and the
servermodules doesn't search for the configuration file in the systemroot as
well, but in the serverroot nowdays.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-18 09:49 UTC] waldschrott@php.net
this bug causes my debug builds not to run I assume,
although placing the php.ini in the interperters dir doesn?t
help, it just stops at reading the file (it?s locked and php
hangs, no cup usage)....
 [2000-08-18 16:35 UTC] daniel at php4win dot de
i don't think that it has anything toto with the debug build thing.
the problem with the php.ini is solved when i go back to fopen-wrappers.c revision 1.75.
but the problem with the gd exists...
 [2000-10-18 07:49 UTC] dbeu@php.net
fixed in cvs
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 09:00:01 2026 UTC