summarylogtreecommitdiffstats
path: root/0006-Provide-arginfo.patch
blob: de26e438e78ad2d93f9808913b0d0f2716d3f1aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= <bjorn.bidar@thaodan.de>
Date: Fri, 15 Apr 2022 16:27:19 +0300
Subject: [PATCH] Provide arginfo

---
 systemd.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/systemd.c b/systemd.c
index 1eaf98b..a8b7ea4 100644
--- a/systemd.c
+++ b/systemd.c
@@ -5,8 +5,13 @@
 #include "php_systemd.h"
 #include <systemd/sd-journal.h>
 
+ZEND_BEGIN_ARG_INFO_EX(arginfo_sd_journal_send, 0, 0, 3)
+ZEND_ARG_TYPE_INFO(0, tags, IS_STRING, 0)
+ZEND_ARG_VARIADIC_INFO(0, 3)
+ZEND_END_ARG_INFO()
+
 zend_function_entry systemd_functions[] = {
-    PHP_FE(sd_journal_send, NULL)
+    PHP_FE(sd_journal_send, arginfo_sd_journal_send)
     {NULL, NULL, NULL} // Sentinel
 };