/PHP-5.4/ext/standard/tests/strings/ |
H A D | bug54055.phpt | 10 495: len=502 11 496: len=503 12 497: len=504 13 498: len=505 14 499: len=506 15 500: len=507 16 501: len=507 17 502: len=507 18 503: len=507 19 504: len=507 [all …]
|
H A D | substr_replace.phpt | 15 $len = 3; 20 $len = 0; 25 $len = -2; 36 $len = 3; 81 $len = 3; 92 $len = 3; 102 $len = 3; 111 $len = 0; 121 $len = 0; 155 $len = 3; [all …]
|
H A D | strspn_variation4.phpt | 115 -- Iteration with len value as "0.5" -- 143 -- Iteration with len value as "" -- 146 -- Iteration with len value as "" -- 149 -- Iteration with len value as "1" -- 152 -- Iteration with len value as "" -- 155 -- Iteration with len value as "1" -- 158 -- Iteration with len value as "" -- 161 -- Iteration with len value as "" -- 166 -- Iteration with len value as "" -- 186 -- Iteration with len value as "" -- [all …]
|
H A D | strcspn_variation4.phpt | 115 -- Iteration with len value as "0.5" -- 143 -- Iteration with len value as "" -- 146 -- Iteration with len value as "" -- 149 -- Iteration with len value as "1" -- 152 -- Iteration with len value as "" -- 155 -- Iteration with len value as "1" -- 158 -- Iteration with len value as "" -- 161 -- Iteration with len value as "" -- 166 -- Iteration with len value as "" -- 186 -- Iteration with len value as "" -- [all …]
|
/PHP-5.4/tests/output/ |
H A D | ob_start_basic_004.phpt | 14 return "f[call:$callback_invocations; len:$len]$string\n"; 43 f[call:1; len:1]1 44 f[call:2; len:1]2 45 f[call:3; len:1]3 46 f[call:4; len:1]4 47 f[call:5; len:1]5 48 f[call:6; len:1]6 51 f[call:9; len:0] 58 f[call:5; len:0] 68 f[call:3; len:0] [all …]
|
/PHP-5.4/sapi/fpm/fpm/ |
H A D | zlog.c | 70 size_t len; in zlog_print_time() local 74 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); in zlog_print_time() 76 len += snprintf(timebuf + len, timebuf_len - len, "] "); in zlog_print_time() 77 return len; in zlog_print_time() 107 size_t len = 0; in zlog_ex() local 120 len = 0; in zlog_ex() 131 len = 0; in zlog_ex() 151 len += snprintf(buf + len, buf_size - len, "%s: ", level_names[flags & ZLOG_LEVEL_MASK]); in zlog_ex() 161 len += vsnprintf(buf + len, buf_size - len, fmt, args); in zlog_ex() 170 len += snprintf(buf + len, buf_size - len, ": %s (%d)", strerror(saved_errno), saved_errno); in zlog_ex() [all …]
|
H A D | fpm_log.c | 103 size_t len, len2; in fpm_log_write() local 145 len = 0; in fpm_log_write() 152 if (len >= FPM_LOG_BUFFER) { in fpm_log_write() 154 len = FPM_LOG_BUFFER; in fpm_log_write() 235 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", env ? env : "-"); in fpm_log_write() 262 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%zu", proc.memory); in fpm_log_write() 395 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", tmp); in fpm_log_write() 447 len += len2; in fpm_log_write() 456 len++; in fpm_log_write() 462 buffer[len] = '\n'; in fpm_log_write() [all …]
|
/PHP-5.4/ext/zip/lib/ |
H A D | zip_source_zip.c | 45 zip_int64_t len; member 77 if (len == 0) in zip_source_zip() 78 len = -1; in zip_source_zip() 101 p->len = len; in zip_source_zip() 143 if (z->len != -1) in read_zip() 144 n = len > z->len ? z->len : len; in read_zip() 146 n = len; in read_zip() 152 if (z->len != -1) in read_zip() 153 z->len -= i; in read_zip() 163 len = sizeof(z->st); in read_zip() [all …]
|
H A D | zip_set_archive_comment.c | 43 zip_set_archive_comment(struct zip *za, const char *comment, int len) in zip_set_archive_comment() argument 47 if (len < 0 || len > MAXCOMLEN in zip_set_archive_comment() 48 || (len > 0 && comment == NULL)) { in zip_set_archive_comment() 58 if (len > 0) { in zip_set_archive_comment() 59 if ((tmpcom=(char *)_zip_memdup(comment, len, &za->error)) == NULL) in zip_set_archive_comment() 67 za->ch_comment_len = len; in zip_set_archive_comment()
|
H A D | zip_source_filep.c | 51 zip_int64_t len; /* length of data to copy */ member 63 zip_int64_t len) in zip_source_filep() argument 68 if (file == NULL || start < 0 || len < -1) { in zip_source_filep() 106 f->len = (len ? len : -1); in _zip_source_file_or_p() 150 z->remain = z->len; in read_file() 156 n = len > z->remain ? z->remain : len; in read_file() 158 n = len; in read_file() 190 if (len < sizeof(z->st)) in read_file() 216 if (z->len != -1) { in read_file() 217 st->size = z->len; in read_file() [all …]
|
H A D | zip_set_file_comment.c | 44 const char *comment, int len) in zip_set_file_comment() argument 49 || len < 0 || len > MAXCOMLEN in zip_set_file_comment() 50 || (len > 0 && comment == NULL)) { in zip_set_file_comment() 60 if (len > 0) { in zip_set_file_comment() 61 if ((tmpcom=(char *)_zip_memdup(comment, len, &za->error)) == NULL) in zip_set_file_comment() 69 za->entry[idx].ch_comment_len = len; in zip_set_file_comment()
|
H A D | zip_set_file_extra.c | 44 const char *extra, int len) in zip_set_file_extra() argument 49 || len < 0 || len > MAXEXTLEN in zip_set_file_extra() 50 || (len > 0 && extra == NULL)) { in zip_set_file_extra() 60 if (len > 0) { in zip_set_file_extra() 61 if ((tmpext=(char *)_zip_memdup(extra, len, &za->error)) == NULL) in zip_set_file_extra() 69 za->entry[idx].ch_extra_len = len; in zip_set_file_extra()
|
H A D | zip_add_dir.c | 48 int len; in zip_add_dir() local 64 len = strlen(name); in zip_add_dir() 66 if (name[len-1] != '/') { in zip_add_dir() 67 if ((s=(char *)malloc(len+2)) == NULL) { in zip_add_dir() 72 s[len] = '/'; in zip_add_dir() 73 s[len+1] = '\0'; in zip_add_dir()
|
/PHP-5.4/ext/filter/ |
H A D | filter_private.h | 102 #define PHP_FILTER_TRIM_DEFAULT(p, len) PHP_FILTER_TRIM_DEFAULT_EX(p, len, 1); argument 104 #define PHP_FILTER_TRIM_DEFAULT_EX(p, len, return_if_empty) { \ argument 105 while ((len > 0) && (*p == ' ' || *p == '\t' || *p == '\r' || *p == '\v' || *p == '\n')) { \ 107 len--; \ 109 if (len < 1 && return_if_empty) { \ 112 if (len > 0) { \ 113 …while (p[len-1] == ' ' || p[len-1] == '\t' || p[len-1] == '\r' || p[len-1] == '\v' || p[len-1] == … 114 len--; \
|
/PHP-5.4/ext/standard/ |
H A D | uuencode.c | 70 int len = 45; in php_uuencode() local 79 ee = s + len; in php_uuencode() 82 len = ee - s; in php_uuencode() 83 if (len % 3) { in php_uuencode() 98 if (len == 45) { in php_uuencode() 106 len = 0; in php_uuencode() 115 if (len < 45) { in php_uuencode() 147 ee = s + (len == 45 ? 60 : (int) floor(len * 1.33)); in php_uudecode() 163 if (len < 45) { in php_uudecode() 173 if (len > 1) { in php_uudecode() [all …]
|
/PHP-5.4/ext/dba/libcdb/ |
H A D | cdb.c | 51 while (len > 0) { in cdb_match() 53 if (n > len) in cdb_match() 54 n = len; in cdb_match() 61 len -= n; in cdb_match() 74 while (len--) { in cdb_hash() 110 while (len > 0) { in cdb_read() 113 r = php_stream_read(c->fp, buf, len); in cdb_read() 122 len -= r; in cdb_read() 136 u = cdb_hash(key, len); in cdb_findnext() 165 if (u == len) in cdb_findnext() [all …]
|
/PHP-5.4/ext/mbstring/oniguruma/ |
H A D | regerror.c | 189 int len; in to_ascii() local 195 len = 0; in to_ascii() 202 len += 5; in to_ascii() 224 return len; in to_ascii() 243 int len, is_over; local 267 p += len; 283 len = p - s; 289 xmemcpy(s, q, len); 290 s[len] = '\0'; 295 return len; [all …]
|
/PHP-5.4/ext/filter/tests/ |
H A D | 048.phpt | 8 $len = strlen($s); 9 while ($len > 0) { 10 $len--; 11 if ($s[$len] != 'f') { 12 if ($s[$len] == '9') { 13 $s[$len] = 'a'; 15 $s[$len] = $s[$len] + 1; 19 $s[$len] = '0';
|
H A D | 047.phpt | 8 $len = strlen($s); 9 while ($len > 0) { 10 $len--; 11 if ($s[$len] != '7') { 12 $s[$len] = $s[$len] + 1; 15 $s[$len] = '0';
|
/PHP-5.4/ext/mysqlnd/ |
H A D | mysqlnd_bt.c | 32 (*str)[(*len)++] = chr 86 int *len; in mysqlnd_build_trace_args() local 89 len = va_arg(args, int*); in mysqlnd_build_trace_args() 220 int *len, *num; in mysqlnd_build_trace_string() local 259 int last_len = *len; in mysqlnd_build_trace_string() 261 if (last_len != *len) { in mysqlnd_build_trace_string() 277 (*str)[(*len)++] = chr 301 int *len; in mysqlnd_build_trace_args() local 397 int *len, *num; in mysqlnd_build_trace_string() local 435 int last_len = *len; in mysqlnd_build_trace_string() [all …]
|
/PHP-5.4/ext/mbstring/oniguruma/enc/ |
H A D | euc_jp.c | 62 int c, i, len; in eucjp_mbc_to_code() local 65 len = enc_len(ONIG_ENCODING_EUC_JP, p); in eucjp_mbc_to_code() 67 if (len == 1) return n; in eucjp_mbc_to_code() 69 for (i = 1; i < len; i++) { in eucjp_mbc_to_code() 125 int len; in eucjp_mbc_to_normalize() local 143 for (i = 0; i < len; i++) { in eucjp_mbc_to_normalize() 147 (*pp) += len; in eucjp_mbc_to_normalize() 180 int len; in eucjp_left_adjust_char_head() local 186 len = enc_len(ONIG_ENCODING_EUC_JP, p); in eucjp_left_adjust_char_head() 187 if (p + len > s) return (UChar* )p; in eucjp_left_adjust_char_head() [all …]
|
H A D | sjis.c | 98 int c, i, len; in sjis_mbc_to_code() local 101 len = enc_len(ONIG_ENCODING_SJIS, p); in sjis_mbc_to_code() 104 if (len == 1) return n; in sjis_mbc_to_code() 106 for (i = 1; i < len; i++) { in sjis_mbc_to_code() 147 int len = enc_len(ONIG_ENCODING_SJIS, p); in sjis_mbc_to_normalize() local 151 for (i = 0; i < len; i++) { in sjis_mbc_to_normalize() 155 (*pp) += len; in sjis_mbc_to_normalize() 186 int len; in sjis_left_adjust_char_head() local 199 len = enc_len(ONIG_ENCODING_SJIS, p); in sjis_left_adjust_char_head() 200 if (p + len > s) return (UChar* )p; in sjis_left_adjust_char_head() [all …]
|
/PHP-5.4/ext/xmlrpc/libxmlrpc/ |
H A D | simplestring.c | 117 string->len = 0; in simplestring_init_str() 146 string->len = 0; in simplestring_clear() 170 string->len = 0; in simplestring_free() 198 if(target->len + add_len + 1 > target->size) { in simplestring_addn() 200 int newsize = target->len + add_len + 1; in simplestring_addn() 212 memcpy(target->str + target->len, source, add_len); in simplestring_addn() 214 target->len += add_len; in simplestring_addn() 215 target->str[target->len] = 0; /* null terminate */ in simplestring_addn()
|
/PHP-5.4/ext/pdo_dblib/ |
H A D | dblib_stmt.c | 216 unsigned long *len, int *caller_frees TSRMLS_DC) in pdo_dblib_stmt_get_col() argument 228 *len = dbdatlen(H->link, colno+1); in pdo_dblib_stmt_get_col() 231 if (*len == 0 && *ptr == NULL) { in pdo_dblib_stmt_get_col() 243 tmp_ptr = emalloc(*len + 1); in pdo_dblib_stmt_get_col() 244 memcpy(tmp_ptr, *ptr, *len); in pdo_dblib_stmt_get_col() 245 tmp_ptr[*len] = '\0'; in pdo_dblib_stmt_get_col() 258 *len = 36+1; in pdo_dblib_stmt_get_col() 259 tmp_ptr = emalloc(*len + 1); in pdo_dblib_stmt_get_col() 262 *len = dbconvert(NULL, SQLUNIQUE, *ptr, *len, SQLCHAR, tmp_ptr, *len); in pdo_dblib_stmt_get_col() 263 php_strtoupper(tmp_ptr, *len); in pdo_dblib_stmt_get_col() [all …]
|
/PHP-5.4/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 181 int len; in odbc_stmt_execute() local 233 if (len == 0) { in odbc_stmt_execute() 362 P->len *= 2; in odbc_stmt_param_hook() 378 P->len, in odbc_stmt_param_hook() 379 &P->len in odbc_stmt_param_hook() 421 P->len += len; in odbc_stmt_param_hook() 686 *len = used; in odbc_stmt_get_col() 695 *len = 0; in odbc_stmt_get_col() 704 *len = 0; in odbc_stmt_get_col() 717 *len = 0; in odbc_stmt_get_col() [all …]
|