From: Shane Caraveo Date: Sun, 1 Dec 2002 21:28:27 +0000 (+0000) Subject: php_error_docref aborts cgi. This broke using php as cgi under X-Git-Tag: RELEASE_1_0b3~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=529762a21aca6afe44f42550d2f4d134b61ece60;p=php php_error_docref aborts cgi. This broke using php as cgi under apache/mod_cgi with the cgi-script directive and bang lines in php scripts. removing it allows this to work again. --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 72fb8a7339..117fe3373c 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -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; }