New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phar is modified on a run #3582
Comments
Copied from #3562. The phar works fine the first time it’s run but gets corrupted. I can reproduce the problem now.
Other phar files on the image do not get corrupted. |
I'm trying to reproduce this issue with the steps you provide... but it does download php 3.3.1 for me? Do I need to update something before phive will pull the correct version? |
Strange. As you see on my screenshot it downloaded 3.4.1 for me. Have you tried @dharmann's steps instead? #3562 (comment) This should definitely download v3.4.1:
The same issue persists. |
ok, I got a way to reproduce this, it seems to be related to the php setting
Neverless it should not be modified after execution. I will continue the research on this. |
Confirmed |
Hm... this is gonna be a though search... I cannot extract the corrupted phar, So I have no clue on what has been changed |
Sorry, maybe I don't really understand your sentence, because a phar can be extract simply using |
Ah I was not aware of the existence of phar, I do always use php for this |
In a Debian like Linux distro you can find it in |
Can you confirm this phar keeps working? It's not zipped like the released phar. It's a zip file because github does not allow me to upload phar files in issues. |
It worked like a charm! Every time (three) that I ran it! |
The only difference between this phar, and another one I created on the same code base version was the Boxphp setting compression, in the release this was set to GZ. to compress the release and make it a smaller download. The version you tested was not compressed. |
This seems to be the cause of the issue, I will try to do a new release soon, but I have to wrap things up. As I made some significant changes since the last release. |
Good job! Thank you very much! |
I am getting the same issue by downloading it from the web with v3.4.0 and v3.4.1 |
I just released v3.4.2, this should fix this issue. Please let me know when you face any issues with the new release. |
Sadly I got the exactly same error:
Here the checksum of the phar before and after it's usage:
|
The latest version works for me 👍 |
@dharmann can you provide the values of the |
For sure! I'm using PHP 8.1.2 and following is the "phar part" of phpinfo() output on CLI:
Is it enough? |
I've updated to 3.4.3 and the problem seems to persist. ;-( |
I'm sharing in attachment the content of the phar BEFORE and AFTER the first run. Due to a limitation of github, I can't attach the whole zipped file (27MB), but a link to download it Please, let me know if it's ok. Thank you! |
Interestingly, phpDocumentor works when image is being built, but not when I run it on the built image. Perhaps a docker issue.
Originally posted by @jakzal in #3562 (comment)
The text was updated successfully, but these errors were encountered: