Should php3_fopen_for_parser change the current working directory?
| From: | rubys at us dot ibm dot com | Date: | Tue, 23 Nov 1999 20:38:27 +0000 |
| Subject: | Should php3_fopen_for_parser change the current working directory? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13013@lists.php.net to get a copy of this message | ||
I'd like to remove the following code, and was wondering if anybody had an
objection:
temp = estrdup(fn);
php_dirname(temp, strlen(temp));
if (*temp) {
chdir(temp);
}
efree(temp);
It seems to me that this is looking for trouble (particularly when running
under a multi-threaded web server!)
In particular, it blows me out of the water for making further progress on
running PHP as a servlet.