/PHP-5.3/ext/standard/ |
H A D | mail.c | 103 int to_len, message_len, headers_len = 0; in PHP_FUNCTION() local 114 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|ss", &to, &to_len, &subject, &subject_le… in PHP_FUNCTION() 121 MAIL_ASCIIZ_CHECK(to, to_len); in PHP_FUNCTION() 132 if (to_len > 0) { in PHP_FUNCTION() 133 to_r = estrndup(to, to_len); in PHP_FUNCTION() 134 for (; to_len; to_len--) { in PHP_FUNCTION() 135 if (!isspace((unsigned char) to_r[to_len - 1])) { in PHP_FUNCTION() 138 to_r[to_len - 1] = '\0'; in PHP_FUNCTION()
|
H A D | php_string.h | 138 PHPAPI int php_char_to_str_ex(char *str, uint len, char from, char *to, int to_len, zval *result, i… 139 PHPAPI int php_char_to_str(char *str, uint len, char from, char *to, int to_len, zval *result);
|
H A D | string.c | 2807 int str_len, to_len = 0; local 2810 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sZ|s", &str, &str_len, &from, &to, &to_len) … 2836 to_len)); 3320 PHPAPI int php_char_to_str_ex(char *str, uint len, char from, char *to, int to_len, zval *result, i… argument 3345 Z_STRLEN_P(result) = len + (char_count * (to_len - 1)); 3346 Z_STRVAL_P(result) = target = safe_emalloc(char_count, to_len, len + 1); 3354 memcpy(target, to, to_len); 3355 target += to_len; 3373 for (tmp = to, tmp_end = tmp+to_len; tmp < tmp_end; tmp++) { 3390 PHPAPI int php_char_to_str(char *str, uint len, char from, char *to, int to_len, zval *result) argument [all …]
|
/PHP-5.3/ext/phar/ |
H A D | stream.c | 918 uint to_len = strlen(resource_to->path+1); in phar_wrapper_rename() local 932 new_key_len = key_len + to_len - from_len; in phar_wrapper_rename() 934 memcpy(new_str_key, resource_to->path + 1, to_len); in phar_wrapper_rename() 935 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len); in phar_wrapper_rename() 964 new_key_len = key_len + to_len - from_len; in phar_wrapper_rename() 966 memcpy(new_str_key, resource_to->path + 1, to_len); in phar_wrapper_rename() 967 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len); in phar_wrapper_rename() 992 new_key_len = key_len + to_len - from_len; in phar_wrapper_rename() 994 memcpy(new_str_key, resource_to->path + 1, to_len); in phar_wrapper_rename() 995 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len); in phar_wrapper_rename()
|
/PHP-5.3/ext/gd/libgd/ |
H A D | gdkanji.c | 348 size_t from_len, to_len; in do_convert() local 363 to_len = BUFSIZ; in do_convert() 365 if ((int) iconv(cd, (char **) &from, &from_len, (char **) &to, &to_len) == -1) in do_convert()
|
/PHP-5.3/ext/pgsql/ |
H A D | pgsql.c | 4015 int to_len; local 4043 to_len = (int) PQescapeString(to, from, (size_t)from_len); 4045 RETURN_STRINGL(to, to_len, 0); 4054 size_t to_len; local 4201 size_t to_len; local 4209 tmp = (char *)PQunescapeBytea((unsigned char*)from, &to_len); 4210 to = estrndup(tmp, to_len); 4218 RETVAL_STRINGL(to, to_len, 0); 5675 size_t to_len; local 5683 Z_STRVAL_P(new_val) = emalloc(to_len); [all …]
|
/PHP-5.3/ext/mbstring/ |
H A D | mbstring.c | 3834 int to_len; in PHP_FUNCTION() local 3887 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|ss", &to, &to_len, &subject, &subject_le… in PHP_FUNCTION() 3892 MAIL_ASCIIZ_CHECK_MBSTRING(to, to_len); in PHP_FUNCTION() 3969 if (to_len > 0) { in PHP_FUNCTION() 3970 to_r = estrndup(to, to_len); in PHP_FUNCTION() 3971 for (; to_len; to_len--) { in PHP_FUNCTION() 3972 if (!isspace((unsigned char) to_r[to_len - 1])) { in PHP_FUNCTION() 3975 to_r[to_len - 1] = '\0'; in PHP_FUNCTION()
|
/PHP-5.3/ext/imap/ |
H A D | php_imap.c | 4058 …int to_len, message_len, headers_len, subject_len, cc_len, bcc_len, rpath_len, argc = ZEND_NUM_ARG… in PHP_FUNCTION() local 4060 …if (zend_parse_parameters(argc TSRMLS_CC, "sss|ssss", &to, &to_len, &subject, &subject_len, &messa… in PHP_FUNCTION() 4066 if (!to_len) { in PHP_FUNCTION()
|