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

Examples/event.php will pop a warning after certain time #70

Open
mickey9801 opened this issue Jun 1, 2017 · 1 comment
Open

Examples/event.php will pop a warning after certain time #70

mickey9801 opened this issue Jun 1, 2017 · 1 comment

Comments

@mickey9801
Copy link

mickey9801 commented Jun 1, 2017

I am testing the Mosquitto-PHP with the event.php example,. Unfortunately, I found that the script will pop up an PHP Waring after running awhile (a minute or two), no matter it have received a message or not, and will be stopped to received message after the warning. The warning is:

PHP Warning: EventBase::dispatch(): An error occurred while invoking the callback in /path/to/mosquitto/examples/event.php on line 27"

I have checked the Apache error.log and confirmed that there is no error there. But I don't known which log file stored errors for PHP CLI mode.

I am not familiar with libevent or PHP Event extension. As the callback is quite sample, I wonder why it will become hang for running awhile.

@mgdm
Copy link
Owner

mgdm commented Nov 25, 2017

That was a bit of an example thrown together in a few minutes to see if it would work - I've not run it myself for any great length of time myself. When it happens does the script crash?

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

2 participants