]> granicus.if.org Git - php/commitdiff
Fixed bug #21499 (more descriptive message in the event of require/include
authorIlia Alshanetsky <iliaa@php.net>
Wed, 8 Jan 2003 02:44:09 +0000 (02:44 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 8 Jan 2003 02:44:09 +0000 (02:44 +0000)
failure).

main/main.c

index 339480dd9d18b3a981f7777ed6f57b72d152ad36..f6e6396506db38154f676748492d64d8802f45ec 100644 (file)
@@ -752,13 +752,13 @@ static void php_message_handler_for_zend(long message, void *data)
                case ZMSG_FAILED_INCLUDE_FOPEN: {
                                TSRMLS_FETCH();
 
-                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed opening '%s' for inclusion (include_path='%s')", php_strip_url_passwd((char *) data), STR_PRINT(PG(include_path)));
+                               php_error_docref("function.include" TSRMLS_CC, E_WARNING, "Failed opening '%s' for inclusion (include_path='%s')", php_strip_url_passwd((char *) data), STR_PRINT(PG(include_path)));
                        }
                        break;
                case ZMSG_FAILED_REQUIRE_FOPEN: {
                                TSRMLS_FETCH();
 
-                               php_error_docref(NULL TSRMLS_CC, E_COMPILE_ERROR, "Failed opening required '%s' (include_path='%s')", php_strip_url_passwd((char *) data), STR_PRINT(PG(include_path)));
+                               php_error_docref("function.require" TSRMLS_CC, E_COMPILE_ERROR, "Failed opening required '%s' (include_path='%s')", php_strip_url_passwd((char *) data), STR_PRINT(PG(include_path)));
                        }
                        break;
                case ZMSG_FAILED_HIGHLIGHT_FOPEN: {