slackbuilds_ponce/graphics/graphviz/php_5.4_compat.patch
ponce 0cfa1744b8 graphics/graphviz: Added a fix for php-5.4.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2012-08-21 08:55:30 -05:00

17 lines
546 B
Diff

diff -Naur graphviz-2.28.0.orig/tclpkg/gv/gv_php_init.c graphviz-2.28.0/tclpkg/gv/gv_php_init.c
--- graphviz-2.28.0.orig/tclpkg/gv/gv_php_init.c 2011-01-25 17:30:51.000000000 +0100
+++ graphviz-2.28.0/tclpkg/gv/gv_php_init.c 2012-05-30 04:10:40.657221055 +0200
@@ -19,11 +19,13 @@
static size_t gv_string_writer (GVJ_t *job, const char *s, size_t len)
{
+ TSRMLS_FETCH();
return PHPWRITE(s, len);
}
static size_t gv_channel_writer (GVJ_t *job, const char *s, size_t len)
{
+ TSRMLS_FETCH();
return PHPWRITE(s, len);
}