Create a gist now

Instantly share code, notes, and snippets.

ApnsPHP/Abstract.phpの変更箇所
// ========== 変更前 ===========
protected function _connect()
{
// ... 省略 ...
$streamContext = stream_context_create(array('ssl' => array(
'verify_peer' => isset($this->_sRootCertificationAuthorityFile),
'cafile' => $this->_sRootCertificationAuthorityFile,
'local_cert' => $this->_sProviderCertificateFile
)));
// =========== 変更後 ==========
protected function _connect()
{
// ... 省略 ...
// 2行をコメントアウトさせます
$streamContext = stream_context_create(array('ssl' => array(
// 'verify_peer' => isset($this->_sRootCertificationAuthorityFile),
// 'cafile' => $this->_sRootCertificationAuthorityFile,
'local_cert' => $this->_sProviderCertificateFile
)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment