# [PATCH] fix for apache1 syntax highlighter

- Thread: https://externals.io/message/1611
- Original archive: https://news-web.php.net/php.internals/1611
- Started by Moriyoshi Koizumi on 2003-05-16T20:08:31+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #1611 — Moriyoshi Koizumi — 2003-05-16T20:08:31+00:00

URL: https://externals.io/message/1611#1611

Hi,

Attached is the patch for apache1 SAPI which fixes the issue that
the syntax highter doesn't work with output buffering enabled.

The patch simply tries to call php_request_shutdown() even under 
display_source_mode because php_request_startup() is called anytime in 
prior to the `highlight_file()` call.

If there are no objections, I'll commit this patch shortly.

Regards,

Moriyoshi

---

## #1612 — Moriyoshi Koizumi — 2003-05-16T20:10:44+00:00

URL: https://externals.io/message/1611#1612 · In reply to: #1611

oops, wrong patch.
Here's the correct one.

Moriyoshi


Moriyoshi Koizumi <moriyoshi@at.wakwak.com> wrote:

> Hi,
> 
> Attached is the patch for apache1 SAPI which fixes the issue that
> the syntax highter doesn't work with output buffering enabled.
> 
> The patch simply tries to call php_request_shutdown() even under 
> display_source_mode because php_request_startup() is called anytime in 
> prior to the `highlight_file()` call.
> 
> If there are no objections, I'll commit this patch shortly.
> 
> Regards,
> 
> Moriyoshi
