diff options
| author | Zeev Suraski <zeev@php.net> | 1999-06-11 11:59:35 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-06-11 11:59:35 +0000 |
| commit | 4b062fdfecf6f46ba920ed9b669d202dc2a473ac (patch) | |
| tree | 5bfae44a5196aeb98644796c637017a394564240 /main | |
| parent | 963a0044818cb60b535e2e1f6ac46a46b9d19fb7 (diff) | |
| download | php-git-4b062fdfecf6f46ba920ed9b669d202dc2a473ac.tar.gz | |
Print out include_path in include/require failures
Diffstat (limited to 'main')
| -rw-r--r-- | main/main.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/main/main.c b/main/main.c index 8f3e41ae7f..d7aa597033 100644 --- a/main/main.c +++ b/main/main.c @@ -560,11 +560,17 @@ static void php_message_handler_for_zend(long message, void *data) PG(track_vars) = 1; } break; - case ZMSG_FAILED_INCLUDE_FOPEN: - php3_error(E_WARNING, "Failed opening '%s' for inclusion", php3_strip_url_passwd((char *) data)); + case ZMSG_FAILED_INCLUDE_FOPEN: { + PLS_FETCH(); + + php3_error(E_WARNING, "Failed opening '%s' for inclusion (include_path='%s')", php3_strip_url_passwd((char *) data), PG(include_path)); + } break; - case ZMSG_FAILED_REQUIRE_FOPEN: - php3_error(E_COMPILE_ERROR, "Failed opening required '%s'", php3_strip_url_passwd((char *) data)); + case ZMSG_FAILED_REQUIRE_FOPEN: { + PLS_FETCH(); + + php3_error(E_COMPILE_ERROR, "Failed opening required '%s' (include_path='%s')", php3_strip_url_passwd((char *) data), PG(include_path)); + } break; case ZMSG_FAILED_HIGHLIGHT_FOPEN: php3_error(E_WARNING, "Failed opening '%s' for highlighting", php3_strip_url_passwd((char *) data)); |
