[pkg-php-pear] Bug#951258: 951258: patch

merkys at debian.org merkys at debian.org
Sun Feb 16 08:37:31 GMT 2020


Control: severity -1 important
Control: tags -1 + patch
Control: affects -1 php-text-password php-text-captcha

Dear Maintainers,

I am raising the severity of this bug, as it blocks other packages from
migrating to testing by failing their autopkgtests.

Nevertheless, the issue seems to be easy to fix, for example by adding
the following patch (tested with phpunit v8.5.2):

--- a/src/TextUI/TestRunner.php
+++ b/src/TextUI/TestRunner.php
@@ -157,7 +157,7 @@
                 if (isset($arguments['configuration']) &&
$arguments['configuration'] instanceof Configuration) {
                     $cacheLocation =
$arguments['configuration']->getFilename();
                 } else {
-                    $cacheLocation = $_SERVER['PHP_SELF'];
+                    $cacheLocation = \getcwd() . \DIRECTORY_SEPARATOR .
'cache'; /* get around \dirname(...) */
                 }
 
                 $arguments['cacheResultFile'] = null;

Should the maintainers deem storing the cache results in the current
working directory agreeable, the solution could be applied to v9.0.0 also.

Best wishes,
Andrius

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-php-pear/attachments/20200216/1a7a4ea1/attachment.sig>


More information about the pkg-php-pear mailing list