[pkg-php-pear] Bug#1082448: php-fdomdocument: FTBFS with php8.4_8.4.0~beta4-1: [exec] PHP Fatal error: Cannot make static method DOMXPath::quote() non static in class TheSeer\fDOM\fDOMXPath in /<<PKGBUILDDIR>>/src/fDOMXPath.php on line 153

Athos Ribeiro athoscribeiro at gmail.com
Sat Sep 21 03:15:42 BST 2024


Source: php-fdomdocument
Version: 1.6.7-2
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: php8.4

Hi,

During a test rebuild, php-fdomdocument was found to fail to build with
php8.4 8.4.0~beta4-1 available in experimental.

There are intentions to transition to php8.4 for trixie, please see #1074180.

To reproduce this locally, you need to install php8.4 and php-defaults from
experimental on an unstable system or build chroot.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> ant test
> Buildfile: /<<PKGBUILDDIR>>/build.xml
> 
> parallelTasks:
> 
> phpcpd:
> 
> pdepend:
>      [exec] phpcpd 6.0.3 by Sebastian Bergmann.
>      [exec] 
>      [exec] No clones found.
>      [exec] 
>      [exec] Time: 00:00.007, Memory: 2.00 MB
> 
> phpcs:
>      [exec] PDepend 2.16.2
>      [exec] 
>      [exec] Parsing source files:
>      [exec] ...............                                                 15
>      [exec] 
>      [exec] Calculating Dependency metrics:
>      [exec] ......                                                         122
>      [exec] 
>      [exec] Calculating Coupling metrics:
>      [exec] .......                                                        149
>      [exec] 
>      [exec] Calculating Cyclomatic Complexity metrics:
>      [exec] .......                                                        146
>      [exec] 
>      [exec] Calculating Inheritance metrics:
>      [exec]                                                                 19
>      [exec] 
>      [exec] Calculating Node Count metrics:
>      [exec] ......                                                         122
>      [exec] 
>      [exec] Calculating Node Loc metrics:
>      [exec] ......                                                         136
>      [exec] 
>      [exec] Generating pdepend log files, this may take a moment.
>      [exec] 
>      [exec] Time: 0:00:00; Memory: 18.00Mb
> 
> phpmd:
> 
> phploc:
>      [exec] phploc 7.0.2 by Sebastian Bergmann.
>      [exec] 
>      [exec] Directories                                          1
>      [exec] Files                                               15
>      [exec] 
>      [exec] Size
>      [exec]   Lines of Code (LOC)                             2377
>      [exec]   Comment Lines of Code (CLOC)                    1339 (56.33%)
>      [exec]   Non-Comment Lines of Code (NCLOC)               1038 (43.67%)
>      [exec]   Logical Lines of Code (LLOC)                     284 (11.95%)
>      [exec]     Classes                                        279 (98.24%)
>      [exec]       Average Class Length                          19
>      [exec]         Minimum Class Length                         0
>      [exec]         Maximum Class Length                       107
>      [exec]       Average Method Length                          2
>      [exec]         Minimum Method Length                        0
>      [exec]         Maximum Method Length                       17
>      [exec]       Average Methods Per Class                      7
>      [exec]         Minimum Methods Per Class                    0
>      [exec]         Maximum Methods Per Class                   29
>      [exec]     Functions                                        5 (1.76%)
>      [exec]       Average Function Length                        5
>      [exec]     Not in classes or functions                      0 (0.00%)
>      [exec] 
>      [exec] Cyclomatic Complexity
>      [exec]   Average Complexity per LLOC                     0.39
>      [exec]   Average Complexity per Class                    8.79
>      [exec]     Minimum Class Complexity                      1.00
>      [exec]     Maximum Class Complexity                     55.00
>      [exec]   Average Complexity per Method                   2.04
>      [exec]     Minimum Method Complexity                     1.00
>      [exec]     Maximum Method Complexity                     8.00
>      [exec] 
>      [exec] Dependencies
>      [exec]   Global Accesses                                    0
>      [exec]     Global Constants                                 0 (0.00%)
>      [exec]     Global Variables                                 0 (0.00%)
>      [exec]     Super-Global Variables                           0 (0.00%)
>      [exec]   Attribute Accesses                               124
>      [exec]     Non-Static                                     123 (99.19%)
>      [exec]     Static                                           1 (0.81%)
>      [exec]   Method Calls                                     146
>      [exec]     Non-Static                                     120 (82.19%)
>      [exec]     Static                                          26 (17.81%)
>      [exec] 
>      [exec] Structure
>      [exec]   Namespaces                                         2
>      [exec]   Interfaces                                         1
>      [exec]   Traits                                             0
>      [exec]   Classes                                           13
>      [exec]     Abstract Classes                                 0 (0.00%)
>      [exec]     Concrete Classes                                13 (100.00%)
>      [exec]       Final Classes                                  0 (0.00%)
>      [exec]       Non-Final Classes                             13 (100.00%)
>      [exec]   Methods                                          106
>      [exec]     Scope
>      [exec]       Non-Static Methods                           106 (100.00%)
>      [exec]       Static Methods                                 0 (0.00%)
>      [exec]     Visibility
>      [exec]       Public Methods                                97 (91.51%)
>      [exec]       Protected Methods                              0 (0.00%)
>      [exec]       Private Methods                                9 (8.49%)
>      [exec]   Functions                                          1
>      [exec]     Named Functions                                  0 (0.00%)
>      [exec]     Anonymous Functions                              1 (100.00%)
>      [exec]   Constants                                         10
>      [exec]     Global Constants                                 0 (0.00%)
>      [exec]     Class Constants                                 10 (100.00%)
>      [exec]       Public Constants                              10 (100.00%)
>      [exec]       Non-Public Constants                           0 (0.00%)
>      [exec] Result: 2
> 
> phpunit:
>      [exec] PHPUnit 9.6.20 by Sebastian Bergmann and contributors.
>      [exec] 
>      [exec] Runtime:       PHP 8.4.0beta4
>      [exec] Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
>      [exec] Warning:       No code coverage driver available
>      [exec] Warning:       Your XML configuration validates against a deprecated schema.
>      [exec] Suggestion:    Migrate your XML configuration using "--migrate-configuration"!
>      [exec] 
>      [exec] PHP Fatal error:  Cannot make static method DOMXPath::quote() non static in class TheSeer\fDOM\fDOMXPath in /<<PKGBUILDDIR>>/src/fDOMXPath.php on line 153
>      [exec] ..........................................
> 
> BUILD FAILED
> /<<PKGBUILDDIR>>/build.xml:30: exec returned: 255
> 
> Total time: 1 second
> make[1]: *** [debian/rules:6: override_dh_auto_test] Error 1


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/php8.4-beta/2/php-fdomdocument/php-fdomdocument_1.6.7-2+rebuild1726680327_amd64-2024-09-18T17:25:28Z.build



More information about the pkg-php-pear mailing list