Browse Source

Fixed bug #38904 (apache2filter changes cwd to /).

PECL_OPENSSL
Ilia Alshanetsky 20 years ago
parent
commit
ccc25cc3eb
  1. 1
      NEWS
  2. 3
      main/main.c

1
NEWS

@ -8,6 +8,7 @@ PHP NEWS
(Dmitry)
- Fixed bug #38941 (imap extension does not compile against new version of
the imap library). (Ilia)
- Fixed bug #38904 (apache2filter changes cwd to /). (Ilia, bjori)
- Fixed bug #38844 (curl_easy_strerror() is defined only since cURL 7.12.0).
(Tony)
- Fixed bug #38623 (leaks in a tricky code with switch() and exceptions).

3
main/main.c

@ -1704,8 +1704,7 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)
PG(during_request_startup) = 0;
if (primary_file->type == ZEND_HANDLE_FILENAME
&& primary_file->filename) {
if ((primary_file->type == ZEND_HANDLE_FILENAME || primary_file->type == ZEND_HANDLE_STREAM) && primary_file->filename) {
#if HAVE_BROKEN_GETCWD
/* this looks nasty to me */
old_cwd_fd = open(".", 0);

Loading…
Cancel
Save