/php-src/sapi/embed/ |
H A D | php_embed.c | 55 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-src/sapi/cli/ |
H A D | cli.h | 29 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 D | php_cli.c | 242 PHP_CLI_API ssize_t sapi_cli_single_write(const char *str, size_t str_length) /* {{{ */ in sapi_cli_single_write() argument 247 cli_shell_callbacks.cli_shell_write(str, str_length); in sapi_cli_single_write() 252 ret = write(STDOUT_FILENO, str, str_length); in sapi_cli_single_write() 255 ret = fwrite(str, 1, MIN(str_length, 16384), stdout); in sapi_cli_single_write() 264 static size_t sapi_cli_ub_write(const char *str, size_t str_length) /* {{{ */ in sapi_cli_ub_write() argument 267 size_t remaining = str_length; in sapi_cli_ub_write() 270 if (!str_length) { in sapi_cli_ub_write() 276 ub_wrote = cli_shell_callbacks.cli_shell_ub_write(str, str_length); in sapi_cli_ub_write()
|
H A D | php_cli_server.c | 518 static size_t sapi_cli_server_ub_write(const char *str, size_t str_length) /* {{{ */ in sapi_cli_server_ub_write() argument 524 return php_cli_server_client_send_through(client, str, str_length); in sapi_cli_server_ub_write()
|
/php-src/ext/readline/ |
H A D | readline_cli.c | 71 static size_t readline_shell_write(const char *str, size_t str_length) /* {{{ */ in readline_shell_write() argument 74 smart_str_appendl(CLIR_G(prompt_str), str, str_length); in readline_shell_write() 75 return str_length; in readline_shell_write() 82 return fwrite(str, 1, MIN(str_length, 16384), pager_pipe); in readline_shell_write() 89 static size_t readline_shell_ub_write(const char *str, size_t str_length) /* {{{ */ in readline_shell_ub_write() argument 94 php_last_char = str[str_length-1]; in readline_shell_ub_write()
|
/php-src/ext/ffi/tests/ |
H A D | 200.phpt | 21 typedef size_t (*zend_write_func_t)(const char *str, size_t str_length);
|
/php-src/sapi/fuzzer/ |
H A D | fuzzer-sapi.c | 68 static size_t ub_write(const char *str, size_t str_length) in ub_write() argument 71 return str_length; in ub_write()
|
/php-src/Zend/ |
H A D | zend_multibyte.h | 27 typedef size_t (*zend_encoding_filter)(unsigned char **str, size_t *str_length, const unsigned char…
|
H A D | zend.h | 247 size_t (*write_function)(const char *str, size_t str_length); 266 typedef size_t (*zend_write_func_t)(const char *str, size_t str_length);
|
/php-src/sapi/cgi/ |
H A D | cgi_main.c | 294 static inline size_t sapi_cgi_single_write(const char *str, size_t str_length) in sapi_cgi_single_write() argument 299 ret = write(STDOUT_FILENO, str, str_length); in sapi_cgi_single_write() 305 ret = fwrite(str, 1, MIN(str_length, 16384), stdout); in sapi_cgi_single_write() 310 static size_t sapi_cgi_ub_write(const char *str, size_t str_length) in sapi_cgi_ub_write() argument 313 size_t remaining = str_length; in sapi_cgi_ub_write() 320 return str_length - remaining; in sapi_cgi_ub_write() 326 return str_length; in sapi_cgi_ub_write() 329 static size_t sapi_fcgi_ub_write(const char *str, size_t str_length) in sapi_fcgi_ub_write() argument 332 size_t remaining = str_length; in sapi_fcgi_ub_write() 341 return str_length - remaining; in sapi_fcgi_ub_write() [all …]
|
/php-src/sapi/litespeed/ |
H A D | lsapi_main.c | 134 static size_t sapi_lsapi_ub_write(const char *str, size_t str_length) in sapi_lsapi_ub_write() argument 139 ret = LSAPI_Write( str, str_length ); in sapi_lsapi_ub_write() 140 if ( ret < str_length ) { in sapi_lsapi_ub_write() 142 return str_length - ret; in sapi_lsapi_ub_write() 145 remain = str_length; in sapi_lsapi_ub_write() 150 return str_length - remain; in sapi_lsapi_ub_write() 156 return str_length; in sapi_lsapi_ub_write()
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_main.c | 237 static inline size_t sapi_cgibin_single_write(const char *str, uint32_t str_length) /* {{{ */ in sapi_cgibin_single_write() argument 244 ret = fcgi_write(request, FCGI_STDOUT, str, str_length); in sapi_cgibin_single_write() 253 ret = write(STDOUT_FILENO, str, str_length); in sapi_cgibin_single_write() 259 return fwrite(str, 1, MIN(str_length, 16384), stdout); in sapi_cgibin_single_write() 264 static size_t sapi_cgibin_ub_write(const char *str, size_t str_length) /* {{{ */ in sapi_cgibin_ub_write() argument 267 uint32_t remaining = str_length; in sapi_cgibin_ub_write() 274 return str_length - remaining; in sapi_cgibin_ub_write() 280 return str_length; in sapi_cgibin_ub_write()
|
/php-src/sapi/apache2handler/ |
H A D | sapi_apache2.c | 71 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-src/main/ |
H A D | SAPI.h | 247 size_t (*ub_write)(const char *str, size_t str_length);
|
/php-src/ext/opcache/ |
H A D | ZendAccelerator.c | 4582 static size_t preload_ub_write(const char *str, size_t str_length) argument 4584 return fwrite(str, 1, str_length, stdout); 4619 size_t (*orig_ub_write)(const char *str, size_t str_length) = sapi_module.ub_write;
|