PHP 4.0 Bug #4264: PHP4.0RC1 under Roxen 2.0 does not chdir() to the script directory
| From: | tstromberg at rtci dot com | Date: | Thu, 27 Apr 2000 16:39:39 +0000 |
| Subject: | PHP 4.0 Bug #4264: PHP4.0RC1 under Roxen 2.0 does not chdir() to the script directory | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18217@lists.php.net to get a copy of this message | ||
From: tstromberg@rtci.com
Operating system: FreeBSD 5.0-CURRENT
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Other
Bug description: PHP4.0RC1 under Roxen 2.0 does not chdir() to the script directory
When running PHP 4.0RC1 under Roxen 2.0.46, it never chdir's to the directory of the script,
instead it stays in /usr/local/roxen.
This really screws up with relative paths for include() and fopen(). You could of course, chdir
yourself in every document, but this is definitely not the behaviour I've seen in Apache.
Script to reproduce problem. It should show the files /usr/local/roxen rather then the scripts
directory:
$handle = opendir('.');
while ($file = readdir($handle)) {
print ("$file\n");
}
closedir($handle);
configured with:
./configure --with-roxen=/usr/local/roxen/server --with-mysql --with-xml
php.ini:
only difference is include_path has "."