/PHP-7.0/main/streams/ |
H A D | streams.c | 60 return (FG(stream_wrappers) ? FG(stream_wrappers) : &url_stream_wrappers_hash); in _php_stream_get_url_stream_wrappers_hash() 142 if (!FG(wrapper_errors)) { in php_get_wrapper_errors_list() 246 if (!FG(wrapper_errors)) { in php_stream_wrapper_log_error() 1630 if (FG(stream_wrappers)) { in php_shutdown_stream_hashes() 1636 if (FG(stream_filters)) { in php_shutdown_stream_hashes() 1638 efree(FG(stream_filters)); in php_shutdown_stream_hashes() 1639 FG(stream_filters) = NULL; in php_shutdown_stream_hashes() 1644 efree(FG(wrapper_errors)); in php_shutdown_stream_hashes() 1645 FG(wrapper_errors) = NULL; in php_shutdown_stream_hashes() 1733 if (!FG(stream_wrappers)) { in php_register_url_stream_wrapper_volatile() [all …]
|
H A D | php_stream_context.h | 38 FG(default_context) ? FG(default_context) : \ 39 (FG(default_context) = php_stream_context_alloc()) )
|
H A D | filter.c | 43 return (FG(stream_filters) ? FG(stream_filters) : &stream_filters_hash); in _php_get_stream_filters_hash() 60 if (!FG(stream_filters)) { in php_stream_filter_register_factory_volatile() 61 ALLOC_HASHTABLE(FG(stream_filters)); in php_stream_filter_register_factory_volatile() 62 zend_hash_init(FG(stream_filters), zend_hash_num_elements(&stream_filters_hash), NULL, NULL, 1); in php_stream_filter_register_factory_volatile() 63 zend_hash_copy(FG(stream_filters), &stream_filters_hash, NULL); in php_stream_filter_register_factory_volatile() 66 …return zend_hash_str_add_ptr(FG(stream_filters), (char*)filterpattern, strlen(filterpattern), fact… in php_stream_filter_register_factory_volatile() 252 HashTable *filter_hash = (FG(stream_filters) ? FG(stream_filters) : &stream_filters_hash); in php_stream_filter_create()
|
H A D | userspace.c | 344 …if (FG(user_stream_current_filename) != NULL && strcmp(filename, FG(user_stream_current_filename))… in user_wrapper_opener() 348 FG(user_stream_current_filename) = filename; in user_wrapper_opener() 366 FG(user_stream_current_filename) = NULL; in user_wrapper_opener() 388 FG(user_stream_current_filename) = NULL; in user_wrapper_opener() 421 FG(user_stream_current_filename) = NULL; in user_wrapper_opener() 438 …if (FG(user_stream_current_filename) != NULL && strcmp(filename, FG(user_stream_current_filename))… in user_wrapper_opendir() 442 FG(user_stream_current_filename) = filename; in user_wrapper_opendir() 449 FG(user_stream_current_filename) = NULL; in user_wrapper_opendir() 490 FG(user_stream_current_filename) = NULL; in user_wrapper_opendir()
|
H A D | xp_socket.c | 316 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option() 897 sock->timeout.tv_sec = FG(default_socket_timeout); in php_stream_generic_socket_factory()
|
H A D | transports.c | 67 default_timeout.tv_sec = FG(default_socket_timeout); in _php_stream_xport_create()
|
/PHP-7.0/ext/standard/ |
H A D | proc_open.c | 200 if (FG(pclose_wait)) { in proc_open_rsrc_dtor() 205 FG(pclose_ret) = -1; in proc_open_rsrc_dtor() 207 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor() 213 if (!FG(pclose_wait)) { in proc_open_rsrc_dtor() 221 FG(pclose_ret) = -1; in proc_open_rsrc_dtor() 225 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor() 229 FG(pclose_ret) = -1; in proc_open_rsrc_dtor() 294 FG(pclose_wait) = 1; in PHP_FUNCTION() 296 FG(pclose_wait) = 0; in PHP_FUNCTION() 297 RETURN_LONG(FG(pclose_ret)); in PHP_FUNCTION()
|
H A D | file.h | 140 #define FG(v) ZEND_TSRMG(file_globals_id, php_file_globals *, v) macro 143 #define FG(v) (file_globals.v) macro
|
H A D | fsock.c | 38 double timeout = (double)FG(default_socket_timeout); in php_fsockopen_stream()
|
H A D | streamsfuncs.c | 92 double timeout = (double)FG(default_socket_timeout); in PHP_FUNCTION() 241 double timeout = (double)FG(default_socket_timeout); in PHP_FUNCTION() 1068 if (FG(default_context) == NULL) { in PHP_FUNCTION() 1069 FG(default_context) = php_stream_context_alloc(); in PHP_FUNCTION() 1071 context = FG(default_context); in PHP_FUNCTION() 1092 if (FG(default_context) == NULL) { in PHP_FUNCTION() 1093 FG(default_context) = php_stream_context_alloc(); in PHP_FUNCTION() 1095 context = FG(default_context); in PHP_FUNCTION()
|
H A D | http_fopen_wrapper.c | 215 timeout.tv_sec = FG(default_socket_timeout); in php_stream_url_wrap_http_ex() 217 timeout.tv_sec = (long)FG(default_socket_timeout); in php_stream_url_wrap_http_ex() 564 if (((have_header & HTTP_HEADER_FROM) == 0) && FG(from_address)) { in php_stream_url_wrap_http_ex() 565 if (snprintf(scratch, scratch_len, "From: %s\r\n", FG(from_address)) > 0) in php_stream_url_wrap_http_ex() 596 } else if (FG(user_agent)) { in php_stream_url_wrap_http_ex() 597 ua_str = FG(user_agent); in php_stream_url_wrap_http_ex()
|
H A D | url.c | 665 …context = FG(default_context) ? FG(default_context) : (FG(default_context) = php_stream_context_al…
|
H A D | ftp_fopen_wrapper.c | 275 if (FG(from_address)) { in php_ftp_fopen_connect() 276 php_stream_printf(stream, "PASS %s\r\n", FG(from_address)); in php_ftp_fopen_connect()
|
H A D | file.c | 963 FG(pclose_wait) = 1; in PHP_FUNCTION() 965 FG(pclose_wait) = 0; in PHP_FUNCTION() 966 RETURN_LONG(FG(pclose_ret)); in PHP_FUNCTION()
|
H A D | basic_functions.c | 3764 FG(default_context) = NULL; in PHP_RINIT_FUNCTION() 3767 FG(stream_wrappers) = NULL; in PHP_RINIT_FUNCTION() 3770 FG(stream_filters) = NULL; in PHP_RINIT_FUNCTION()
|
/PHP-7.0/main/ |
H A D | network.c | 1106 sock->timeout.tv_sec = FG(default_socket_timeout); 1338 if (FG(tmp_host_buf)) { 1339 free(FG(tmp_host_buf)); 1342 FG(tmp_host_buf) = NULL; 1343 FG(tmp_host_buf_len) = 0; 1345 memset(&FG(tmp_host_info), 0, sizeof(struct hostent)); 1347 return gethostname_re(name, &FG(tmp_host_info), &FG(tmp_host_buf), &FG(tmp_host_buf_len));
|
/PHP-7.0/ext/openssl/ |
H A D | xp_ssl.c | 2369 tv.tv_sec = (long)FG(default_socket_timeout); in php_openssl_sockop_set_option() 2371 tv.tv_sec = (time_t)FG(default_socket_timeout); in php_openssl_sockop_set_option() 2595 sslsock->s.timeout.tv_sec = (long)FG(default_socket_timeout); in php_openssl_ssl_socket_factory() 2597 sslsock->s.timeout.tv_sec = (time_t)FG(default_socket_timeout); in php_openssl_ssl_socket_factory()
|
/PHP-7.0/ext/pdo_pgsql/ |
H A D | pgsql_driver.c | 694 stream = php_stream_open_wrapper_ex(filename, "rb", 0, NULL, FG(default_context)); in PHP_METHOD() 796 stream = php_stream_open_wrapper_ex(filename, "wb", 0, NULL, FG(default_context)); in PHP_METHOD()
|
/PHP-7.0/ext/soap/ |
H A D | php_http.c | 610 } else if (FG(user_agent)) { in make_http_soap_request() 612 smart_str_appends(&soap_headers, FG(user_agent)); in make_http_soap_request()
|
/PHP-7.0/sapi/cli/ |
H A D | php_cli.c | 253 tv.tv_sec = (long)FG(default_socket_timeout); in sapi_cli_select()
|
/PHP-7.0/ext/hash/ |
H A D | hash.c | 35 # define DEFAULT_CONTEXT FG(default_context)
|
/PHP-7.0/ext/imap/ |
H A D | php_imap.c | 882 mail_parameters(NIL, SET_OPENTIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION() 883 mail_parameters(NIL, SET_READTIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION() 884 mail_parameters(NIL, SET_WRITETIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION() 885 mail_parameters(NIL, SET_CLOSETIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
|
/PHP-7.0/ext/sockets/ |
H A D | sockets.c | 2450 stream_data->timeout.tv_sec = FG(default_socket_timeout);
|
/PHP-7.0/ext/spl/ |
H A D | spl_directory.c | 236 intern->u.dir.dirp = php_stream_opendir(path, REPORT_ERRORS, FG(default_context)); in spl_filesystem_dir_open()
|