]> granicus.if.org Git - php/commitdiff
php_error_docref aborts cgi. This broke using php as cgi under
authorShane Caraveo <shane@php.net>
Sun, 1 Dec 2002 21:28:27 +0000 (21:28 +0000)
committerShane Caraveo <shane@php.net>
Sun, 1 Dec 2002 21:28:27 +0000 (21:28 +0000)
apache/mod_cgi with the cgi-script directive and bang lines in php scripts.
removing it allows this to work again.

main/fopen_wrappers.c

index 72fb8a7339aa2c3f1b8c184142e625abad82a3a3..117fe3373c8d2bbd28c7b8ed907af45b7de87077 100644 (file)
@@ -348,8 +348,8 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC)
                fp = NULL;
        }
        if (!fp) {
-               php_error_docref(NULL TSRMLS_CC, E_ERROR, "Unable to open %s", filename);
                STR_FREE(SG(request_info).path_translated);     /* for same reason as above */
+               SG(request_info).path_translated = NULL;
                return FAILURE;
        }