Home
last modified time | relevance | path

Searched refs:str_length (Results 1 – 15 of 15) sorted by relevance

/PHP-8.1/sapi/cli/
H A Dcli.h29 extern PHP_CLI_API ssize_t sapi_cli_single_write(const char *str, size_t str_length);
32 size_t (*cli_shell_write)(const char *str, size_t str_length);
33 size_t (*cli_shell_ub_write)(const char *str, size_t str_length);
H A Dphp_cli.c254 PHP_CLI_API ssize_t sapi_cli_single_write(const char *str, size_t str_length) /* {{{ */ in sapi_cli_single_write() argument
259 cli_shell_callbacks.cli_shell_write(str, str_length); in sapi_cli_single_write()
264 ret = write(STDOUT_FILENO, str, str_length); in sapi_cli_single_write()
267 ret = fwrite(str, 1, MIN(str_length, 16384), stdout); in sapi_cli_single_write()
276 static size_t sapi_cli_ub_write(const char *str, size_t str_length) /* {{{ */ in sapi_cli_ub_write() argument
279 size_t remaining = str_length; in sapi_cli_ub_write()
282 if (!str_length) { in sapi_cli_ub_write()
288 ub_wrote = cli_shell_callbacks.cli_shell_ub_write(str, str_length); in sapi_cli_ub_write()
H A Dphp_cli_server.c519 static size_t sapi_cli_server_ub_write(const char *str, size_t str_length) /* {{{ */ in sapi_cli_server_ub_write() argument
525 return php_cli_server_client_send_through(client, str, str_length); in sapi_cli_server_ub_write()
/PHP-8.1/sapi/embed/
H A Dphp_embed.c55 static inline size_t php_embed_single_write(const char *str, size_t str_length) in php_embed_single_write() argument
60 ret = write(STDOUT_FILENO, str, str_length); in php_embed_single_write()
66 ret = fwrite(str, 1, MIN(str_length, 16384), stdout); in php_embed_single_write()
75 static size_t php_embed_ub_write(const char *str, size_t str_length) in php_embed_ub_write() argument
78 size_t remaining = str_length; in php_embed_ub_write()
90 return str_length; in php_embed_ub_write()
/PHP-8.1/ext/readline/
H A Dreadline_cli.c78 static size_t readline_shell_write(const char *str, size_t str_length) /* {{{ */ in readline_shell_write() argument
81 smart_str_appendl(CLIR_G(prompt_str), str, str_length); in readline_shell_write()
82 return str_length; in readline_shell_write()
89 return fwrite(str, 1, MIN(str_length, 16384), pager_pipe); in readline_shell_write()
96 static size_t readline_shell_ub_write(const char *str, size_t str_length) /* {{{ */ in readline_shell_ub_write() argument
101 php_last_char = str[str_length-1]; in readline_shell_ub_write()
/PHP-8.1/sapi/fuzzer/
H A Dfuzzer-sapi.c71 static size_t ub_write(const char *str, size_t str_length) in ub_write() argument
74 return str_length; in ub_write()
/PHP-8.1/ext/ffi/tests/
H A D200.phpt21 typedef size_t (*zend_write_func_t)(const char *str, size_t str_length);
/PHP-8.1/Zend/
H A Dzend_multibyte.h25 typedef size_t (*zend_encoding_filter)(unsigned char **str, size_t *str_length, const unsigned char…
H A Dzend.h234 size_t (*write_function)(const char *str, size_t str_length);
251 typedef size_t (*zend_write_func_t)(const char *str, size_t str_length);
/PHP-8.1/sapi/litespeed/
H A Dlsapi_main.c135 static size_t sapi_lsapi_ub_write(const char *str, size_t str_length) in sapi_lsapi_ub_write() argument
140 ret = LSAPI_Write( str, str_length ); in sapi_lsapi_ub_write()
141 if ( ret < str_length ) { in sapi_lsapi_ub_write()
143 return str_length - ret; in sapi_lsapi_ub_write()
146 remain = str_length; in sapi_lsapi_ub_write()
151 return str_length - remain; in sapi_lsapi_ub_write()
157 return str_length; in sapi_lsapi_ub_write()
/PHP-8.1/sapi/fpm/fpm/
H A Dfpm_main.c240 static inline size_t sapi_cgibin_single_write(const char *str, uint32_t str_length) /* {{{ */ in sapi_cgibin_single_write() argument
247 ret = fcgi_write(request, FCGI_STDOUT, str, str_length); in sapi_cgibin_single_write()
256 ret = write(STDOUT_FILENO, str, str_length); in sapi_cgibin_single_write()
262 return fwrite(str, 1, MIN(str_length, 16384), stdout); in sapi_cgibin_single_write()
267 static size_t sapi_cgibin_ub_write(const char *str, size_t str_length) /* {{{ */ in sapi_cgibin_ub_write() argument
270 uint32_t remaining = str_length; in sapi_cgibin_ub_write()
277 return str_length - remaining; in sapi_cgibin_ub_write()
283 return str_length; in sapi_cgibin_ub_write()
/PHP-8.1/sapi/cgi/
H A Dcgi_main.c290 static inline size_t sapi_cgi_single_write(const char *str, size_t str_length) in sapi_cgi_single_write() argument
295 ret = write(STDOUT_FILENO, str, str_length); in sapi_cgi_single_write()
301 ret = fwrite(str, 1, MIN(str_length, 16384), stdout); in sapi_cgi_single_write()
306 static size_t sapi_cgi_ub_write(const char *str, size_t str_length) in sapi_cgi_ub_write() argument
309 size_t remaining = str_length; in sapi_cgi_ub_write()
316 return str_length - remaining; in sapi_cgi_ub_write()
322 return str_length; in sapi_cgi_ub_write()
325 static size_t sapi_fcgi_ub_write(const char *str, size_t str_length) in sapi_fcgi_ub_write() argument
328 size_t remaining = str_length; in sapi_fcgi_ub_write()
337 return str_length - remaining; in sapi_fcgi_ub_write()
[all …]
/PHP-8.1/sapi/apache2handler/
H A Dsapi_apache2.c71 php_apache_sapi_ub_write(const char *str, size_t str_length) in ZEND_TSRMLS_CACHE_DEFINE()
79 if (ap_rwrite(str, str_length, r) < 0) { in ZEND_TSRMLS_CACHE_DEFINE()
83 return str_length; /* we always consume all the data passed to us. */ in ZEND_TSRMLS_CACHE_DEFINE()
/PHP-8.1/main/
H A DSAPI.h225 size_t (*ub_write)(const char *str, size_t str_length);
/PHP-8.1/ext/opcache/
H A DZendAccelerator.c4606 static size_t preload_ub_write(const char *str, size_t str_length) argument
4608 return fwrite(str, 1, str_length, stdout);
4653 size_t (*orig_ub_write)(const char *str, size_t str_length) = sapi_module.ub_write;

Completed in 72 milliseconds