/PHP-5.6/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() 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 D | php_stream_context.h | 38 FG(default_context) ? FG(default_context) : \ 39 (FG(default_context) = php_stream_context_alloc(TSRMLS_C)) )
|
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() 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 D | userspace.c | 347 …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 D | xp_socket.c | 294 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 D | transports.c | 67 default_timeout.tv_sec = FG(default_socket_timeout); in _php_stream_xport_create()
|
/PHP-5.6/ext/standard/ |
H A D | proc_open.c | 246 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 D | file.h | 133 #define FG(v) TSRMG(file_globals_id, php_file_globals *, v) macro 136 #define FG(v) (file_globals.v) macro
|
H A D | fsock.c | 38 double timeout = FG(default_socket_timeout); in php_fsockopen_stream()
|
H A D | streamsfuncs.c | 93 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 D | http_fopen_wrapper.c | 206 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 D | url.c | 681 …context = FG(default_context) ? FG(default_context) : (FG(default_context) = php_stream_context_al…
|
H A D | file.c | 161 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 D | ftp_fopen_wrapper.c | 275 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 D | basic_functions.c | 3749 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 D | pgsql_driver.c | 697 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 D | php_http.c | 601 } 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 D | network.c | 1047 sock->timeout.tv_sec = FG(default_socket_timeout);
|
/PHP-5.6/sapi/cli/ |
H A D | php_cli.c | 251 tv.tv_sec = FG(default_socket_timeout); in sapi_cli_select()
|
/PHP-5.6/ext/openssl/ |
H A D | xp_ssl.c | 2172 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 D | hash.c | 35 # define DEFAULT_CONTEXT FG(default_context)
|
/PHP-5.6/ext/imap/ |
H A D | php_imap.c | 885 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 D | spl_directory.c | 250 intern->u.dir.dirp = php_stream_opendir(path, REPORT_ERRORS, FG(default_context)); in spl_filesystem_dir_open()
|