PHP :: Bug #67865 :: internal corruption phar error
| Bug #67865 | internal corruption phar error | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2014-08-19 13:41 UTC | Modified: | 2014-08-21 06:58 UTC |
|
||||||||||
| From: | pear at laurent-laville dot org | Assigned: | mike (profile) | |||||||||||
| Status: | Closed | Package: | PHAR related | |||||||||||
| PHP Version: | 5.6.0RC4 | OS: | Windows | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2014-08-19 13:41 UTC] pear at laurent-laville dot org
Description: ------------ I got recently lot of internal corruption error with phar distribution of many packages. First I think it come from each libraries/packages, before to realize that I got the same error on latest unstable versions PHP 5.6.0RC4, PHP 5.5.16RC1, and PHP 5.4.32RC1 I have no error with others stable PHP versions like 5.4.31, 5.5.15, 5.3.29 I gave you the well know phing project, but I got the same error with others project and their phar versions on the same PHP RC platforms ! PS: there is an old issue entry at https://bugs.php.net/bug.php?id=53872 that seems to reference the same problem !!! Test script: --------------- Try to use for example the phing phar version 2.8.2 available on official site : http://www.phing.info/get/phing-2.8.2.phar And run the command : php phing-2.8.2.phar -f /path/to/build/build.xml where /path/to/build/build.xml identify the build file of phing distribution https://github.com/phingofficial/phing/blob/master/build/build.xml Expected result: ---------------- Buildfile: d:\github.com\phingofficial\phing\phing-2.8.2\build\build.xml [php] Calling PHP function: dirname() [php] Calling PHP function: realpath() phing > versioncheck: [echo] ===================================================== [echo] Version not specified. You must enter a version. In [echo] the future you can add this to build.properties or [echo] enter it on the command line: [echo] [echo] -Dversion=2.0.0b1 [echo] ===================================================== Phing version for package: <AND LOT MORE> Actual result: -------------- Buildfile: d:\github.com\phingofficial\phing\phing-2.8.2\build\build.xml [PHP Error] include_once(phar://C:/UwAmp/bin/php/phing-2.8.2.phar/bin/../classes/phing\tasks\ext\PatchTask.php): failed to open stream: phar error: internal corruption of phar "C:/UwAmp/bin/php/phing-2.8.2.phar" (actual filesize mismatch on file "classes/phing/tasks/ext/PatchTask.php") [line 1093 of phar://C:/UwAmp/bin/php/phing-2.8.2.phar/classes/phing/Phing.php]
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2014-08-19 17:07 UTC] jpauli@php.net
This is my output, with 5.6.0RC4 : Buildfile: /tmp/build.xml [PHP Error] include_once(phar:///home/julien/Downloads/phing-2.8.2.phar/bin/../classes/phing/tasks/ext/PatchTask.php): failed to open stream: phar error: internal corruption of phar "/home/julien/Downloads/phing-2.8.2.phar" (actual filesize mismatch on file "classes/phing/tasks/ext/PatchTask.php") [line 1093 of phar:///home/julien/Downloads/phing-2.8.2.phar/classes/phing/Phing.php] [PHP Error] include_once(): Failed opening 'phing/tasks/ext/PatchTask.php' for inclusion (include_path='phar:///home/julien/Downloads/phing-2.8.2.phar/bin/../classes:.:/usr/local/lib/php') [line 1093 of phar:///home/julien/Downloads/phing-2.8.2.phar/classes/phing/Phing.php] BUILD FAILED exception 'ConfigurationException' with message 'Error importing phing/tasks/ext/PatchTask.php' in phar:///home/julien/Downloads/phing-2.8.2.phar/classes/phing/Phing.php:1101 Stack trace: #0 phar:///home/julien/Downloads/phing-2.8.2.phar/classes/phing/Phing.php(1051): Phing::__import('phing/tasks/ext...', NULL) #1 phar:///home/julien/Downloads/phing-2.8.2.phar/classes/phing/Project.php(569): Phing::import('phing.tasks.ext...', NULL) #2 phar:///home/julien/Downloads/phing-2.8.2.phar/classes/phing/Project.php(155): Project->addTaskDefinition('patch', 'phing.tasks.ext...') #3 phar:///home/julien/Downloads/phing-2.8.2.phar/classes/phing/Phing.php(541): Project->init() #4 phar:///home/julien/Downloads/phing-2.8.2.phar/classes/phing/Phing.php(170): Phing->runBuild() #5 phar:///home/julien/Downloads/phing-2.8.2.phar/classes/phing/Phing.php(278): Phing::start(Array, NULL) #6 phar:///home/julien/Downloads/phing-2.8.2.phar/bin/phing.php(43): Phing::fire(Array) #7 /home/julien/Downloads/phing-2.8.2.phar(11): include('phar:///home/ju...') #8 {main} Total time: 0.0847 seconds Error importing phing/tasks/ext/PatchTask.php[2014-08-20 12:21 UTC] jpauli@php.net
[2014-08-20 15:24 UTC] tyrael@php.net
[2014-08-20 15:33 UTC] tyrael@php.net
[2014-08-20 16:49 UTC] mike@php.net
[2014-08-21 06:58 UTC] pear at laurent-laville dot org
[2014-08-21 10:26 UTC] neweracracker at gmail dot com
[2014-08-21 11:10 UTC] neweracracker at gmail dot com
[2014-08-21 20:46 UTC] mike@php.net
-Status: Assigned +Status: Closed
[2014-08-25 16:15 UTC] jpauli@php.net