- if (mode & PHP_OUTPUT_HANDLER_START) {
- if (HTTP_G(etag).started) {
- http_error(HE_WARNING, HTTP_E_RUNTIME, "ob_etaghandler can only be used once");
- return;
+ /* passthru */
+ *handled_output_len = output_len;
+ *handled_output = estrndup(output, output_len);
+
+ /* are we supposed to run? */
+ if (HTTP_G(etag).started) {
+ /* initialize the etag context */
+ if (mode & PHP_OUTPUT_HANDLER_START) {
+ HTTP_G(etag).ctx = http_etag_init();