-
Notifications
You must be signed in to change notification settings - Fork 27
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
Hangs forever with HHVM #11
Comments
Yikes. Thanks heaps for reporting. I'll look in to this over the next few days. |
thnx, docopt is really great! |
I've tried to run the tests using hhvm and they all pass. Can you please submit a script that replicates the problem? |
Sure. #!/usr/bin/env hhvm
<?php //app
include __DIR__ . '/vendor/autoload.php';
$doc = <<<DOC
App.
Usage:
app (-h | --help)
app --version
DOC;
$args = (new \Docopt\Handler(['version'=>'App 0.1']))->handle($doc); Then run |
This definitely merits further testing on my part - even if you were doing something wrong - and at first glance it doesn't look at all like you are - docopt's failure mode should never be to hang and/or fry any computers! You've given me enough information to debug for now, so I'll see what I can find and get back to you. Thanks again for your help! |
Hi, how should I run the tests? :) |
On the develop branch, you need to run the following:
This will run the PHP version's tests as well as the Python version's language agnostic tests. Are you running on the master branch or the develop branch? |
I've tried again using exactly those files, once again I can't reproduce. Sorry! This one's a bit of a doozy. What version of HHVM?
|
Ok, to be honest I don't think it's a problem with docopt anymore. Don't waste your time, I'll build the bleeding edge HHVM from source (this will take some minutes ☕) and give you feedback. |
Ok, it works as expected with HHVM from master! Thank you for the support. |
Oh phew, glad to hear it's working for you now. I'd still like to see if there's something we can identify with it, maybe stick a caveat in the README if I can't find what's causing the hang. This could well bite someone else in the future. Do you know what the version was that exhibited the problem? |
Problem happened with |
Do you think a README note will be enough?
|
...and centuries later... #13 It's nice to note this on README but we could add HHVM LTS as a composer platform package too :) |
I tried to run docopt with HHVM and it simply hangs forever. All runs fine with Zend PHP.
The text was updated successfully, but these errors were encountered: