cvs: php4 /main main.c
| From: | Ilia Alshanetsky | Date: | Wed, 08 Jan 2003 02:44:09 +0000 |
| Subject: | cvs: php4 /main main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17735@lists.php.net to get a copy of this message | ||
iliaa Tue Jan 7 21:44:09 2003 EDT
Modified files:
/php4/main main.c
Log:
Fixed bug #21499 (more descriptive message in the event of require/include
failure).
Index: php4/main/main.c
diff -u php4/main/main.c:1.522 php4/main/main.c:1.523
--- php4/main/main.c:1.522 Sun Jan 5 11:11:10 2003
+++ php4/main/main.c Tue Jan 7 21:44:09 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.522 2003/01/05 16:11:10 zeev Exp $ */
+/* $Id: main.c,v 1.523 2003/01/08 02:44:09 iliaa Exp $ */
/* {{{ includes
*/
@@ -752,13 +752,13 @@
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: {