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

12

/PHP_TRUNK/Zend/
H A Dzend_multibyte.h27 typedef size_t (*zend_encoding_filter)(unsigned char **str, size_t *str_length, const unsigned char *buf, size_t length TSRMLS_DC);
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);
185 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);
213 #define zend_hash_update_current_key(ht, key_type, str_index, str_length, num_index) \
214 zend_hash_update_current_key_ex(ht, key_type, str_index, str_length, num_index, HASH_UPDATE_KEY_ANYWAY, NULL)
H A Dzend_hash.c1068 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
1083 if (str_length) {
1084 *str_length = p->nKeyLength;
1152 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
1166 str_length = 0;
1182 h = zend_inline_hash_func(str_index, str_length);
1186 (p->nKeyLength == str_length &&
1188 memcmp(p->arKey, str_index, str_length) == 0)) {
1196 (q->h == h && q->nKeyLength == str_length &&
1197 memcmp(q->arKey, str_index, str_length)
[all...]
/PHP_TRUNK/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_TRUNK/sapi/apache/
H A Dmod_php5.c95 static int sapi_apache_ub_write(const char *str, uint str_length TSRMLS_DC)
100 ret = rwrite(str, str_length, (request_rec *) SG(server_context));
102 if (ret != str_length) {
/PHP_TRUNK/sapi/apache_hooks/
H A Dmod_php5.c240 static int sapi_apache_ub_write(const char *str, uint str_length TSRMLS_DC)
245 ret = rwrite(str, str_length, (request_rec *) SG(server_context));
247 if (ret != str_length) {
/PHP_TRUNK/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_TRUNK/sapi/cli/
H A Dcli.h33 extern PHP_CLI_API size_t sapi_cli_single_write(const char *str, uint str_length TSRMLS_DC);
36 size_t (*cli_shell_write)(const char *str, uint str_length TSRMLS_DC);
37 int (*cli_shell_ub_write)(const char *str, uint str_length TSRMLS_DC);
H A Dphp_cli.c255 PHP_CLI_API size_t sapi_cli_single_write(const char *str, uint str_length TSRMLS_DC) /* {{{ */
265 shell_wrote = cli_shell_callbacks.cli_shell_write(str, str_length TSRMLS_CC);
273 ret = write(STDOUT_FILENO, str, str_length);
282 ret = fwrite(str, 1, MIN(str_length, 16384), stdout);
288 static int sapi_cli_ub_write(const char *str, uint str_length TSRMLS_DC) /* {{{ */
291 uint remaining = str_length;
294 if (!str_length) {
300 ub_wrote = cli_shell_callbacks.cli_shell_ub_write(str, str_length TSRMLS_CC);
/PHP_TRUNK/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_TRUNK/sapi/fpm/fpm/
H A Dfastcgi.c598 uint str_length; local
614 while ((key_type = zend_hash_get_current_key_ex(req->env, &str_index, &str_length, &num_index, 0, &pos)) != HASH_KEY_NON_EXISTENT) {
620 if (zend_hash_find(&fcgi_mgmt_vars, str_index, str_length, (void**) &value) != SUCCESS) {
623 --str_length;
625 if ((p + 4 + 4 + str_length + zlen) >= (buf + sizeof(buf))) {
628 if (str_length < 0x80) {
629 *p++ = str_length;
631 *p++ = ((str_length >> 24) & 0xff) | 0x80;
632 *p++ = (str_length >> 16) & 0xff;
633 *p++ = (str_length >>
[all...]
H A Dfpm_main.c273 static inline size_t sapi_cgibin_single_write(const char *str, uint str_length TSRMLS_DC)
280 ret = fcgi_write(request, FCGI_STDOUT, str, str_length);
289 ret = write(STDOUT_FILENO, str, str_length);
295 return fwrite(str, 1, MIN(str_length, 16384), stdout);
299 static int sapi_cgibin_ub_write(const char *str, uint str_length TSRMLS_DC)
302 uint remaining = str_length;
309 return str_length - remaining;
315 return str_length;
/PHP_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/main/
H A DSAPI.h230 int (*ub_write)(const char *str, unsigned int str_length TSRMLS_DC);
/PHP_TRUNK/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_TRUNK/sapi/cgi/
H A Dcgi_main.c272 static inline size_t sapi_cgi_single_write(const char *str, uint str_length TSRMLS_DC)
277 ret = write(STDOUT_FILENO, str, str_length);
283 ret = fwrite(str, 1, MIN(str_length, 16384), stdout);
288 static int sapi_cgi_ub_write(const char *str, uint str_length TSRMLS_DC)
291 uint remaining = str_length;
298 return str_length - remaining;
304 return str_length;
307 static int sapi_fcgi_ub_write(const char *str, uint str_length TSRMLS_DC)
310 uint remaining = str_length;
318 return str_length
[all...]
/PHP_TRUNK/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_TRUNK/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_TRUNK/sapi/litespeed/
H A Dlsapi_main.c129 static int sapi_lsapi_ub_write(const char *str, uint str_length TSRMLS_DC)
134 ret = LSAPI_Write( str, str_length );
135 if ( ret < str_length ) {
137 return str_length - ret;
140 remain = str_length;
145 return str_length - remain;
151 return str_length;
/PHP_TRUNK/ext/readline/
H A Dreadline_cli.c82 static size_t readline_shell_write(const char *str, uint str_length TSRMLS_DC) /* {{{ */
85 smart_str_appendl(CLIR_G(prompt_str), str, str_length); local
86 return str_length;
93 return fwrite(str, 1, MIN(str_length, 16384), pager_pipe);
100 static int readline_shell_ub_write(const char *str, uint str_length TSRMLS_DC) /* {{{ */
105 php_last_char = str[str_length-1];

Completed in 64 milliseconds

12