]> granicus.if.org Git - php/commitdiff
Fixed bug #25746 (Do not bail out when unable to chdir original dir on
authorIlia Alshanetsky <iliaa@php.net>
Thu, 9 Oct 2003 02:58:34 +0000 (02:58 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 9 Oct 2003 02:58:34 +0000 (02:58 +0000)
systems with broken getcwd()).

main/main.c

index 4edf3dbc23705aed38756cae312fac9a9962c2ff..f53f5cc7ae7e317001f787ecb5b62d0c1602921c 100644 (file)
@@ -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