Home
last modified time | relevance | path

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

/php-src/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()
1837 if (FG(stream_wrappers)) { in php_shutdown_stream_hashes()
1843 if (FG(stream_filters)) { in php_shutdown_stream_hashes()
1845 efree(FG(stream_filters)); in php_shutdown_stream_hashes()
1846 FG(stream_filters) = NULL; in php_shutdown_stream_hashes()
1849 if (FG(wrapper_errors)) { in php_shutdown_stream_hashes()
1851 efree(FG(wrapper_errors)); in php_shutdown_stream_hashes()
1852 FG(wrapper_errors) = NULL; in php_shutdown_stream_hashes()
[all …]
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 Dphp_stream_context.h34 FG(default_context) ? FG(default_context) : \
35 (FG(default_context) = php_stream_context_alloc()) )
H A Duserspace.c305 …if (FG(user_stream_current_filename) != NULL && strcmp(filename, FG(user_stream_current_filename))… in user_wrapper_opener()
309 FG(user_stream_current_filename) = filename; in user_wrapper_opener()
329 FG(user_stream_current_filename) = NULL; in user_wrapper_opener()
346 FG(user_stream_current_filename) = NULL; in user_wrapper_opener()
380 FG(user_stream_current_filename) = NULL; in user_wrapper_opener()
405 …if (FG(user_stream_current_filename) != NULL && strcmp(filename, FG(user_stream_current_filename))… in user_wrapper_opendir()
409 FG(user_stream_current_filename) = filename; in user_wrapper_opendir()
418 FG(user_stream_current_filename) = NULL; in user_wrapper_opendir()
455 FG(user_stream_current_filename) = NULL; in user_wrapper_opendir()
H A Dxp_socket.c350 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option()
964 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-src/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.c288 if (FG(pclose_wait)) { in proc_open_rsrc_dtor()
293 FG(pclose_ret) = -1; in proc_open_rsrc_dtor()
295 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor()
300 if (!FG(pclose_wait)) { in proc_open_rsrc_dtor()
308 FG(pclose_ret) = -1; in proc_open_rsrc_dtor()
313 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor()
317 FG(pclose_ret) = -1; in proc_open_rsrc_dtor()
377 FG(pclose_wait) = 1; /* See comment in `proc_open_rsrc_dtor` */ in PHP_FUNCTION()
379 FG(pclose_wait) = 0; in PHP_FUNCTION()
380 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.c244 timeout.tv_sec = FG(default_socket_timeout); in php_stream_url_wrap_http_ex()
246 timeout.tv_sec = (long)FG(default_socket_timeout); in php_stream_url_wrap_http_ex()
545 if (!(have_header & HTTP_HEADER_FROM) && FG(from_address)) { in php_stream_url_wrap_http_ex()
547 smart_str_appends(&req_buf, FG(from_address)); in php_stream_url_wrap_http_ex()
577 } else if (FG(user_agent)) { in php_stream_url_wrap_http_ex()
578 ua_str = FG(user_agent); in php_stream_url_wrap_http_ex()
H A Dstreamsfuncs.c124 timeout = (double)FG(default_socket_timeout); in PHP_FUNCTION()
279 timeout = (double)FG(default_socket_timeout); in PHP_FUNCTION()
1166 if (FG(default_context) == NULL) { in PHP_FUNCTION()
1167 FG(default_context) = php_stream_context_alloc(); in PHP_FUNCTION()
1169 context = FG(default_context); in PHP_FUNCTION()
1191 if (FG(default_context) == NULL) { in PHP_FUNCTION()
1192 FG(default_context) = php_stream_context_alloc(); in PHP_FUNCTION()
1194 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.c848 FG(pclose_wait) = 1; in PHP_FUNCTION()
850 FG(pclose_wait) = 0; in PHP_FUNCTION()
851 RETURN_LONG(FG(pclose_ret)); in PHP_FUNCTION()
H A Dbasic_functions.c432 FG(default_context) = NULL; in PHP_RINIT_FUNCTION()
435 FG(stream_wrappers) = NULL; in PHP_RINIT_FUNCTION()
438 FG(stream_filters) = NULL; in PHP_RINIT_FUNCTION()
/php-src/main/
H A Dnetwork.c1079 sock->timeout.tv_sec = FG(default_socket_timeout);
1320 if (FG(tmp_host_buf)) {
1321 free(FG(tmp_host_buf));
1324 FG(tmp_host_buf) = NULL;
1325 FG(tmp_host_buf_len) = 0;
1327 memset(&FG(tmp_host_info), 0, sizeof(struct hostent));
1329 return gethostname_re(name, &FG(tmp_host_info), &FG(tmp_host_buf), &FG(tmp_host_buf_len));
/php-src/ext/openssl/
H A Dxp_ssl.c2456 tv.tv_sec = (long)FG(default_socket_timeout); in php_openssl_sockop_set_option()
2458 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-src/ext/pdo_pgsql/
H A Dpgsql_driver.c786 stream = php_stream_open_wrapper_ex(filename, "rb", 0, NULL, FG(default_context)); in pgsqlCopyFromFile_internal()
891 stream = php_stream_open_wrapper_ex(filename, "wb", 0, NULL, FG(default_context)); in pgsqlCopyToFile_internal()
/php-src/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-src/ext/soap/
H A Dphp_http.c621 } else if (FG(user_agent)) { in make_http_soap_request()
623 smart_str_appends(&soap_headers, FG(user_agent)); in make_http_soap_request()
/php-src/sapi/cli/
H A Dphp_cli.c234 tv.tv_sec = (long)FG(default_socket_timeout); in sapi_cli_select()
/php-src/ext/sockets/
H A Dsockets.c2426 stream_data->timeout.tv_sec = FG(default_socket_timeout);
/php-src/ext/spl/
H A Dspl_directory.c288 intern->u.dir.dirp = php_stream_opendir(ZSTR_VAL(path), REPORT_ERRORS, FG(default_context)); in spl_filesystem_dir_open()
/php-src/ext/fileinfo/tests/
H A Dmagic私はガラスを食べられます37123 >6 regex \^FG=[0-9],[0-9]+$
H A Dmagic37123 >6 regex \^FG=[0-9],[0-9]+$

Completed in 265 milliseconds