PHP 4.0 Bug #6237: weird directory support
| From: | daniel at php4win dot de | Date: | Fri, 18 Aug 2000 13:09:44 +0000 |
| Subject: | PHP 4.0 Bug #6237: weird directory support | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-29405@lists.php.net to get a copy of this message | ||
From: daniel@php4win.de
Operating system: Win32
PHP version: 4.0 Latest CVS (18/08/2000)
PHP Bug Type: Scripting Engine problem
Bug description: weird directory support
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.