File php7-systemd-0.1.2-fix-php7-build.patch of Package php7-systemd

From: Matthias Fehring <buschmann23@opensuse.org>
Date: 2018-09-13 09:52:00 +0200
Subject: Fixes build for PHP7
Upstream: merged

Fixes build for PHP7

---
 systemd.c |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

--- a/systemd.c	2014-03-07 21:05:05.000000000 +0100
+++ b/systemd.c	2018-09-13 10:06:39.816743367 +0200
@@ -30,14 +30,14 @@
 PHP_FUNCTION(sd_journal_send)
 {
     struct iovec *iov = NULL;
-    zval ***args;
+    zval *args;
     int argc, len, i;
     char *val;
-    
-    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "+", &args, &argc) != SUCCESS) {
+
+    if (zend_parse_parameters(ZEND_NUM_ARGS(), "+", &args, &argc) != SUCCESS) {
         return;
     }
-    
+
     // Allocate sufficient iovector space for the arguments.
     iov = safe_emalloc(argc, sizeof(struct iovec), 0);
     if (!iov) {
@@ -46,10 +46,10 @@
     }
 
     // Iterate through the PHP arguments and fill the iovector.
-    for (i = 0; i < ZEND_NUM_ARGS() TSRMLS_CC; ++i) {
-        convert_to_string_ex(args[i]);
-        val = Z_STRVAL_PP(args[i]);
-        len = Z_STRLEN_PP(args[i]);
+    for (i = 0; i < argc; ++i) {
+        convert_to_string_ex(&args[i]);
+        val = Z_STRVAL(args[i]);
+        len = Z_STRLEN(args[i]);
         iov[i].iov_base = val;
         iov[i].iov_len = len;
     }
@@ -60,6 +60,6 @@
     // Free the iovector. The actual strings
     // are already managed by PHP.
     efree(iov);
-    
+
     RETURN_TRUE;
 }