Ошибка apns-php при подключении - PullRequest
1 голос
/ 20 апреля 2011

Пожалуйста, кто-нибудь, помогите мне. У меня есть эта ошибка при подключении к серверу apns.Обратная связь работает хорошо.Он возвращает мне данные.

Wed, 20 Apr 2011 13:14:36 +0200 ApnsPHP[30954]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Wed, 20 Apr 2011 13:14:36 +0200 ApnsPHP[30954]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)
Wed, 20 Apr 2011 13:14:36 +0200 ApnsPHP[30954]: INFO: Retry to connect (1/3)...
Wed, 20 Apr 2011 13:14:37 +0200 ApnsPHP[30954]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Wed, 20 Apr 2011 13:14:38 +0200 ApnsPHP[30954]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)
Wed, 20 Apr 2011 13:14:38 +0200 ApnsPHP[30954]: INFO: Retry to connect (2/3)...
Wed, 20 Apr 2011 13:14:39 +0200 ApnsPHP[30954]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Wed, 20 Apr 2011 13:14:39 +0200 ApnsPHP[30954]: ERROR: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)
Wed, 20 Apr 2011 13:14:39 +0200 ApnsPHP[30954]: INFO: Retry to connect (3/3)...
Wed, 20 Apr 2011 13:14:40 +0200 ApnsPHP[30954]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Fatal error: Uncaught exception 'ApnsPHP_Exception' with message 'Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': (0)' in /home/flavius/public_html/apns-php/ApnsPHP/Abstract.php:352
Stack trace: 
    #0 /home/flavius/public_html/apns-php/ApnsPHP/Abstract.php(295): ApnsPHP_Abstract->_connect() 
    #1 /home/flavius/public_html/apns-php/sample_push_many.php(44): ApnsPHP_Abstract->connect()
    #2 {main} thrown in /home/flavius/public_html/apns-php/ApnsPHP/Abstract.php on line 352

Пожалуйста, кто-нибудь, помогите мне. Спасибо.

...