summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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