1.2.1-1ubuntu2 has two autopkgtest failures with PHP 8.1

Bug #1954707 reported by Bryce Harrington
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-console-commandline (Debian)
Fix Released
Unknown
php-console-commandline (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

php-console-commandline | 1.2.1-1ubuntu2 | jammy-proposed/universe

-------------------------------------------------------------------
FAIL [ 2/53] Test for Console_CommandLine::addArgument() method.[tests/console_commandline_addargument.phpt]

Fatal error: argument name must be a valid php variable name (got: Some invalid name) in /home/bryce/pkg/Php8.1/Transition/Fixes/php-console-commandline/php-console-commandline-1.2.1/Console_CommandLine-1.2.1/Console/CommandLine.php on line 855

Call Stack:
    0.0001 477512 1. {main}() /home/bryce/pkg/Php8.1/Transition/Fixes/php-console-commandline/php-console-commandline-1.2.1/Console_CommandLine-1.2.1/tests/console_commandline_addargument.php:0
    0.0020 780592 2. Console_CommandLine->addArgument($name = 'Some invalid name', $params = ???) /home/bryce/pkg/Php8.1/Transition/Fixes/php-console-commandline/php-console-commandline-1.2.1/Console_CommandLine-1.2.1/tests/console_commandline_addargument.php:21
    0.0020 780784 3. Console_CommandLine_Argument->validate() /home/bryce/pkg/Php8.1/Transition/Fixes/php-console-commandline/php-console-commandline-1.2.1/Console_CommandLine-1.2.1/Console/CommandLine.php:497
    0.0020 781160 4. Console_CommandLine::triggerError($msgId = 'argument_bad_name', $level = 256, $params = ['{$name}' => 'Some invalid name']) /home/bryce/pkg/Php8.1/Transition/Fixes/php-console-commandline/php-console-commandline-1.2.1/Console_CommandLine-1.2.1/Console/CommandLine/Argument.php:89
    0.0020 781304 5. trigger_error($message = 'argument name must be a valid php variable name (got: Some invalid name)', $error_level = 256) /home/bryce/pkg/Php8.1/Transition/Fixes/php-console-commandline/php-console-commandline-1.2.1/Console_CommandLine-1.2.1/Console/CommandLine.php:855
---- FAILED

----------------------------------------------------
FAIL [ 7/53] Test for Console_CommandLine::addOption() method.[tests/console_commandline_addoption.phpt]

Not sure what exactly failed on this test. The output formatting when I run this locally differs from the expected so hard to compare.

Bryce Harrington (bryce)
tags: added: update-excuse
Bryce Harrington (bryce)
description: updated
Changed in php-console-commandline (Debian):
status: Unknown → New
Bryce Harrington (bryce)
summary: - 1.2.1-1ubuntu2 has two autopkgtest failures
+ 1.2.1-1ubuntu2 has two autopkgtest failures with PHP 8.1
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package php-console-commandline - 1.2.1-1ubuntu4

---------------
php-console-commandline (1.2.1-1ubuntu4) jammy; urgency=medium

  * d/p/disable-broken-tests-for-php8.1.patch: Also skip addoption test.

 -- Bryce Harrington <email address hidden> Fri, 07 Jan 2022 10:22:17 +0000

Changed in php-console-commandline (Ubuntu):
status: New → Fix Released
Changed in php-console-commandline (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.