Home
last modified time | relevance | path

Searched refs:FG (Results 1 – 24 of 24) sorted by relevance

/PHP-7.0/main/streams/
H A Dstreams.c60 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 Dphp_stream_context.h38 FG(default_context) ? FG(default_context) : \
39 (FG(default_context) = php_stream_context_alloc()) )
H A Dfilter.c43 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 Duserspace.c344 …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 Dxp_socket.c316 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 Dtransports.c67 default_timeout.tv_sec = FG(default_socket_timeout); in _php_stream_xport_create()
/PHP-7.0/ext/standard/
H A Dproc_open.c200 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 Dfile.h140 #define FG(v) ZEND_TSRMG(file_globals_id, php_file_globals *, v) macro
143 #define FG(v) (file_globals.v) macro
H A Dfsock.c38 double timeout = (double)FG(default_socket_timeout); in php_fsockopen_stream()
H A Dstreamsfuncs.c92 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 Dhttp_fopen_wrapper.c215 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 Durl.c665 …context = FG(default_context) ? FG(default_context) : (FG(default_context) = php_stream_context_al…
H A Dftp_fopen_wrapper.c275 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 Dfile.c963 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 Dbasic_functions.c3764 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 Dnetwork.c1106 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 Dxp_ssl.c2369 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 Dpgsql_driver.c694 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 Dphp_http.c610 } 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 Dphp_cli.c253 tv.tv_sec = (long)FG(default_socket_timeout); in sapi_cli_select()
/PHP-7.0/ext/hash/
H A Dhash.c35 # define DEFAULT_CONTEXT FG(default_context)
/PHP-7.0/ext/imap/
H A Dphp_imap.c882 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 Dsockets.c2450 stream_data->timeout.tv_sec = FG(default_socket_timeout);
/PHP-7.0/ext/spl/
H A Dspl_directory.c236 intern->u.dir.dirp = php_stream_opendir(path, REPORT_ERRORS, FG(default_context)); in spl_filesystem_dir_open()

Completed in 139 milliseconds