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.

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


Previous Comments:
------------------------------------------------------------------------

[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)


------------------------------------------------------------------------

[2003-08-19 03:50:32] S dot Bennett at lancaster dot ac dot uk

Tested this against the latest snapshot (200308190730, which describes
itself as 4.3.3RC5-dev) it's still behaving as I described.

------------------------------------------------------------------------

[2003-08-14 00:36:06] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

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

Reply via email to