Bug 1935753 - "Warning: Missing arginfo" - libguestfs needs porting for PHP 8
Summary: "Warning: Missing arginfo" - libguestfs needs porting for PHP 8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libguestfs
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-05 13:41 UTC by Richard W.M. Jones
Modified: 2022-06-16 08:13 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-16 08:13:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2021-03-05 13:41:24 UTC
Description of problem:

With PHP 8, "arginfo" is now mandatory:

$ php -n -d extension=./php/extension/.libs/guestfs_php.so

Warning: Missing arginfo for guestfs_create() in Unknown on line 0

Warning: Missing arginfo for guestfs_last_error() in Unknown on line 0

Warning: Missing arginfo for guestfs_acl_delete_def_file() in Unknown on line 0

Warning: Missing arginfo for guestfs_acl_get_file() in Unknown on line 0
...

Version-Release number of selected component (if applicable):

php-8.0.3-1.fc35.x86_64

How reproducible:

100%

Steps to Reproduce:
1. See above.

Additional info:

This is a bunch of extra work.  See:

https://www.seidengroup.com/2020/12/07/porting-extensions-to-php-8/

Comment 1 Laszlo Ersek 2022-02-15 13:56:26 UTC
[Libguestfs] libguestfs "test-mdadm.sh" and php tests failing?
https://listman.redhat.com/archives/libguestfs/2022-February/msg00205.html

Comment 2 Neal Gompa 2022-06-16 00:55:40 UTC
This has now been fixed upstream: https://github.com/libguestfs/libguestfs/commit/ec27979398b0871c1a3e0e244849f8435c9c9a8d

Could we see the php bindings shipped in Fedora and RHEL now?

Comment 3 Richard W.M. Jones 2022-06-16 07:42:05 UTC
I'll enable them in Rawhide.

As for RHEL I don't think we have ever enabled PHP bindings.  They are disabled
explicitly in RHEL 7 & 8, and in RHEL 9 they didn't work because of this
issue.  Who would use them?

Comment 4 Richard W.M. Jones 2022-06-16 07:52:47 UTC
https://koji.fedoraproject.org/koji/taskinfo?taskID=88322237


Note You need to log in before you can comment on or make changes to this bug.