- return bool success indicator instead of void so that "func() or die()" idiom works
- Support language specific write() functions.
- Use PHPWRITE() for buffered output when PHP used from Apache
--- /dev/null
+#include <gvc.h>
+
+void gv_binding_init ( GVC_t *gvc) {}
--- /dev/null
+#include <php.h>
+#include <gvc.h>
+#include <gvplugin.h>
+#include <gvcjob.h>
+#include <gvcint.h>
+
+static size_t gv_php_writer (const char *s, int len)
+{
+ return PHPWRITE(s, len);
+}
+
+void gv_binding_init ( GVC_t *gvc)
+{
+ gvc->write_fn = gv_php_writer;
+}