[pkg-php-pear] Bug#762095: phpunit-mock-object: Please add support for PHP 5.6.0
Daniel Beyer
dabe at deb.ymc.ch
Thu Sep 18 12:12:41 UTC 2014
Package: phpunit-mock-object
Version: 1.2.3-1
Severity: important
Tags: patch
Hi,
PHP 5.6.0 closes PHP bug #67072 [1], which breaks compatibility of PHP
with phpunit-mock-object 1.2.3 in Debian. This results in errors like:
<code>
PHP Warning: Erroneous data format for unserializing 'Mock_TokenInterface_b42316e5' in /usr/share/php/PHPUnit/Framework/MockObject/Generator.php on line 247
PHP Notice: unserialize(): Error at offset 39 of 40 bytes in /usr/share/php/PHPUnit/Framework/MockObject/Generator.php on line 247
PHP Fatal error: Call to a member function expects() on boolean in /tmp/symfony/src/Symfony/Component/Security/Tests/Acl/Domain/UserSecurityIdentityTest.php on line 57
</code>
For another example take a look at Debian BTS #759235 [2].
Since PHP 5.6.0 is in sid and phpunit-mock-object is not working reliably
with it, I'm setting the severity of this bug to important.
The patch attached is taken from upstream's VCS [3] and no longer needed
with PHPUnit_MockObject v2.1.5 and up [4].
It can be applied to a local clone of pkg-php/phpunit-mock-object.git
(branch 'debian-sid') with '# git am', e.g.:
# cd /PATH/TO/PHPUNIT-MOCK-OBJECT-REPO
# git am /PATH/TO/PHP-5.6.0-support.patch
Thanks
Daniel
[1] http://bugs.php.net/67072
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759235#5
[3] https://github.com/sebastianbergmann/phpunit-mock-objects/commit/1c68f1338f1940deb8265428bb2a7cbc5bc074b5
[4] https://github.com/sebastianbergmann/phpunit-mock-objects/issues/171
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PHP-5.6.0-support.patch
Type: text/x-patch
Size: 3543 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-pear/attachments/20140918/e40777c6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-pear/attachments/20140918/e40777c6/attachment.sig>
More information about the pkg-php-pear
mailing list