Home
last modified time | relevance | path

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

/PHP-8.1/main/streams/
H A Dstreams.c57 return (FG(stream_wrappers) ? FG(stream_wrappers) : &url_stream_wrappers_hash); in _php_stream_get_url_stream_wrappers_hash()
143 if (!FG(wrapper_errors)) { in php_get_wrapper_errors_list()
253 if (!FG(wrapper_errors)) { in php_stream_wrapper_log_error()
1683 if (FG(stream_wrappers)) { in php_shutdown_stream_hashes()
1689 if (FG(stream_filters)) { in php_shutdown_stream_hashes()
1691 efree(FG(stream_filters)); in php_shutdown_stream_hashes()
1692 FG(stream_filters) = NULL; in php_shutdown_stream_hashes()
1695 if (FG(wrapper_errors)) { in php_shutdown_stream_hashes()
1697 efree(FG(wrapper_errors)); in php_shutdown_stream_hashes()
1698 FG(wrapper_errors) = NULL; in php_shutdown_stream_hashes()
[all …]
H A Dphp_stream_context.h34 FG(default_context) ? FG(default_context) : \
35 (FG(default_context) = php_stream_context_alloc()) )
H A Dfilter.c39 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) + 1, NULL, NULL, 0… 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_add_ptr(FG(stream_filters), filterpattern, (void*)factory) ? SUCCESS : FAILURE; in php_stream_filter_register_factory_volatile()
222 HashTable *filter_hash = (FG(stream_filters) ? FG(stream_filters) : &stream_filters_hash); in php_stream_filter_create()
H A Duserspace.c316 …if (FG(user_stream_current_filename) != NULL && strcmp(filename, FG(user_stream_current_filename))… in user_wrapper_opener()
320 FG(user_stream_current_filename) = filename; in user_wrapper_opener()
338 FG(user_stream_current_filename) = NULL; in user_wrapper_opener()
359 FG(user_stream_current_filename) = NULL; in user_wrapper_opener()
392 FG(user_stream_current_filename) = NULL; in user_wrapper_opener()
409 …if (FG(user_stream_current_filename) != NULL && strcmp(filename, FG(user_stream_current_filename))… in user_wrapper_opendir()
413 FG(user_stream_current_filename) = filename; in user_wrapper_opendir()
420 FG(user_stream_current_filename) = NULL; in user_wrapper_opendir()
460 FG(user_stream_current_filename) = NULL; in user_wrapper_opendir()
H A Dxp_socket.c328 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option()
925 sock->timeout.tv_sec = FG(default_socket_timeout); in php_stream_generic_socket_factory()
H A Dtransports.c69 default_timeout.tv_sec = FG(default_socket_timeout); in _php_stream_xport_create()
/PHP-8.1/ext/standard/
H A Dfile.h107 #define FG(v) ZEND_TSRMG(file_globals_id, php_file_globals *, v) macro
110 #define FG(v) (file_globals.v) macro
H A Dproc_open.c257 if (FG(pclose_wait)) { in proc_open_rsrc_dtor()
262 FG(pclose_ret) = -1; in proc_open_rsrc_dtor()
264 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor()
269 if (!FG(pclose_wait)) { in proc_open_rsrc_dtor()
277 FG(pclose_ret) = -1; in proc_open_rsrc_dtor()
282 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor()
286 FG(pclose_ret) = -1; in proc_open_rsrc_dtor()
346 FG(pclose_wait) = 1; /* See comment in `proc_open_rsrc_dtor` */ in PHP_FUNCTION()
348 FG(pclose_wait) = 0; in PHP_FUNCTION()
349 RETURN_LONG(FG(pclose_ret)); in PHP_FUNCTION()
H A Dfsock.c61 timeout = (double)FG(default_socket_timeout); in php_fsockopen_stream()
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()
550 if (!(have_header & HTTP_HEADER_FROM) && FG(from_address)) { in php_stream_url_wrap_http_ex()
552 smart_str_appends(&req_buf, FG(from_address)); in php_stream_url_wrap_http_ex()
582 } else if (FG(user_agent)) { in php_stream_url_wrap_http_ex()
583 ua_str = FG(user_agent); in php_stream_url_wrap_http_ex()
H A Dstreamsfuncs.c129 timeout = (double)FG(default_socket_timeout); in PHP_FUNCTION()
281 timeout = (double)FG(default_socket_timeout); in PHP_FUNCTION()
1124 if (FG(default_context) == NULL) { in PHP_FUNCTION()
1125 FG(default_context) = php_stream_context_alloc(); in PHP_FUNCTION()
1127 context = FG(default_context); in PHP_FUNCTION()
1149 if (FG(default_context) == NULL) { in PHP_FUNCTION()
1150 FG(default_context) = php_stream_context_alloc(); in PHP_FUNCTION()
1152 context = FG(default_context); in PHP_FUNCTION()
H A Dftp_fopen_wrapper.c266 if (FG(from_address)) { in php_ftp_fopen_connect()
267 php_stream_printf(stream, "PASS %s\r\n", FG(from_address)); in php_ftp_fopen_connect()
H A Dfile.c990 FG(pclose_wait) = 1; in PHP_FUNCTION()
992 FG(pclose_wait) = 0; in PHP_FUNCTION()
993 RETURN_LONG(FG(pclose_ret)); in PHP_FUNCTION()
H A Dbasic_functions.c493 FG(default_context) = NULL; in PHP_RINIT_FUNCTION()
496 FG(stream_wrappers) = NULL; in PHP_RINIT_FUNCTION()
499 FG(stream_filters) = NULL; in PHP_RINIT_FUNCTION()
/PHP-8.1/main/
H A Dnetwork.c1088 sock->timeout.tv_sec = FG(default_socket_timeout);
1329 if (FG(tmp_host_buf)) {
1330 free(FG(tmp_host_buf));
1333 FG(tmp_host_buf) = NULL;
1334 FG(tmp_host_buf_len) = 0;
1336 memset(&FG(tmp_host_info), 0, sizeof(struct hostent));
1338 return gethostname_re(name, &FG(tmp_host_info), &FG(tmp_host_buf), &FG(tmp_host_buf_len));
/PHP-8.1/ext/openssl/
H A Dxp_ssl.c2448 tv.tv_sec = (long)FG(default_socket_timeout); in php_openssl_sockop_set_option()
2450 tv.tv_sec = (time_t)FG(default_socket_timeout); in php_openssl_sockop_set_option()
2671 sslsock->s.timeout.tv_sec = (long)FG(default_socket_timeout); in php_openssl_ssl_socket_factory()
2673 sslsock->s.timeout.tv_sec = (time_t)FG(default_socket_timeout); in php_openssl_ssl_socket_factory()
/PHP-8.1/ext/pdo_pgsql/
H A Dpgsql_driver.c725 stream = php_stream_open_wrapper_ex(filename, "rb", 0, NULL, FG(default_context)); in PHP_METHOD()
826 stream = php_stream_open_wrapper_ex(filename, "wb", 0, NULL, FG(default_context)); in PHP_METHOD()
/PHP-8.1/ext/soap/
H A Dphp_http.c604 } else if (FG(user_agent)) { in make_http_soap_request()
606 smart_str_appends(&soap_headers, FG(user_agent)); in make_http_soap_request()
/PHP-8.1/ext/hash/
H A Dhash.c376 stream = php_stream_open_wrapper_ex(data, "rb", REPORT_ERRORS, NULL, FG(default_context)); in php_hash_do_hash()
519 stream = php_stream_open_wrapper_ex(data, "rb", REPORT_ERRORS, NULL, FG(default_context)); in php_hash_do_hash_hmac()
/PHP-8.1/sapi/cli/
H A Dphp_cli.c246 tv.tv_sec = (long)FG(default_socket_timeout); in sapi_cli_select()
/PHP-8.1/ext/imap/
H A Dphp_imap.c497 mail_parameters(NIL, SET_OPENTIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
498 mail_parameters(NIL, SET_READTIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
499 mail_parameters(NIL, SET_WRITETIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
500 mail_parameters(NIL, SET_CLOSETIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
/PHP-8.1/ext/sockets/
H A Dsockets.c2334 stream_data->timeout.tv_sec = FG(default_socket_timeout);
/PHP-8.1/ext/spl/
H A Dspl_directory.c283 intern->u.dir.dirp = php_stream_opendir(ZSTR_VAL(path), REPORT_ERRORS, FG(default_context)); in spl_filesystem_dir_open()
/PHP-8.1/ext/fileinfo/tests/
H A Dmagic32000 >6 regex \^FG=[0-9],[0-9]+$
H A Dmagic私はガラスを食べられます32000 >6 regex \^FG=[0-9],[0-9]+$

Completed in 245 milliseconds