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

Upgrade to PHP 5.5.24 crashes ApnsPHP #90

Open
rwforsythe opened this issue May 16, 2015 · 4 comments
Open

Upgrade to PHP 5.5.24 crashes ApnsPHP #90

rwforsythe opened this issue May 16, 2015 · 4 comments

Comments

@rwforsythe
Copy link

Just upgraded to PHP 5.5.24, and ApnsPHP stops working. It now sends the notification, but hangs in the send function consuming all server resources on the thread.

No errors (apart from timezone) and this is the log output from sample_push.php:
Sat, 16 May 2015 19:15:22 +0000 ApnsPHP[15659]: INFO: Trying tls://gateway.push.apple.com:2195...
Sat, 16 May 2015 19:15:22 +0000 ApnsPHP[15659]: INFO: Connected to tls://gateway.push.apple.com:2195.
Sat, 16 May 2015 19:15:22 +0000 ApnsPHP[15659]: INFO: Sending messages queue, run #1: 1 message(s) left in queue.
Sat, 16 May 2015 19:15:22 +0000 ApnsPHP[15659]: STATUS: Sending message ID 1 custom identifier: Message-Badge-31: 120 bytes.

Then it hangs, consuming all resources until killed. The notification is received by the device.

If I comment out "$push->send();" from sample_push.php, my log file reads (and no hang):
Sat, 16 May 2015 21:20:31 +0200 ApnsPHP[15983]: INFO: Trying tls://gateway.push.apple.com:2195...
Sat, 16 May 2015 21:20:31 +0200 ApnsPHP[15983]: INFO: Connected to tls://gateway.push.apple.com:2195.
Sat, 16 May 2015 21:20:31 +0200 ApnsPHP[15983]: INFO: Disconnected.

[Note: was running PHP v5.5.22 just fine before the upgrade.]

@rwforsythe rwforsythe changed the title Upgradet to PHP 5.5.24 crashes ApnsPHP Upgrade to PHP 5.5.24 crashes ApnsPHP May 16, 2015
@rwforsythe
Copy link
Author

Just noticed that this is a dup of this thread: #84

Per that thread, the issue is a problem with PHP v5.5.23 and v5.5.24 and should be fixed in v5.5.25.

@carlosgonzalez
Copy link

Same issue here with PHP 5.5.24.

Should I upgrade my PHP version? Is the @rwforsythe solution working for anyone?

@rwforsythe
Copy link
Author

Allegedly 5.5.25 fixes this issue, but I have seen no definitive answer. All workarounds seem to allow core functionality, but errors are not handled correctly.

@rwforsythe
Copy link
Author

5.5.25 does indeed fix the issue.

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