+#if PHP_DEBUG
+void _dpf(int type, const char *data, size_t length)
+{
+ static const char _sym[] = "><><><";
+ if (type) {
+ int nwp = 0;
+ for (fprintf(stderr, "%c ", _sym[type-1]); length--; data++) {
+ int ip = PHP_HTTP_IS_CTYPE(print, *data);
+ if (!ip && *data != '\r' && *data != '\n') nwp = 1;
+ fprintf(stderr, ip?"%c":"\\x%02x", (int) (*data & 0xff));
+ if (!nwp && *data == '\n' && length) {
+ fprintf(stderr, "\n%c ", _sym[type-1]);
+ }
+ }
+ fprintf(stderr, "\n");
+ } else {
+ fprintf(stderr, "# %.*s\n", (int) length, data);
+ }
+}
+#endif
+