/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_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()
|
/PHP-5.5/ext/soap/ |
H A D | php_encoding.c | 794 int str_len; in to_zval_base64() local 805 ZVAL_STRINGL(ret, str, str_len, 0); in to_zval_base64() 811 ZVAL_STRINGL(ret, str, str_len, 0); in to_zval_base64() 825 int str_len, i, j; in to_zval_hexbin() local 838 str = emalloc(str_len+1); in to_zval_hexbin() 839 for (i = j = 0; i < str_len; i++) { in to_zval_hexbin() 861 str[str_len] = '\0'; in to_zval_hexbin() 862 ZVAL_STRINGL(ret, (char*)str, str_len, 0); in to_zval_hexbin() 961 int str_len; in to_xml_base64() local 969 text = xmlNewTextLen(str, str_len); in to_xml_base64() [all …]
|
/PHP-5.5/ext/iconv/ |
H A D | iconv.c | 1993 int str_len; in PHP_FUNCTION() local 2000 &str, &str_len, &charset, &charset_len) == FAILURE) { in PHP_FUNCTION() 2009 err = _php_iconv_strlen(&retval, str, str_len, charset); in PHP_FUNCTION() 2026 int str_len; in PHP_FUNCTION() local 2034 &str, &str_len, &offset, &length, in PHP_FUNCTION() 2045 length = str_len; in PHP_FUNCTION() 2048 err = _php_iconv_substr(&retval, str, str_len, offset, length, charset); in PHP_FUNCTION()
|
/PHP-5.5/Zend/ |
H A D | zend_execute_API.c | 1139 ZEND_API int zend_eval_stringl(char *str, int str_len, zval *retval_ptr, char *string_name TSRMLS_D… in zend_eval_stringl() argument 1148 Z_STRLEN(pv) = str_len + sizeof("return ;") - 1; in zend_eval_stringl() 1151 memcpy(Z_STRVAL(pv) + sizeof("return ") - 1, str, str_len); in zend_eval_stringl() 1155 Z_STRLEN(pv) = str_len; in zend_eval_stringl() 1225 ZEND_API int zend_eval_stringl_ex(char *str, int str_len, zval *retval_ptr, char *string_name, int … in zend_eval_stringl_ex() argument 1229 result = zend_eval_stringl(str, str_len, retval_ptr, string_name TSRMLS_CC); in zend_eval_stringl_ex()
|
H A D | zend_operators.h | 375 ZEND_API int zend_atoi(const char *str, int str_len); 376 ZEND_API long zend_atol(const char *str, int str_len);
|
/PHP-5.5/ext/hash/ |
H A D | hash.c | 599 uint str_len; in PHP_FUNCTION() local 605 …(type = zend_hash_get_current_key_ex(&php_hash_hashtable, &str, &str_len, &idx, 0, &pos)) != HASH_… in PHP_FUNCTION() 607 add_next_index_stringl(return_value, str, str_len-1, 1); in PHP_FUNCTION()
|
/PHP-5.5/ext/sockets/ |
H A D | sockets.c | 1089 int retval, str_len; local 1093 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|l", &arg1, &str, &str_len, &length) == FA… 1100 length = str_len; 1104 retval = write(php_sock->bsd_socket, str, MIN(length, str_len)); 1106 retval = send(php_sock->bsd_socket, str, min(length, str_len), 0);
|
/PHP-5.5/ext/gd/ |
H A D | gd.c | 3807 int str_len, fontname_len, i, brect[8]; in php_imagettftext_common() local 3817 …c TSRMLS_CC, "ddss|a", &ptsize, &angle, &fontname, &fontname_len, &str, &str_len, &EXT) == FAILURE… in php_imagettftext_common() 3823 …a", &IM, &ptsize, &angle, &x, &y, &col, &fontname, &fontname_len, &str, &str_len, &EXT) == FAILURE… in php_imagettftext_common() 4130 int str_len; in PHP_FUNCTION() local 4132 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsrlllll|lldl", &img, &str, &str_len, &fnt, … in PHP_FUNCTION() 4204 for (i = 1; i < str_len; i++) { in PHP_FUNCTION() 4217 str_img = T1_AASetString(*f_ind, str, str_len, space, T1_KERNING, size, transform); in PHP_FUNCTION() 4260 int str_len, per_char = 0; in PHP_FUNCTION() local 4269 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "srl|lld", &str, &str_len, &fnt, &sz, &sp, &w… in PHP_FUNCTION() 4293 for (i = 0; i < str_len; i++) { in PHP_FUNCTION() [all …]
|
/PHP-5.5/ext/standard/ |
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 | basic_functions.c | 4021 int str_len; in PHP_FUNCTION() local 4024 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &str, &str_len, &local_only) == FAILUR… in PHP_FUNCTION() 4030 ptr = sapi_getenv(str, str_len TSRMLS_CC); in PHP_FUNCTION() 6021 int str_len = 0; local 6026 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|bl", &str, &str_len, &process_sections, &s… 6030 if (INT_MAX - str_len < ZEND_MMAP_AHEAD) { 6043 string = (char *) emalloc(str_len + ZEND_MMAP_AHEAD); 6044 memcpy(string, str, str_len); 6045 memset(string + str_len, 0, ZEND_MMAP_AHEAD);
|
/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/ext/spl/ |
H A D | spl_iterators.c | 1127 size_t str_len; in SPL_METHOD() local 1156 str_len = Z_STRLEN(prefix) + Z_STRLEN(entry) + Z_STRLEN(postfix); in SPL_METHOD() 1157 str = (char *) emalloc(str_len + 1U); in SPL_METHOD() 1172 RETURN_STRINGL(str, str_len, 0); in SPL_METHOD() 1183 size_t str_len; in SPL_METHOD() local 1213 str_len = Z_STRLEN(prefix) + Z_STRLEN(key) + Z_STRLEN(postfix); in SPL_METHOD() 1214 str = (char *) emalloc(str_len + 1U); in SPL_METHOD() 1229 RETVAL_STRINGL(str, str_len, 0); in SPL_METHOD()
|
H A D | spl_directory.c | 2845 int str_len; in SPL_METHOD() local 2848 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, &length) == FAILURE) { in SPL_METHOD() 2853 str_len = MAX(0, MIN(length, str_len)); in SPL_METHOD() 2855 if (!str_len) { in SPL_METHOD() 2859 RETURN_LONG(php_stream_write(intern->u.file.stream, str, str_len)); in SPL_METHOD()
|
/PHP-5.5/ext/mbstring/oniguruma/ |
H A D | regcomp.c | 315 select_str_opcode(int mb_len, int str_len, int ignore_case) in select_str_opcode() argument 320 switch (str_len) { in select_str_opcode() 328 switch (str_len) { in select_str_opcode() 339 switch (str_len) { in select_str_opcode() 423 int op = select_str_opcode(mb_len, str_len, ignore_case); in add_compile_string_length() 431 len += mb_len * str_len; in add_compile_string_length() 436 add_compile_string(UChar* s, int mb_len, int str_len, in add_compile_string() argument 439 int op = select_str_opcode(mb_len, str_len, ignore_case); in add_compile_string() 447 add_length(reg, mb_len * str_len); in add_compile_string() 449 add_length(reg, str_len); in add_compile_string() [all …]
|
H A D | regexec.c | 350 #define STATE_CHECK_BUFF_INIT(msa, str_len, offset, state_num) do { \ argument 351 if ((state_num) > 0 && str_len >= STATE_CHECK_STRING_THRESHOLD_LEN) {\ 352 unsigned int size = (unsigned int )(((str_len) + 1) * (state_num) + 7) >> 3;\ 381 #define STATE_CHECK_BUFF_INIT(msa, str_len, offset, state_num) argument
|
/PHP-5.5/ext/pdo/ |
H A D | pdo_dbh.c | 1167 int str_len; in PHP_METHOD() local 1172 …if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, ¶mtype)… in PHP_METHOD() 1183 if (dbh->methods->quoter(dbh, str, str_len, &qstr, &qlen, paramtype TSRMLS_CC)) { in PHP_METHOD()
|
/PHP-5.5/ext/imap/ |
H A D | php_imap.c | 2642 int str_len, defaulthost_len; in PHP_FUNCTION() local 2646 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &str, &str_len, &defaulthost, &defaulth… in PHP_FUNCTION() 2653 str_copy = estrndup(str, str_len); in PHP_FUNCTION() 2688 int str_len; in PHP_FUNCTION() local 2691 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { in PHP_FUNCTION() 2700 cpytxt(&src, str, str_len); in PHP_FUNCTION() 4217 int str_len; in PHP_FUNCTION() local 4221 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { in PHP_FUNCTION() 4228 end = str_len; in PHP_FUNCTION()
|
/PHP-5.5/ext/session/ |
H A D | session.c | 2050 int str_len; 2056 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { 2060 RETVAL_BOOL(php_session_decode(str, str_len TSRMLS_CC) == SUCCESS);
|
/PHP-5.5/ext/pgsql/ |
H A D | pgsql.c | 3403 int str_len, nbytes; local 3408 if (zend_parse_parameters(argc TSRMLS_CC, "rs|l", &pgsql_id, &str, &str_len, &z_len) == FAILURE) { 3413 if (z_len > str_len) { 3414 …TSRMLS_CC, E_WARNING, "Cannot write more than buffer size %d. Tried to write %ld", str_len, z_len); 3424 len = str_len; 5333 static int php_pgsql_convert_match(const char *str, size_t str_len, const char *regex , int icase T… argument 5342 for (i = 0; i < str_len; i++) {
|
/PHP-5.5/ext/ldap/ |
H A D | ldap.c | 1475 static int _ldap_str_equal_to_const(const char *str, uint str_len, const char *cstr) in _ldap_str_equal_to_const() argument 1479 if (strlen(cstr) != str_len) in _ldap_str_equal_to_const() 1482 for (i = 0; i < str_len; ++i) { in _ldap_str_equal_to_const()
|