!40 [sync] PR-39: Fix php 8.0.0 warning about missing arginfo
From: @openeuler-sync-bot Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
63e87d31f9
@ -1,14 +1,14 @@
|
|||||||
From fdeb579ae5c58a5da81c866a83d81e76da3347c1 Mon Sep 17 00:00:00 2001
|
From 4e54db3b1f9560c05bf44ae1c5caf56a610ba878 Mon Sep 17 00:00:00 2001
|
||||||
From: maminjie <maminjie1@huawei.com>
|
From: maminjie <maminjie1@huawei.com>
|
||||||
Date: Tue, 1 Dec 2020 12:00:20 +0800
|
Date: Thu, 4 Feb 2021 09:41:12 +0800
|
||||||
Subject: [PATCH] port to php 8.0.0
|
Subject: [PATCH] port to php 8.0.0
|
||||||
|
|
||||||
---
|
---
|
||||||
generator/php.ml | 8 ++++----
|
generator/php.ml | 17 ++++++++++-------
|
||||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
1 file changed, 10 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
diff --git a/generator/php.ml b/generator/php.ml
|
diff --git a/generator/php.ml b/generator/php.ml
|
||||||
index e07813f..4046aa8 100644
|
index e07813f..b2da116 100644
|
||||||
--- a/generator/php.ml
|
--- a/generator/php.ml
|
||||||
+++ b/generator/php.ml
|
+++ b/generator/php.ml
|
||||||
@@ -96,7 +96,7 @@ static int res_guestfs_h;
|
@@ -96,7 +96,7 @@ static int res_guestfs_h;
|
||||||
@ -29,7 +29,27 @@ index e07813f..4046aa8 100644
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
guestfs_h *g = (guestfs_h *) rsrc->ptr;
|
guestfs_h *g = (guestfs_h *) rsrc->ptr;
|
||||||
@@ -247,7 +247,7 @@ PHP_FUNCTION (guestfs_last_error)
|
@@ -193,13 +193,16 @@ PHP_MINIT_FUNCTION (guestfs_php)
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ZEND_BEGIN_ARG_INFO_EX(arginfo_void, 0, 0, 0)
|
||||||
|
+ZEND_END_ARG_INFO()
|
||||||
|
+
|
||||||
|
static zend_function_entry guestfs_php_functions[] = {
|
||||||
|
- PHP_FE (guestfs_create, NULL)
|
||||||
|
- PHP_FE (guestfs_last_error, NULL)
|
||||||
|
+ PHP_FE (guestfs_create, arginfo_void)
|
||||||
|
+ PHP_FE (guestfs_last_error, arginfo_void)
|
||||||
|
";
|
||||||
|
|
||||||
|
List.iter (
|
||||||
|
- fun { name } -> pr " PHP_FE (guestfs_%s, NULL)\n" name
|
||||||
|
+ fun { name } -> pr " PHP_FE (guestfs_%s, arginfo_void)\n" name
|
||||||
|
) (actions |> external_functions |> sort);
|
||||||
|
|
||||||
|
pr " { NULL, NULL, NULL }
|
||||||
|
@@ -247,7 +250,7 @@ PHP_FUNCTION (guestfs_last_error)
|
||||||
zval *z_g;
|
zval *z_g;
|
||||||
guestfs_h *g;
|
guestfs_h *g;
|
||||||
|
|
||||||
@ -38,7 +58,7 @@ index e07813f..4046aa8 100644
|
|||||||
&z_g) == FAILURE) {
|
&z_g) == FAILURE) {
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
@@ -353,7 +353,7 @@ PHP_FUNCTION (guestfs_last_error)
|
@@ -353,7 +356,7 @@ PHP_FUNCTION (guestfs_last_error)
|
||||||
)
|
)
|
||||||
else param_string in
|
else param_string in
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: libguestfs
|
Name: libguestfs
|
||||||
Version: 1.40.2
|
Version: 1.40.2
|
||||||
Release: 12
|
Release: 13
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: A set of tools for accessing and modifying virtual machine (VM) disk images
|
Summary: A set of tools for accessing and modifying virtual machine (VM) disk images
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
@ -364,6 +364,9 @@ install -m 0644 utils/boot-benchmark/boot-benchmark.1 $RPM_BUILD_ROOT%{_mandir}/
|
|||||||
%exclude %{_mandir}/man1/virt-tar.1*
|
%exclude %{_mandir}/man1/virt-tar.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 01 2021 maminjie <maminjie1@huawei.com> - 1:1.40.2-13
|
||||||
|
- Fix php 8.0.0 warning about missing arginfo
|
||||||
|
|
||||||
* Wed Feb 10 2021 baizhonggui <baizhonggui@huawei.com> - 1:1.40.2-12
|
* Wed Feb 10 2021 baizhonggui <baizhonggui@huawei.com> - 1:1.40.2-12
|
||||||
- Delete python2 subpackage
|
- Delete python2 subpackage
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user