summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-10-09 02:58:34 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-10-09 02:58:34 +0000
commit639216a4aa2800b91116ea9a06b0a9ae41c7ac80 (patch)
tree930114be775837c325df98f59efad74f8bdc06a2
parentff0e8eee5d6c1db75a62a629be2ef809bddc9e9d (diff)
downloadphp-git-639216a4aa2800b91116ea9a06b0a9ae41c7ac80.tar.gz
Fixed bug #25746 (Do not bail out when unable to chdir original dir on
systems with broken getcwd()).
-rw-r--r--main/main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/main/main.c b/main/main.c
index 4edf3dbc23..f53f5cc7ae 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1576,9 +1576,6 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)
#if HAVE_BROKEN_GETCWD
/* this looks nasty to me */
old_cwd_fd = open(".", 0);
- if (old_cwd_fd == -1) {
- zend_bailout();
- }
#else
VCWD_GETCWD(old_cwd, OLD_CWD_SIZE-1);
#endif