Searched refs:str_length (Results 1 - 25 of 36) sorted by relevance

12

/PHP_5_3/ext/zlib/
H A Dzlib.c738 static int php_do_deflate(uint str_length, Bytef **p_buffer, uint *p_buffer_len, zend_bool do_start, zend_bool do_end TSRMLS_DC) argument
746 outlen = (uint) (str_length + (str_length / PHP_ZLIB_MODIFIER) + 12 + 1); /* leave some room for a trailing \0 */
784 static int php_deflate_string(const char *str, uint str_length, char **newstr, uint *new_length, zend_bool do_start, zend_bool do_end TSRMLS_DC) argument
814 ZLIBG(stream).avail_in = (uInt) str_length;
817 ZLIBG(crc) = crc32(ZLIBG(crc), (const Bytef *) str, str_length);
820 err = php_do_deflate(str_length, (Bytef **) newstr, new_length, do_start, do_end TSRMLS_CC);
/PHP_5_3/main/
H A DSAPI.h224 int (*ub_write)(const char *str, unsigned int str_length TSRMLS_DC);
H A Doutput.c35 static int php_b_body_write(const char *str, uint str_length TSRMLS_DC);
117 PHPAPI int php_body_write(const char *str, uint str_length TSRMLS_DC)
119 return OG(php_body_write)(str, str_length TSRMLS_CC);
125 PHPAPI int php_header_write(const char *str, uint str_length TSRMLS_DC)
130 return OG(php_header_write)(str, str_length TSRMLS_CC);
678 static int php_b_body_write(const char *str, uint str_length TSRMLS_DC)
680 php_ob_append(str, str_length TSRMLS_CC);
681 return str_length;
686 PHPAPI int php_ub_body_write_no_header(const char *str, uint str_length TSRMLS_DC)
694 result = OG(php_header_write)(str, str_length TSRMLS_C
[all...]
H A Dphp_output.h32 PHPAPI int php_ub_body_write(const char *str, uint str_length TSRMLS_DC);
33 PHPAPI int php_ub_body_write_no_header(const char *str, uint str_length TSRMLS_DC);
34 PHPAPI int php_body_write(const char *str, uint str_length TSRMLS_DC);
35 PHPAPI int php_header_write(const char *str, uint str_length TSRMLS_DC);
83 int (*php_body_write)(const char *str, uint str_length TSRMLS_DC); /* string output */
84 int (*php_header_write)(const char *str, uint str_length TSRMLS_DC); /* unbuffer string output */
/PHP_5_3/sapi/aolserver/
H A Daolserver.c89 php_ns_sapi_ub_write(const char *str, uint str_length TSRMLS_DC)
94 while (str_length > 0) {
95 n = Ns_ConnWrite(NSG(conn), (void *) str, str_length);
102 str_length -= n;
/PHP_5_3/sapi/apache2filter/
H A Dsapi_apache2.c67 php_apache_sapi_ub_write(const char *str, uint str_length TSRMLS_DC)
78 if (str_length == 0) return 0;
83 b = apr_bucket_transient_create(str, str_length, ba);
90 return str_length; /* we always consume all the data passed to us. */
/PHP_5_3/sapi/apache2handler/
H A Dsapi_apache2.c76 php_apache_sapi_ub_write(const char *str, uint str_length TSRMLS_DC)
84 if (ap_rwrite(str, str_length, r) < 0) {
88 return str_length; /* we always consume all the data passed to us. */
/PHP_5_3/sapi/caudium/
H A Dcaudium.c212 php_caudium_low_ub_write(const char *str, uint str_length TSRMLS_DC) {
221 to_write = make_shared_binary_string(str, str_length);
227 if(sent_bytes != str_length) {
242 php_caudium_sapi_ub_write(const char *str, uint str_length TSRMLS_DC)
248 for(sent_bytes=0;sent_bytes < str_length;)
251 written = fd_write(fd, str + sent_bytes, str_length - sent_bytes);
272 THREAD_SAFE_RUN(sent_bytes = php_caudium_low_ub_write(str, str_length TSRMLS_CC),
/PHP_5_3/sapi/cgi/
H A Dfastcgi.c764 uint str_length; local
780 while ((key_type = zend_hash_get_current_key_ex(req->env, &str_index, &str_length, &num_index, 0, &pos)) != HASH_KEY_NON_EXISTANT) {
786 if (zend_hash_find(&fcgi_mgmt_vars, str_index, str_length, (void**) &value) != SUCCESS) {
789 --str_length;
791 if ((p + 4 + 4 + str_length + zlen) >= (buf + sizeof(buf))) {
794 if (str_length < 0x80) {
795 *p++ = str_length;
797 *p++ = ((str_length >> 24) & 0xff) | 0x80;
798 *p++ = (str_length >> 16) & 0xff;
799 *p++ = (str_length >>
[all...]
H A Dcgi_main.c271 static inline size_t sapi_cgibin_single_write(const char *str, uint str_length TSRMLS_DC)
281 long ret = fcgi_write(request, FCGI_STDOUT, str, str_length);
289 ret = write(STDOUT_FILENO, str, str_length);
293 ret = fwrite(str, 1, MIN(str_length, 16384), stdout);
298 static int sapi_cgibin_ub_write(const char *str, uint str_length TSRMLS_DC)
301 uint remaining = str_length;
308 return str_length - remaining;
314 return str_length;
/PHP_5_3/sapi/continuity/
H A Dcapi.c130 static int sapi_capi_ub_write(const char *str, unsigned int str_length TSRMLS_DC)
136 retval = httpFwrite(rc->t, (char *) str, str_length);
/PHP_5_3/sapi/embed/
H A Dphp_embed.c47 static inline size_t php_embed_single_write(const char *str, uint str_length) argument
52 ret = write(STDOUT_FILENO, str, str_length);
58 ret = fwrite(str, 1, MIN(str_length, 16384), stdout);
64 static int php_embed_ub_write(const char *str, uint str_length TSRMLS_DC)
67 uint remaining = str_length;
79 return str_length;
/PHP_5_3/sapi/fpm/fpm/
H A Dfastcgi.c597 uint str_length; local
613 while ((key_type = zend_hash_get_current_key_ex(req->env, &str_index, &str_length, &num_index, 0, &pos)) != HASH_KEY_NON_EXISTANT) {
619 if (zend_hash_find(&fcgi_mgmt_vars, str_index, str_length, (void**) &value) != SUCCESS) {
622 --str_length;
624 if ((p + 4 + 4 + str_length + zlen) >= (buf + sizeof(buf))) {
627 if (str_length < 0x80) {
628 *p++ = str_length;
630 *p++ = ((str_length >> 24) & 0xff) | 0x80;
631 *p++ = (str_length >> 16) & 0xff;
632 *p++ = (str_length >>
[all...]
H A Dfpm_main.c272 static inline size_t sapi_cgibin_single_write(const char *str, uint str_length TSRMLS_DC)
279 ret = fcgi_write(request, FCGI_STDOUT, str, str_length);
288 ret = write(STDOUT_FILENO, str, str_length);
294 return fwrite(str, 1, MIN(str_length, 16384), stdout);
298 static int sapi_cgibin_ub_write(const char *str, uint str_length TSRMLS_DC)
301 uint remaining = str_length;
308 return str_length - remaining;
314 return str_length;
/PHP_5_3/sapi/phttpd/
H A Dphttpd.c56 php_phttpd_sapi_ub_write(const char *str, uint str_length TSRMLS_DC)
60 sent_bytes = fd_write(PHG(cip)->fd, str, str_length);
/PHP_5_3/sapi/pi3web/
H A Dpi3web_sapi.c123 static int zend_pi3web_ub_write(const char *str, uint str_length TSRMLS_DC)
125 DWORD num_bytes = str_length;
133 if (num_bytes != str_length)
/PHP_5_3/sapi/roxen/
H A Droxen.c214 php_roxen_low_ub_write(const char *str, uint str_length TSRMLS_DC) {
226 to_write = make_shared_binary_string(str, str_length);
232 if(sent_bytes != str_length) {
245 php_roxen_sapi_ub_write(const char *str, uint str_length TSRMLS_DC)
254 for(sent_bytes=0;sent_bytes < str_length;)
257 written = fd_write(fd, str + sent_bytes, str_length - sent_bytes);
277 THREAD_SAFE_RUN(sent_bytes = php_roxen_low_ub_write(str, str_length TSRMLS_CC),
/PHP_5_3/sapi/thttpd/
H A Dthttpd.c67 static int sapi_thttpd_ub_write(const char *str, uint str_length TSRMLS_DC)
73 smart_str_appendl_ex(&TG(sbuf), str, str_length, 1); local
74 return str_length;
77 while (str_length > 0) {
78 PHP_SYS_CALL(n = send(TG(hc)->conn_fd, str, str_length, 0););
82 smart_str_appendl_ex(&TG(sbuf), str, str_length, 1); local
84 return sent + str_length;
92 str_length -= n;
/PHP_5_3/sapi/tux/
H A Dphp_tux.c52 static int sapi_tux_ub_write(const char *str, uint str_length TSRMLS_DC)
64 vec[n++].iov_len = str_length;
71 TG(req)->bytes_sent += str_length;
74 return str_length;
77 estr = str + str_length;
92 n = str_length - (estr - str);
/PHP_5_3/sapi/webjames/
H A Dwebjames.c42 static int sapi_webjames_ub_write(const char *str, uint str_length TSRMLS_DC)
49 bytes = webjames_writebuffer(WG(conn),str,str_length);
58 str_length -= bytes;
60 } while (str_length);
/PHP_5_3/Zend/
H A Dzend_hash.c1109 ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos) argument
1124 if (str_length) {
1125 *str_length = p->nKeyLength;
1175 ZEND_API int zend_hash_update_current_key_ex(HashTable *ht, int key_type, const char *str_index, uint str_length, ulong num_index, int mode, HashPosition *pos) argument
1185 str_length = 0;
1200 if (p->nKeyLength == str_length &&
1201 memcmp(p->arKey, str_index, str_length) == 0) {
1205 h = zend_inline_hash_func(str_index, str_length);
1209 if (q->h == h && q->nKeyLength == str_length &&
1210 memcmp(q->arKey, str_index, str_length)
[all...]
H A Dzend_hash.h179 ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos);
184 ZEND_API int zend_hash_update_current_key_ex(HashTable *ht, int key_type, const char *str_index, uint str_length, ulong num_index, int mode, HashPosition *pos);
210 #define zend_hash_update_current_key(ht, key_type, str_index, str_length, num_index) \
211 zend_hash_update_current_key_ex(ht, key_type, str_index, str_length, num_index, HASH_UPDATE_KEY_ANYWAY, NULL)
H A Dzend_multibyte.h33 typedef size_t (*zend_encoding_filter)(unsigned char **str, size_t *str_length, const unsigned char *buf, size_t length TSRMLS_DC);
/PHP_5_3/sapi/cli/
H A Dphp_cli.c251 static inline size_t sapi_cli_single_write(const char *str, uint str_length TSRMLS_DC) /* {{{ */
257 ret = write(STDOUT_FILENO, str, str_length);
268 ret = fwrite(str, 1, MIN(str_length, 16384), stdout);
274 static int sapi_cli_ub_write(const char *str, uint str_length TSRMLS_DC) /* {{{ */
277 uint remaining = str_length;
281 if (!str_length) {
284 php_last_char = str[str_length-1];
/PHP_5_3/sapi/litespeed/
H A Dlsapi_main.c130 static int sapi_lsapi_ub_write(const char *str, uint str_length TSRMLS_DC)
135 ret = LSAPI_Write( str, str_length );
136 if ( ret < str_length ) {
138 return str_length - ret;
141 remain = str_length;
146 return str_length - remain;
152 return str_length;

Completed in 56 milliseconds

12