[pkg-php-pear] Bug#1082444: php-di: FTBFS with php8.4_8.4.0~beta4-1: ParseError: syntax error, unexpected token "\", expecting "; "

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


Source: php-di
Version: 7.0.7-1
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-di 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>>'
> # keep in sync with debian/tests/phpunit
> phpunit --no-coverage --bootstrap tests/autoload.php
> PHPUnit 9.6.20 by Sebastian Bergmann and contributors.
> 
> Warning:       Your XML configuration validates against a deprecated schema.
> Suggestion:    Migrate your XML configuration using "--migrate-configuration"!
> 
> ..........SS.S.....S...........................................  63 / 665 (  9%)
> ....................SS....................SS.SSSSSSSSSSSSSSSSSS 126 / 665 ( 18%)
> SSSSSSSSSSSSSSSSSSSSSSSSSSS.................................... 189 / 665 ( 28%)
> ..........SSSSS.....SSSSS..SS...........................SSS.... 252 / 665 ( 37%)
> ............................................................... 315 / 665 ( 47%)
> ........................E...................................... 378 / 665 ( 56%)
> ............................................................... 441 / 665 ( 66%)
> ............................................................... 504 / 665 ( 75%)
> .................................................E............S 567 / 665 ( 85%)
> ............................................................... 630 / 665 ( 94%)
> ...................................                             665 / 665 (100%)
> 
> Time: 00:00.207, Memory: 18.00 MB
> 
> There were 2 errors:
> 
> 1) DI\Test\IntegrationTest\ContainerMakeTest::testFactoryFunctionForwardsPassedParameters with data set "compiled" (DI\ContainerBuilder Object (...))
> ParseError: syntax error, unexpected token "\", expecting "class"
> 
> /<<PKGBUILDDIR>>/tests/IntegrationTest/ContainerMakeTest.php:177
> 
> 2) DI\Test\IntegrationTest\Definitions\FactoryDefinitionTest::test_closure_containing_class_name_not_fully_qualified with data set "compiled" (DI\ContainerBuilder Object (...))
> ParseError: syntax error, unexpected token "\", expecting ";"
> 
> /<<PKGBUILDDIR>>/tests/IntegrationTest/Definitions/FactoryDefinitionTest.php:465
> 
> ERRORS!
> Tests: 665, Assertions: 1330, Errors: 2, Skipped: 69.
> make[1]: *** [debian/rules:21: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/php8.4-beta/2/php-di/php-di_7.0.7-1+rebuild1726671195_amd64-2024-09-18T14:53:16Z.build



More information about the pkg-php-pear mailing list