Home
last modified time | relevance | path

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

/PHP-8.2/main/streams/
H A Dstreams.c59 return (FG(stream_wrappers) ? FG(stream_wrappers) : &url_stream_wrappers_hash); in _php_stream_get_url_stream_wrappers_hash()
145 if (!FG(wrapper_errors)) { in php_get_wrapper_errors_list()
255 if (!FG(wrapper_errors)) { in php_stream_wrapper_log_error()
1801 if (FG(stream_wrappers)) { in php_shutdown_stream_hashes()
1807 if (FG(stream_filters)) { in php_shutdown_stream_hashes()
1809 efree(FG(stream_filters)); in php_shutdown_stream_hashes()
1810 FG(stream_filters) = NULL; in php_shutdown_stream_hashes()
1813 if (FG(wrapper_errors)) { in php_shutdown_stream_hashes()
1815 efree(FG(wrapper_errors)); in php_shutdown_stream_hashes()
1816 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.c331 …if (FG(user_stream_current_filename) != NULL && strcmp(filename, FG(user_stream_current_filename))… in user_wrapper_opener()
335 FG(user_stream_current_filename) = filename; in user_wrapper_opener()
355 FG(user_stream_current_filename) = NULL; in user_wrapper_opener()
372 FG(user_stream_current_filename) = NULL; in user_wrapper_opener()
406 FG(user_stream_current_filename) = NULL; in user_wrapper_opener()
431 …if (FG(user_stream_current_filename) != NULL && strcmp(filename, FG(user_stream_current_filename))… in user_wrapper_opendir()
435 FG(user_stream_current_filename) = filename; in user_wrapper_opendir()
444 FG(user_stream_current_filename) = NULL; in user_wrapper_opendir()
481 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()
938 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.2/ext/standard/
H A Dfile.h114 #define FG(v) ZEND_TSRMG(file_globals_id, php_file_globals *, v) macro
117 #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.c127 timeout = (double)FG(default_socket_timeout); in PHP_FUNCTION()
282 timeout = (double)FG(default_socket_timeout); in PHP_FUNCTION()
1130 if (FG(default_context) == NULL) { in PHP_FUNCTION()
1131 FG(default_context) = php_stream_context_alloc(); in PHP_FUNCTION()
1133 context = FG(default_context); in PHP_FUNCTION()
1155 if (FG(default_context) == NULL) { in PHP_FUNCTION()
1156 FG(default_context) = php_stream_context_alloc(); in PHP_FUNCTION()
1158 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.c860 FG(pclose_wait) = 1; in PHP_FUNCTION()
862 FG(pclose_wait) = 0; in PHP_FUNCTION()
863 RETURN_LONG(FG(pclose_ret)); in PHP_FUNCTION()
H A Dbasic_functions.c435 FG(default_context) = NULL; in PHP_RINIT_FUNCTION()
438 FG(stream_wrappers) = NULL; in PHP_RINIT_FUNCTION()
441 FG(stream_filters) = NULL; in PHP_RINIT_FUNCTION()
/PHP-8.2/main/
H A Dnetwork.c1095 sock->timeout.tv_sec = FG(default_socket_timeout);
1336 if (FG(tmp_host_buf)) {
1337 free(FG(tmp_host_buf));
1340 FG(tmp_host_buf) = NULL;
1341 FG(tmp_host_buf_len) = 0;
1343 memset(&FG(tmp_host_info), 0, sizeof(struct hostent));
1345 return gethostname_re(name, &FG(tmp_host_info), &FG(tmp_host_buf), &FG(tmp_host_buf_len));
/PHP-8.2/ext/openssl/
H A Dxp_ssl.c2460 tv.tv_sec = (long)FG(default_socket_timeout); in php_openssl_sockop_set_option()
2462 tv.tv_sec = (time_t)FG(default_socket_timeout); in php_openssl_sockop_set_option()
2780 sslsock->s.timeout.tv_sec = (long)FG(default_socket_timeout); in php_openssl_ssl_socket_factory()
2782 sslsock->s.timeout.tv_sec = (time_t)FG(default_socket_timeout); in php_openssl_ssl_socket_factory()
/PHP-8.2/ext/pdo_pgsql/
H A Dpgsql_driver.c724 stream = php_stream_open_wrapper_ex(filename, "rb", 0, NULL, FG(default_context)); in PHP_METHOD()
825 stream = php_stream_open_wrapper_ex(filename, "wb", 0, NULL, FG(default_context)); in PHP_METHOD()
/PHP-8.2/ext/soap/
H A Dphp_http.c622 } else if (FG(user_agent)) { in make_http_soap_request()
624 smart_str_appends(&soap_headers, FG(user_agent)); in make_http_soap_request()
/PHP-8.2/ext/hash/
H A Dhash.c377 stream = php_stream_open_wrapper_ex(data, "rb", REPORT_ERRORS, NULL, FG(default_context)); in php_hash_do_hash()
520 stream = php_stream_open_wrapper_ex(data, "rb", REPORT_ERRORS, NULL, FG(default_context)); in php_hash_do_hash_hmac()
/PHP-8.2/sapi/cli/
H A Dphp_cli.c247 tv.tv_sec = (long)FG(default_socket_timeout); in sapi_cli_select()
/PHP-8.2/ext/imap/
H A Dphp_imap.c503 mail_parameters(NIL, SET_OPENTIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
504 mail_parameters(NIL, SET_READTIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
505 mail_parameters(NIL, SET_WRITETIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
506 mail_parameters(NIL, SET_CLOSETIMEOUT, (void *) FG(default_socket_timeout)); in PHP_MINIT_FUNCTION()
/PHP-8.2/ext/sockets/
H A Dsockets.c2291 stream_data->timeout.tv_sec = FG(default_socket_timeout);
/PHP-8.2/ext/spl/
H A Dspl_directory.c311 intern->u.dir.dirp = php_stream_opendir(ZSTR_VAL(path), REPORT_ERRORS, FG(default_context)); in spl_filesystem_dir_open()
/PHP-8.2/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 240 milliseconds