Skip to content
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

example test.php not working #1

Open
peterbarretto opened this issue Apr 14, 2010 · 6 comments
Open

example test.php not working #1

peterbarretto opened this issue Apr 14, 2010 · 6 comments

Comments

@peterbarretto
Copy link

I tried running the test.php example script provided but it does not output anything.What might be wrong?

@petewarden
Copy link
Owner

Hi Peter,
what platform are you running on? I've heard of issues with multi_curl on Windows. Do you see any error messages or does the script just hang?

cheers,
Pete

@peterbarretto
Copy link
Author

Hi Pete,
i have tried the script on both linux as well as windows platform. i don't get any errors. i tried debugging by adding echo at certain lines and found out that the script goes on running again and again inside the checkForCompletedRequests() function.

@petewarden
Copy link
Owner

I've just done a sanity check to make sure it runs here on my OS X and Linux (Fedora 8) systems, so I was wondering if I could get some version information from you. Maybe the output of phpinfo() ?

@peterbarretto
Copy link
Author

Hi Pete,

Some version information:-
Linux redhat
PHP Version 5.1.6
CURL Information: libcurl/7.15.5

@petewarden
Copy link
Owner

Thanks Peter. I did some research, and came across this report of a general multi_curl problem in PHP 5.1.6:
http://www.php.net/manual/en/function.curl-multi-exec.php#85717
Unfortunately if that's the issue, it won't be possible to work around the problem without adding a curl_multi_exec() to the loop in 5.1.6.

From all reports, the bug is fixed in later versions of PHP, but that's not much comfort if you can't upgrade your installation.

@hammady
Copy link

hammady commented Nov 10, 2013

I still can't run it on Windows. It hangs on startRequest. I have installed libcurl binaries from http://curl.haxx.se/libcurl/php/install.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants