Home
last modified time | relevance | path

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

/PHP-5.6/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()
163 if (!FG(wrapper_errors)) { in php_get_wrapper_errors_list()
263 if (!FG(wrapper_errors)) { in php_stream_wrapper_log_error()
1631 if (FG(stream_wrappers)) { in php_shutdown_stream_hashes()
1637 if (FG(stream_filters)) { in php_shutdown_stream_hashes()
1639 efree(FG(stream_filters)); in php_shutdown_stream_hashes()
1640 FG(stream_filters) = NULL; in php_shutdown_stream_hashes()
1645 efree(FG(wrapper_errors)); in php_shutdown_stream_hashes()
1646 FG(wrapper_errors) = NULL; in php_shutdown_stream_hashes()
1739 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(TSRMLS_C)) )
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()
63 ALLOC_HASHTABLE(FG(stream_filters)); in php_stream_filter_register_factory_volatile()
64 zend_hash_init(FG(stream_filters), zend_hash_num_elements(&stream_filters_hash), NULL, NULL, 1); in php_stream_filter_register_factory_volatile()
65 …zend_hash_copy(FG(stream_filters), &stream_filters_hash, NULL, &tmpfactory, sizeof(php_stream_filt… in php_stream_filter_register_factory_volatile()
68 …return zend_hash_add(FG(stream_filters), (char*)filterpattern, strlen(filterpattern) + 1, factory,… in php_stream_filter_register_factory_volatile()
254 HashTable *filter_hash = (FG(stream_filters) ? FG(stream_filters) : &stream_filters_hash); in php_stream_filter_create()
H A Duserspace.c347 …if (FG(user_stream_current_filename) != NULL && strcmp(filename, FG(user_stream_current_filename))… in user_wrapper_opener()
351 FG(user_stream_current_filename) = filename; in user_wrapper_opener()
369 FG(user_stream_current_filename) = NULL; in user_wrapper_opener()
405 FG(user_stream_current_filename) = NULL; in user_wrapper_opener()
440 FG(user_stream_current_filename) = NULL; in user_wrapper_opener()
457 …if (FG(user_stream_current_filename) != NULL && strcmp(filename, FG(user_stream_current_filename))… in user_wrapper_opendir()
461 FG(user_stream_current_filename) = filename; in user_wrapper_opendir()
468 FG(user_stream_current_filename) = NULL; in user_wrapper_opendir()
516 FG(user_stream_current_filename) = NULL; in user_wrapper_opendir()
H A Dxp_socket.c294 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option()
831 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-5.6/ext/standard/
H A Dproc_open.c246 if (FG(pclose_wait)) { in proc_open_rsrc_dtor()
251 FG(pclose_ret) = -1; in proc_open_rsrc_dtor()
253 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor()
259 if (!FG(pclose_wait)) { in proc_open_rsrc_dtor()
267 FG(pclose_ret) = -1; in proc_open_rsrc_dtor()
271 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor()
275 FG(pclose_ret) = -1; in proc_open_rsrc_dtor()
335 FG(pclose_wait) = 1; in PHP_FUNCTION()
337 FG(pclose_wait) = 0; in PHP_FUNCTION()
338 RETURN_LONG(FG(pclose_ret)); in PHP_FUNCTION()
H A Dfile.h133 #define FG(v) TSRMG(file_globals_id, php_file_globals *, v) macro
136 #define FG(v) (file_globals.v) macro
H A Dfsock.c38 double timeout = FG(default_socket_timeout); in php_fsockopen_stream()
H A Dstreamsfuncs.c93 double timeout = FG(default_socket_timeout); in PHP_FUNCTION()
244 double timeout = FG(default_socket_timeout); in PHP_FUNCTION()
1122 if (FG(default_context) == NULL) { in PHP_FUNCTION()
1123 FG(default_context) = php_stream_context_alloc(TSRMLS_C); in PHP_FUNCTION()
1125 context = FG(default_context); in PHP_FUNCTION()
1146 if (FG(default_context) == NULL) { in PHP_FUNCTION()
1147 FG(default_context) = php_stream_context_alloc(TSRMLS_C); in PHP_FUNCTION()
1149 context = FG(default_context); in PHP_FUNCTION()
H A Dhttp_fopen_wrapper.c206 timeout.tv_sec = FG(default_socket_timeout); in php_stream_url_wrap_http_ex()
561 if (((have_header & HTTP_HEADER_FROM) == 0) && FG(from_address)) { in php_stream_url_wrap_http_ex()
562 if (snprintf(scratch, scratch_len, "From: %s\r\n", FG(from_address)) > 0) in php_stream_url_wrap_http_ex()
593 } else if (FG(user_agent)) { in php_stream_url_wrap_http_ex()
594 ua_str = FG(user_agent); in php_stream_url_wrap_http_ex()
H A Durl.c681 …context = FG(default_context) ? FG(default_context) : (FG(default_context) = php_stream_context_al…
H A Dfile.c161 FG(pclose_ret) = 0; in file_globals_ctor()
162 FG(pclose_wait) = 0; in file_globals_ctor()
163 FG(user_stream_current_filename) = NULL; in file_globals_ctor()
164 FG(def_chunk_size) = PHP_SOCK_CHUNK_SIZE; in file_globals_ctor()
165 FG(wrapper_errors) = NULL; in file_globals_ctor()
980 FG(pclose_wait) = 1; in PHP_FUNCTION()
982 FG(pclose_wait) = 0; in PHP_FUNCTION()
983 RETURN_LONG(FG(pclose_ret)); in PHP_FUNCTION()
H A Dftp_fopen_wrapper.c275 if (FG(from_address)) { in php_ftp_fopen_connect()
276 php_stream_printf(stream TSRMLS_CC, "PASS %s\r\n", FG(from_address)); in php_ftp_fopen_connect()
H A Dbasic_functions.c3749 FG(default_context) = NULL; in PHP_RINIT_FUNCTION()
3752 FG(stream_wrappers) = NULL; in PHP_RINIT_FUNCTION()
3755 FG(stream_filters) = NULL; in PHP_RINIT_FUNCTION()
/PHP-5.6/ext/pdo_pgsql/
H A Dpgsql_driver.c697 stream = php_stream_open_wrapper_ex(filename, "rb", ENFORCE_SAFE_MODE, NULL, FG(default_context)); in PHP_METHOD()
799 stream = php_stream_open_wrapper_ex(filename, "wb", ENFORCE_SAFE_MODE, NULL, FG(default_context)); in PHP_METHOD()
/PHP-5.6/ext/soap/
H A Dphp_http.c601 } else if (FG(user_agent)) { in make_http_soap_request()
603 smart_str_appends(&soap_headers, FG(user_agent)); in make_http_soap_request()
/PHP-5.6/main/
H A Dnetwork.c1047 sock->timeout.tv_sec = FG(default_socket_timeout);
/PHP-5.6/sapi/cli/
H A Dphp_cli.c251 tv.tv_sec = FG(default_socket_timeout); in sapi_cli_select()
/PHP-5.6/ext/openssl/
H A Dxp_ssl.c2172 tv.tv_sec = FG(default_socket_timeout); in php_openssl_sockop_set_option()
2394 sslsock->s.timeout.tv_sec = FG(default_socket_timeout); in php_openssl_ssl_socket_factory()
/PHP-5.6/ext/hash/
H A Dhash.c35 # define DEFAULT_CONTEXT FG(default_context)
/PHP-5.6/ext/imap/
H A Dphp_imap.c885 mail_parameters(NIL, SET_OPENTIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
886 mail_parameters(NIL, SET_READTIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
887 mail_parameters(NIL, SET_WRITETIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
888 mail_parameters(NIL, SET_CLOSETIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
/PHP-5.6/ext/spl/
H A Dspl_directory.c250 intern->u.dir.dirp = php_stream_opendir(path, REPORT_ERRORS, FG(default_context)); in spl_filesystem_dir_open()

Completed in 125 milliseconds