35 bool timeout_is_null = 1;
45 char *hostname =
NULL;
60 if (timeout_is_null) {
61 timeout = (double)
FG(default_socket_timeout);
76 if (timeout != -1.0 && !(timeout >= 0.0 && timeout <= (
double)
PHP_TIMEOUT_ULL_MAX / 1000000.0)) {
89 conv = (time_t) (timeout * 1000000.0);
90 tv.tv_sec = conv / 1000000;
92 conv = (long) (timeout * 1000000.0);
93 tv.tv_sec = conv / 1000000;
95 tv.tv_usec = conv % 1000000;
104 if (stream ==
NULL) {
112 if (stream ==
NULL) {
120 zend_string_release(errstr);
pfsockopen(string $hostname, int $port=-1, &$error_code=null, &$error_message=null, ?float $timeout=null)
fsockopen(string $hostname, int $port=-1, &$error_code=null, &$error_message=null, ?float $timeout=null)
foreach($dp as $el) foreach( $dp as $el) if( $pass2< 2) echo ""
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format,...)
#define php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode)
#define STREAM_XPORT_CONNECT
#define STREAM_XPORT_CLIENT
struct _php_stream php_stream
#define php_stream_to_zval(stream, zval)
#define PHP_TIMEOUT_ULL_MAX
#define INTERNAL_FUNCTION_PARAMETERS
#define INTERNAL_FUNCTION_PARAM_PASSTHRU
ZEND_API ZEND_COLD void zend_argument_value_error(uint32_t arg_num, const char *format,...)
#define ZEND_PARSE_PARAMETERS_END()
#define Z_PARAM_STRING(dest, dest_len)
#define Z_PARAM_DOUBLE_OR_NULL(dest, is_null)
#define ZEND_PARSE_PARAMETERS_START(min_num_args, max_num_args)
#define ZEND_TRY_ASSIGN_REF_LONG(zv, lval)
#define Z_PARAM_LONG(dest)
#define ZEND_TRY_ASSIGN_REF_EMPTY_STRING(zv)
#define Z_PARAM_ZVAL(dest)
#define ZEND_TRY_ASSIGN_REF_STR(zv, str)
zend_string_release_ex(func->internal_function.function_name, 0)
struct _zend_string zend_string