- var_dump: documentation ( source)
- pfsockopen: documentation ( source)
- ini_set: documentation ( source)
<?php
ini_set('default_socket_timeout', -1); //set -1, unless greater than 0,
$fp = pfsockopen('127.0.0.1',6379, $en, $err);
var_dump($fp); // print false
var_dump($err); //print "success",yes, if connect Failed, the error is "Success", i think is bug