ID: 24420 User updated by: S dot Bennett at lancaster dot ac dot uk Reported By: S dot Bennett at lancaster dot ac dot uk -Status: Feedback +Status: Open Bug Type: Directory function related Operating System: Linux PHP Version: 4.3.3RC5-dev New Comment:
This is on a minimal apache/PHP installation that I've set up specifically to reproduce this problem. Apache is configured as: ./configure --prefix=/usr/local/packages/apache-1.3.27 --enable-module=so Linux kernel is 2.4.20-ac2 gcc version is 2.96 glibc is 2.2.4 I've successfully reproduced this problem on a Solaris 7 system (gcc version is 2.96) and on a Solaris 9 system (gcc version is 3.2.2). I don't see how it can be dependent on compiler version or platform... Previous Comments: ------------------------------------------------------------------------ [2003-08-19 06:04:23] [EMAIL PROTECTED] What other apache modules do you have enabled? Have you tried this with some default config? (sidenote: What linux / gcc / glibc versions do you have..?) ------------------------------------------------------------------------ [2003-08-19 05:38:34] S dot Bennett at lancaster dot ac dot uk This is on a minimal apache/PHP installation that I've set up specifically to reproduce this problem. There are no .htaccess files in the path to my test script. The only PHP-related entries in httpd.conf are: LoadModule php4_module libexec/libphp4.so DirectoryIndex index.html index.php AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps ------------------------------------------------------------------------ [2003-08-19 05:25:53] [EMAIL PROTECTED] I didn't ask about your php.ini, I asked about any possible php settings in your httpd.conf / .htaccess files.. ------------------------------------------------------------------------ [2003-08-19 04:56:59] S dot Bennett at lancaster dot ac dot uk I did have some stuff in php.ini, but removing the file has made no difference (it was only stuff like "max_execution_time = 5" anyway...) I don't see how this can fail to work for you, it's clear from the code that this will happen - php_execute_script() does something like: old_cwd=getcwd(); chdir(DIR_OF_SCRIPT); EXECUTE_SCRIPT chdir(old_cwd); but all the shutdown functions are called outside of this (from php_request_shutdown()). Maybe it should be up to the SAPI module to do the chdir() stuff - some SAPI modules might not care (I'd guess that apache wouldn't care) in which case there might be a (tiny) performance gain in not doing chdir(old_cwd) at the end of a request... ------------------------------------------------------------------------ [2003-08-19 04:08:28] [EMAIL PROTECTED] I can not reproduce this. Do you possibly have some php ini-settings set in your virtualhosts/some .htaccess file? (using php_value or php_admin_value) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/24420 -- Edit this bug report at http://bugs.php.net/?id=24420&edit=1