components/graphviz/patches/php.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Fri, 13 May 2016 17:33:30 -0700
changeset 5983 f10ab5ae99d7
parent 4949 bd993b5f1799
permissions -rw-r--r--
Close of build 99.3.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4949
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     1
# graphviz not compiling with php 5.6.
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     2
# Found this patch.  Seems to do the trick for both php 5.3 (32-bit)
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     3
# and 5.6 (64-bit).
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     4
# http://www.linuxquestions.org/questions/slackware-14/graphviz-and-current-948363/
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     5
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     6
--- graphviz-2.28.0/tclpkg/gv/gv_php_init.c_orig	2015-10-12 11:47:24.351781429 -0700
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     7
+++ graphviz-2.28.0/tclpkg/gv/gv_php_init.c	2015-10-12 11:47:53.491500047 -0700
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     8
@@ -19,11 +19,13 @@
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
     9
 
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    10
 static size_t gv_string_writer (GVJ_t *job, const char *s, size_t len)
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    11
 {
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    12
+    TSRMLS_FETCH();
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    13
     return PHPWRITE(s, len);
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    14
 }
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    15
 
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    16
 static size_t gv_channel_writer (GVJ_t *job, const char *s, size_t len)
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    17
 {
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    18
+    TSRMLS_FETCH();
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    19
     return PHPWRITE(s, len);
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    20
 }
bd993b5f1799 22031313 graphviz should use php 5.6 and stop using 5.3
Craig Mohrman <craig.mohrman@oracle.com>
parents:
diff changeset
    21