-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Hackificator tries to hackify PHARs #3710
Comments
Whoops, good catch! Not something I'm sure we'll have time to get to, but would be happy to accept a PR for this. |
I'll work on that. |
@lucastadeu, any updates? |
@lucastadeu are you still looking into this? I have some available time and could submit a PR for this. |
Doubtful. @Stelian if you want to take over that would be awesome! |
@paulbiss Will have a look at it today and come up with a PR |
@paulbiss I need a little help here. The problem originates in https://github.com/facebook/pfff/blob/master/lang_php/parsing/lib_parsing_php.ml#L40 that also evaluates phars to true. There are two ways of fixing this: one would be to add another function like Since I do not know of all the usage of the lib_parsing_php around, not sure which approach would be the sensitive one. |
Given that pfff can't parse phar files anyways, I think modifying the behavior of |
@jwatzman I created a PR at facebookarchive/pfff#105 but I am not sure how to add tests to that particular usecase. I did test it on my box and it worked, but some automation would help. |
This appears to be fixed |
Running the Hackificator in a folder that contains a phar causes it to try to convert the phar to Hack. Given that a phar tends to be a binary file, this fails rather spectularily.
The text was updated successfully, but these errors were encountered: