ID:               24420
 Updated by:       [EMAIL PROTECTED]
 Reported By:      S dot Bennett at lancaster dot ac dot uk
-Status:           Open
+Status:           Feedback
 Bug Type:         Directory function related
 Operating System: Linux
 PHP Version:      4.3.3RC5-dev
 New Comment:

I didn't ask about your php.ini, I asked about any possible php
settings in your httpd.conf / .htaccess files..



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

[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



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

[2003-08-03 19:17:22] aredridel at nbtsc dot org

I think I'm experiencing this or a related bug:

I've a page that most of the time works fine, but about 10% of the
time, the require() statement at the top doesn't find the file, which
is in the same directory as the script and referenced with a simple
relative path -- require('filename.inc')

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

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