I created a small APNS Server using PHP, using an older version of Xampp. But when I was using the push file in a current version, I got the error as per the image:
The error line which is referenced above is this:
// Servidor de produção0
$fp = stream_socket_client( 'ssl://gateway.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx);
I think the stream_socket_client function is outdated, as I'm not a PHP expert, I wonder if this is the problem, and if so, how could I override or update this function.