/PHP-5.5/sapi/cli/ |
H A D | php_cli_server.c | 325 …php_cli_server_client_send_through(php_cli_server_client *client, const char *str, size_t str_len); 1815 …erver_client_send_through(php_cli_server_client *client, const char *str, size_t str_len) /* {{{ */ in php_cli_server_client_send_through() argument 1818 ssize_t nbytes_left = str_len; in php_cli_server_client_send_through() 1820 ssize_t nbytes_sent = send(client->sock, str + str_len - nbytes_left, nbytes_left, 0); in php_cli_server_client_send_through() 1844 return str_len; in php_cli_server_client_send_through()
|
/PHP-5.5/sapi/cgi/ |
H A D | fastcgi.c | 238 static inline char* fcgi_hash_strndup(fcgi_hash *h, char *str, unsigned int str_len) in fcgi_hash_strndup() argument 242 if (UNEXPECTED(h->data->pos + str_len + 1 >= h->data->end)) { in fcgi_hash_strndup() 243 unsigned int seg_size = (str_len + 1 > FCGI_HASH_SEG_SIZE) ? str_len + 1 : FCGI_HASH_SEG_SIZE; in fcgi_hash_strndup() 252 memcpy(ret, str, str_len); in fcgi_hash_strndup() 253 ret[str_len] = 0; in fcgi_hash_strndup() 254 h->data->pos += str_len + 1; in fcgi_hash_strndup()
|
/PHP-5.5/sapi/apache2filter/ |
H A D | apache_config.c | 127 uint str_len; in merge_php_config() local 135 zend_hash_get_current_key_ex(&d->config, &str, &str_len, in merge_php_config() 140 if (zend_hash_find(&n->config, str, str_len, (void **) &pe) == SUCCESS) { in merge_php_config() 143 zend_hash_update(&n->config, str, str_len, data, sizeof(*data), NULL); in merge_php_config() 166 uint str_len; in apply_config() local 170 zend_hash_get_current_key_ex(&d->config, &str, &str_len, NULL, 0, in apply_config() 175 …if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, data->status, data->htaccess?… in apply_config()
|
/PHP-5.5/sapi/apache2handler/ |
H A D | apache_config.c | 145 uint str_len; in merge_php_config() local 157 zend_hash_get_current_key_ex(&d->config, &str, &str_len, in merge_php_config() 162 if (zend_hash_find(&n->config, str, str_len, (void **) &pe) == SUCCESS) { in merge_php_config() 166 zend_hash_update(&n->config, str, str_len, data, sizeof(*data), NULL); in merge_php_config() 188 uint str_len; in apply_config() local 192 zend_hash_get_current_key_ex(&d->config, &str, &str_len, NULL, 0, in apply_config() 197 …if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, data->status, data->htaccess?… in apply_config()
|
H A D | sapi_apache2.c | 519 uint str_len; in php_apache_ini_dtor() local 523 zend_hash_get_current_key_ex(&c->config, &str, &str_len, NULL, 0, NULL) == HASH_KEY_IS_STRING; in php_apache_ini_dtor() 526 zend_restore_ini_entry(str, str_len, ZEND_INI_STAGE_SHUTDOWN); in php_apache_ini_dtor()
|
/PHP-5.5/main/streams/ |
H A D | xp_socket.c | 524 static inline char *parse_ip_address_ex(const char *str, int str_len, int *portno, int get_err, cha… in parse_ip_address_ex() argument 532 if (*(str) == '[' && str_len > 1) { in parse_ip_address_ex() 534 p = memchr(str + 1, ']', str_len - 2); in parse_ip_address_ex() 545 if (str_len) { in parse_ip_address_ex() 546 colon = memchr(str, ':', str_len - 1); in parse_ip_address_ex()
|
/PHP-5.5/main/ |
H A D | php_ini.c | 790 uint str_len; in php_ini_activate_config() local 795 …zend_hash_get_current_key_ex(source_hash, &str, &str_len, &num_index, 0, NULL) == HASH_KEY_IS_STRI… in php_ini_activate_config() 799 …zend_alter_ini_entry_ex(str, str_len, Z_STRVAL_P(data), Z_STRLEN_P(data), modify_type, stage, 0 TS… in php_ini_activate_config()
|
H A D | php_output.h | 163 #define PHPWRITE(str, str_len) php_output_write((str), (str_len) TSRMLS_CC) argument 164 #define PHPWRITE_H(str, str_len) php_output_write_unbuffered((str), (str_len) TSRMLS_CC) argument
|
H A D | php_variables.c | 42 PHPAPI void php_register_variable_safe(char *var, char *strval, int str_len, zval *track_vars_array… in php_register_variable_safe() argument 48 Z_STRLEN(new_entry) = str_len; in php_register_variable_safe()
|
H A D | output.c | 89 static int php_output_stdout(const char *str, size_t str_len) in php_output_stdout() argument 91 fwrite(str, 1, str_len, stdout); in php_output_stdout() 92 return str_len; in php_output_stdout() 94 static int php_output_stderr(const char *str, size_t str_len) in php_output_stderr() argument 96 fwrite(str, 1, str_len, stderr); in php_output_stderr() 101 return str_len; in php_output_stderr() 103 static int (*php_output_direct)(const char *str, size_t str_len) = php_output_stderr;
|
/PHP-5.5/ext/xsl/ |
H A D | xsltprocessor.c | 113 int str_len; in php_xsl_xslt_string_to_xpathexpr() local 115 str_len = xmlStrlen(string) + 3; in php_xsl_xslt_string_to_xpathexpr() 122 value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0); in php_xsl_xslt_string_to_xpathexpr() 123 snprintf(value, str_len, "'%s'", string); in php_xsl_xslt_string_to_xpathexpr() 125 value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0); in php_xsl_xslt_string_to_xpathexpr() 126 snprintf(value, str_len, "\"%s\"", string); in php_xsl_xslt_string_to_xpathexpr()
|
/PHP-5.5/ext/standard/ |
H A D | url.c | 377 int str_len; in PHP_FUNCTION() local 381 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, &key) == FAILURE) { in PHP_FUNCTION() 385 resource = php_url_parse_ex(str, str_len); in PHP_FUNCTION()
|
H A D | string.c | 1150 int str_len; in php_implode() local 1543 int str_len; local 2211 int str_len; local 2252 int str_len; local 2266 l = str_len; 2716 int str_len; local 3197 int str_len; local 4087 int str_len; local 4356 int str_len; local 5551 RETURN_STRINGL(erealloc(str, str_len + 1), str_len, 0); [all …]
|
H A D | streamsfuncs.c | 1319 int str_len = 0; in PHP_FUNCTION() local 1326 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|s", &zstream, &max_length, &str, &str_len… in PHP_FUNCTION() 1340 if ((buf = php_stream_get_record(stream, max_length, &buf_size, str, str_len TSRMLS_CC))) { in PHP_FUNCTION()
|
H A D | quot_print.c | 266 int str_len; in PHP_FUNCTION() local 269 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) != SUCCESS) { in PHP_FUNCTION() 273 if (!str_len) { in PHP_FUNCTION() 277 new_str = (char *)php_quot_print_encode((unsigned char *)str, (size_t)str_len, &new_str_len); in PHP_FUNCTION()
|
H A D | soundex.c | 32 int i, _small, str_len, code, last; in PHP_FUNCTION() local 63 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { in PHP_FUNCTION() 66 if (str_len == 0) { in PHP_FUNCTION() 72 for (i = 0, _small = 0; i < str_len && _small < 4; i++) { in PHP_FUNCTION()
|
H A D | php_string.h | 132 …int needle_len, char *str, int str_len, int *_new_length, int case_sensitivity, int *replace_count… 134 int needle_len, char *str, int str_len, int *_new_length);
|
H A D | password.c | 82 static int php_password_salt_to64(const char *str, const size_t str_len, const size_t out_len, char… in php_password_salt_to64() argument 87 if ((int) str_len < 0) { in php_password_salt_to64() 90 buffer = php_base64_encode((unsigned char*) str, (int) str_len, (int*) &ret_len); in php_password_salt_to64()
|
H A D | info.h | 66 PHPAPI void php_info_html_esc_write(char *string, int str_len TSRMLS_DC);
|
H A D | iptc.c | 317 int str_len; in PHP_FUNCTION() local 320 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) != SUCCESS) { in PHP_FUNCTION() 326 while (inx < str_len) { /* find 1st tag */ in PHP_FUNCTION() 334 while (inx < str_len) { in PHP_FUNCTION() 339 if ((inx + 4) >= str_len) in PHP_FUNCTION() 346 if((inx+6) >= str_len) { in PHP_FUNCTION() 357 if ((len < 0) || (len > str_len) || (inx + len) > str_len) { in PHP_FUNCTION()
|
H A D | mail.c | 83 int j, str_len; in PHP_FUNCTION() local 85 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { in PHP_FUNCTION() 89 for (j = 0; j < str_len; j++) { in PHP_FUNCTION()
|
H A D | metaphone.c | 36 int str_len; in PHP_FUNCTION() local 39 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, in PHP_FUNCTION() 44 if (metaphone((unsigned char *)str, str_len, phones, &result, 1) == 0) { in PHP_FUNCTION()
|
H A D | html.c | 72 #define CHECK_LEN(pos, chars_need) ((str_len - (pos)) >= (chars_need)) 92 size_t str_len, in get_next_char() argument 100 assert(pos <= str_len); in get_next_char() 132 size_t avail = str_len - pos; in get_next_char() 152 size_t avail = str_len - pos; in get_next_char() 314 size_t avail = str_len - pos; in get_next_char() 353 size_t str_len, in php_next_utf8_char() argument 357 return get_next_char(cs_utf_8, str, str_len, cursor, status); in php_next_utf8_char() 1441 int str_len, hint_charset_len = 0; in php_html_entities() local 1491 int str_len; in PHP_FUNCTION() local [all …]
|
H A D | html.h | 60 PHPAPI unsigned int php_next_utf8_char(const unsigned char *str, size_t str_len, size_t *cursor, in…
|
/PHP-5.5/ext/standard/tests/filters/ |
H A D | bug22538.phpt | 20 $str_len = strlen($str); 22 while (($cnt -= $str_len) > 0) { 25 $cnt = $size - ($str_len + $cnt);
|