Bug 2242372

Summary: swig FTBFS swig-4.1.1/Examples/test-suite/php/director_finalizer_runme.php:20: Calling get_parent_class() without arguments is deprecated
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: swigAssignee: Jitka Plesnikova <jplesnik>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: besser82, jplesnik, vonsch
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://koji.fedoraproject.org/koji/taskinfo?taskID=107098832
Whiteboard:
Fixed In Version: swig-4.1.1-11.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-24 06:40:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2023-10-05 18:13:53 UTC
swig fails to build from source as you can see in this log:

https://koji.fedoraproject.org/koji/taskinfo?taskID=107098973

checking php testcase director_conversion_operators
checking php testcase director_default (with run test)
checking php testcase director_detect (with run test)
checking php testcase director_enum (with run test)
checking php testcase director_exception (with run test)
checking php testcase director_exception_catches (with run test)
checking php testcase director_exception_nothrow (with run test)
checking php testcase director_extend (with run test)
checking php testcase director_finalizer (with run test)
/builddir/build/BUILD/swig-4.1.1/Examples/test-suite/php/director_finalizer_runme.php:20: Calling get_parent_class() without arguments is deprecated
make[2]: *** [../../../Examples/Makefile:1216: php_run] Error 1
make[1]: *** [Makefile:53: director_finalizer.cpptest] Error 2

Reproducible: Always

Steps to Reproduce:
1. Build swig in Koji

Actual Results:  
Fails to build

Expected Results:  
Should have built

See the Koji logs etc here:
https://koji.fedoraproject.org/koji/taskinfo?taskID=107098832

Note this only happened for me on s390x, but I'm unclear if that's
down to the bug or randomness.

Comment 1 Richard W.M. Jones 2023-10-05 19:21:09 UTC
Actually seems to happen on x86-64 too:
https://koji.fedoraproject.org/koji/taskinfo?taskID=107098969

Comment 2 Jitka Plesnikova 2023-10-10 11:31:24 UTC
The test is failing due to change [1] in PHP 8.3

[1] https://php.watch/versions/8.3/get_class-get_parent_class-parameterless-deprecated