/PHP-5.5/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 …]
|
/PHP-5.5/ext/standard/ |
H A D | php_string.h | 121 PHPAPI char *php_strtoupper(char *s, size_t len); 122 PHPAPI char *php_strtolower(char *s, size_t len); 123 PHPAPI char *php_strtr(char *str, int len, char *str_from, char *str_to, int trlen); 126 PHPAPI void php_stripslashes(char *str, int *len TSRMLS_DC); 127 PHPAPI void php_stripcslashes(char *str, int *len); 129 PHPAPI size_t php_dirname(char *str, size_t len); 136 PHPAPI size_t php_strip_tags(char *rbuf, int len, int *state, char *allow, int allow_len); 139 PHPAPI int php_char_to_str(char *str, uint len, char from, char *to, int to_len, zval *result); 156 # define php_mblen(ptr, len) 1 argument 159 # define php_mblen(ptr, len) ((ptr) == NULL ? memset(&BG(mblen_state), 0, sizeof(BG(mblen_state)))… argument [all …]
|
H A D | pack.c | 690 len = size; in PHP_FUNCTION() 693 size = len; in PHP_FUNCTION() 705 len = size; in PHP_FUNCTION() 708 size = len; in PHP_FUNCTION() 711 while (--len >= 0) { in PHP_FUNCTION() 733 len = size; in PHP_FUNCTION() 736 size = len; in PHP_FUNCTION() 743 len = s; in PHP_FUNCTION() 760 len = size * 2; in PHP_FUNCTION() 764 len -= argb % 2; in PHP_FUNCTION() [all …]
|
H A D | php_smart_str.h | 33 (x)->c[(x)->len] = '\0'; \ 56 (d)->len = 0; \ 63 newlen = (d)->len + (n); \ 88 #define smart_str_appendl(dest, src, len) \ argument 89 smart_str_appendl_ex((dest), (src), (len), 0) 102 (dest)->len = __nl; \ 112 __s->a = __s->len = 0; \ 120 memcpy(__dest->c + __dest->len, (src), (nlen)); \ 121 __dest->len = __nl; \ 186 ((smart_str *)(src))->len, (what)); [all …]
|
/PHP-5.5/ext/iconv/tests/ |
H A D | iconv_substr.phpt | 10 $len = strlen($str); 11 for ($i = 0; $i < $len; ++$i) { 17 function foo($str, $offset, $len, $charset) { 18 hexdump(substr($str, $offset, $len)); 19 hexdump(iconv_substr($str, $offset, $len, $charset)); 22 function bar($str, $offset, $len = false) { 23 if (is_bool($len)) { 27 var_dump(substr($str, $offset, $len)); 28 var_dump(iconv_substr($str, $offset, $len));
|
/PHP-5.5/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfl_memory_device.c | 128 result->len = 0; in mbfl_memory_device_result() 216 int len; in mbfl_memory_device_strcat() local 220 len = 0; in mbfl_memory_device_strcat() 224 len++; in mbfl_memory_device_strcat() 240 device->pos += len; in mbfl_memory_device_strcat() 241 while (len > 0) { in mbfl_memory_device_strcat() 243 len--; in mbfl_memory_device_strcat() 246 return len; in mbfl_memory_device_strcat() 267 while (len > 0) { in mbfl_memory_device_strncat() 269 len--; in mbfl_memory_device_strncat() [all …]
|
/PHP-5.5/ext/dba/ |
H A D | dba_cdb.c | 140 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos TSRMLS_CC) argument 141 # define php_cdb_findnext(cdb, key, len) cdb_findnext(cdb, key, len TSRMLS_CC) argument 142 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len TSRMLS_CC) argument 144 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos) argument 145 # define php_cdb_findnext(cdb, key, len) cdb_findnext(cdb, key, len) argument 146 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len) argument 152 unsigned int len; in DBA_FETCH_FUNC() local 165 len = cdb_datalen(&cdb->c); in DBA_FETCH_FUNC() 166 new_entry = safe_emalloc(len, 1, 1); in DBA_FETCH_FUNC() 172 new_entry[len] = 0; in DBA_FETCH_FUNC() [all …]
|
/PHP-5.5/ext/zip/lib/ |
H A D | zip_filerange_crc.c | 45 _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp, in _zip_filerange_crc() argument 58 while (len > 0) { in _zip_filerange_crc() 59 n = len > BUFSIZE ? BUFSIZE : len; in _zip_filerange_crc() 67 len-= n; in _zip_filerange_crc()
|
H A D | zip_source_read.c | 41 zip_source_read(struct zip_source *src, void *data, zip_uint64_t len) in zip_source_read() argument 45 if (!src->is_open || len > ZIP_INT64_MAX || (len > 0 && data == NULL)) { in zip_source_read() 51 return src->cb.f(src->ud, data, len, ZIP_SOURCE_READ); in zip_source_read() 53 ret = src->cb.l(src->src, src->ud, data, len, ZIP_SOURCE_READ); in zip_source_read()
|
H A D | zip_source_buffer.c | 52 zip_source_buffer(struct zip *za, const void *data, zip_uint64_t len, int freep) in zip_source_buffer() argument 60 if (data == NULL && len > 0) { in zip_source_buffer() 71 f->end = ((const char *)data)+len; in zip_source_buffer() 86 read_data(void *state, void *data, zip_uint64_t len, enum zip_source_cmd cmd) in read_data() argument 104 if (n > len) in read_data() 105 n = len; in read_data() 121 if (len < sizeof(*st)) in read_data() 142 if (len < sizeof(int)*2) in read_data()
|
H A D | zip_source_deflate.c | 104 void *data, zip_uint64_t len) in compress_read() argument 112 if (len == 0) in compress_read() 116 ctx->zstr.avail_out = len; in compress_read() 169 if (ctx->zstr.avail_out < len) in compress_read() 170 return len - ctx->zstr.avail_out; in compress_read() 179 void *data, zip_uint64_t len) in decompress_read() argument 187 if (len == 0) in decompress_read() 191 ctx->zstr.avail_out = len; in decompress_read() 239 if (ctx->zstr.avail_out < len) in decompress_read() 240 return len - ctx->zstr.avail_out; in decompress_read() [all …]
|
/PHP-5.5/sapi/fpm/fpm/ |
H A D | fastcgi.c | 366 int pad = ((len + 7) & ~7) - len; in fcgi_make_header() 510 int len, padding; in fcgi_read_request() local 548 if (safe_read(req, buf, len+padding) != len+padding) { in fcgi_read_request() 583 if (safe_read(req, buf, len+padding) != len+padding) { in fcgi_read_request() 610 if (safe_read(req, buf, len+padding) != len+padding) { in fcgi_read_request() 677 rest = len; in fcgi_read() 958 int len; local 976 if (safe_write(req, req->out_buf, len) != len) { 990 if (len <= 0) { 1046 pad = (((len - pos) + 7) & ~7) - (len - pos); [all …]
|
/PHP-5.5/ext/mbstring/oniguruma/enc/ |
H A D | sjis.c | 98 int c, i, len; in mbc_to_code() local 101 len = enclen(ONIG_ENCODING_SJIS, p); in mbc_to_code() 104 if (len == 1) return n; in mbc_to_code() 106 for (i = 1; i < len; i++) { in mbc_to_code() 142 int len = enclen(ONIG_ENCODING_SJIS, p); in mbc_case_fold() local 144 for (i = 0; i < len; i++) { in mbc_case_fold() 147 (*pp) += len; in mbc_case_fold() 182 int len; in left_adjust_char_head() local 195 len = enclen(ONIG_ENCODING_SJIS, p); in left_adjust_char_head() 196 if (p + len > s) return (UChar* )p; in left_adjust_char_head() [all …]
|
/PHP-5.5/ext/mbstring/oniguruma/ |
H A D | regext.c | 98 int len = end - s; in conv_encoding() local 102 *conv = (UChar* )xmalloc(len * 2); in conv_encoding() 104 *conv_end = *conv + (len * 2); in conv_encoding() 110 *conv = (UChar* )xmalloc(len); in conv_encoding() 112 *conv_end = *conv + len; in conv_encoding() 119 *conv = (UChar* )xmalloc(len * 2); in conv_encoding() 121 *conv_end = *conv + (len * 2); in conv_encoding() 133 *conv_end = *conv + (len * 4); in conv_encoding() 139 *conv = (UChar* )xmalloc(len); in conv_encoding() 141 *conv_end = *conv + len; in conv_encoding() [all …]
|
H A D | regcomp.c | 766 len = 0; in compile_length_quantifier_node() 1343 if (len < 0) return len; in compile_enclose_node() 1434 if (len < 0) return len; in compile_anchor_node() 2280 *len = distance_add(*len, tlen); in get_char_length_tree1() 4253 if (add->len == 0 || to->len == 0) { in alt_merge_opt_exact_info() 4475 to->len.max, add->len.max); in concat_left_node_opt_info() 4505 if (to->expr.len > (int )add->len.max) in concat_left_node_opt_info() 4506 to->expr.len = add->len.max; in concat_left_node_opt_info() 4520 add_mml(&to->len, &add->len); in concat_left_node_opt_info() 4532 alt_merge_mml(&to->len, &add->len); in alt_merge_node_opt_info() [all …]
|
/PHP-5.5/ext/interbase/tests/ |
H A D | interbase.inc | 80 $len = rand() % $max_len; 82 while($len--) { 90 $len = rand() % $max_len; 92 while ($len--) { 98 function rand_number($len , $prec = -1, $sign = 1) 101 $n = substr(rand() . rand(), 0, rand() % $len + 1); 102 if (strlen($n) < $len) { 103 $n .= "." . substr(rand(), 0, rand() % ($len - strlen($n)) + 1); 106 $n = substr(rand() . rand(), 0, rand() % $len + 1); 107 } else if (($prec - $len) == 0) { [all …]
|
/PHP-5.5/ext/intl/ |
H A D | intl_common.h | 27 # define UBYTES(len) ((len) * sizeof(UChar)) argument 39 #define UCHARS(len) ((len) / sizeof(UChar)) argument
|
/PHP-5.5/ext/mysqli/tests/ |
H A D | mysqli_fetch_array_large.phpt | 24 $len = strlen($sql); 25 assert($len < $package_size); 35 … printf("[%03d + 1] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link)); 41 … printf("[%03d + 2] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link)); 47 printf("[%03d + 3] Wrong results - expecting '%s' got '%s', len = %d, [%d] %s\n", 48 $offset, $random_char, $row['label'], $len, mysqli_errno($link), mysqli_error($link)); 55 … printf("[%03d + 4] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link)); 61 …printf("[%03d + 5] len = %d, [%d] %s, [%d] %s\n", $offset, $len, mysqli_stmt_errno($stmt), mysqli_… 67 …printf("[%03d + 6] len = %d, [%d] %s, [%d] %s\n", $offset, $len, mysqli_stmt_errno($stmt), mysqli_… 73 printf("[%03d + 7] Wrong results - expecting '%s' got '%s', len = %d, [%d] %s\n", [all …]
|
/PHP-5.5/sapi/litespeed/ |
H A D | lsapilib.h | 173 ssize_t LSAPI_ReadReqBody_r( LSAPI_Request * pReq, char * pBuf, size_t len ); 315 static inline ssize_t LSAPI_ReadReqBody( char * pBuf, size_t len ) in LSAPI_ReadReqBody() argument 316 { return LSAPI_ReadReqBody_r( &g_req, pBuf, len ); } in LSAPI_ReadReqBody() 321 static inline int LSAPI_ReqBodyGetLine( char * pBuf, int len, int *getLF ) in LSAPI_ReqBodyGetLine() argument 322 { return LSAPI_ReqBodyGetLine_r( &g_req, pBuf, len, getLF ); } in LSAPI_ReqBodyGetLine() 329 static inline ssize_t LSAPI_Write( const char * pBuf, ssize_t len ) in LSAPI_Write() argument 330 { return LSAPI_Write_r( &g_req, pBuf, len ); } in LSAPI_Write() 337 static inline ssize_t LSAPI_Write_Stderr( const char * pBuf, ssize_t len ) in LSAPI_Write_Stderr() argument 338 { return LSAPI_Write_Stderr_r( &g_req, pBuf, len ); } in LSAPI_Write_Stderr() 343 static inline int LSAPI_AppendRespHeader( char * pBuf, int len ) in LSAPI_AppendRespHeader() argument [all …]
|
H A D | lsapilib.c | 222 size_t len; in lsapi_enable_core_dump() local 224 len = 2; in lsapi_enable_core_dump() 1121 int len; in readReq() local 1406 if ( len > 0 ) in readBodyToReqBuf() 1412 if ( len < 0 ) in readBodyToReqBuf() 1420 return len; in readBodyToReqBuf() 1441 ssize_t len; in LSAPI_ReqBodyGetLine_r() local 1488 ssize_t len; in LSAPI_ReadReqBody_r() local 1929 int len = 0; in LSAPI_ForeachOrgHeader_r() local 2006 int len = 0; in LSAPI_ForeachHeader_r() local [all …]
|
/PHP-5.5/ext/ereg/regex/ |
H A D | main.c | 36 size_t len; local 82 eprint(err), len, sizeof(erbuf), erbuf); 106 if (len != 0) 107 printf("match `%.*s'\n", (int)len, 220 int len; local 235 line, type, eprint(err), len, 266 line, type, eprint(err), len, 411 register int len; local 447 len = (int)(sub.rm_eo - sub.rm_so); 487 size_t len; local [all …]
|
/PHP-5.5/Zend/ |
H A D | zend_exceptions.c | 367 (*str)[(*len)++] = chr 400 int *len; in _build_trace_args() local 403 len = va_arg(args, int*); in _build_trace_args() 479 *len += 3; in _build_trace_args() 546 int *len, *num; in _build_trace_string() local 557 len = va_arg(args, int*); in _build_trace_string() 593 int last_len = *len; in _build_trace_string() 595 if (last_len != *len) { in _build_trace_string() 652 int len; in zend_spprintf() local 657 return len; in zend_spprintf() [all …]
|
/PHP-5.5/sapi/cgi/ |
H A D | fastcgi.c | 834 int pad = ((len + 7) & ~7) - len; in fcgi_make_header() 920 if (safe_read(req, buf, len+padding) != len+padding) { in fcgi_read_request() 964 if (safe_read(req, buf, len+padding) != len+padding) { in fcgi_read_request() 988 if (safe_read(req, buf, len+padding) != len+padding) { in fcgi_read_request() 1051 rest = len; in fcgi_read() 1314 int len; local 1332 if (safe_write(req, req->out_buf, len) != len) { 1355 rest = len; 1371 return len; 1431 pad = (((len - pos) + 7) & ~7) - (len - pos); [all …]
|
/PHP-5.5/ext/pdo_firebird/ |
H A D | firebird_statement.c | 128 i += len + 3; in firebird_stmt_execute() 216 emalloc((len) ? (len * sizeof(type)) : ((*(unsigned long*)lenvar) = sizeof(type)))) 230 int result = *len = 0; in firebird_fetch_blob() 265 if (*len) { in firebird_fetch_blob() 275 : (unsigned short)(*len-cur_len); in firebird_fetch_blob() 280 (*ptr)[*len++] = '\0'; in firebird_fetch_blob() 307 *len = 0; in firebird_stmt_get_col() 358 *len = *(short*)var->sqldata; in firebird_stmt_get_col() 362 *len = var->sqllen; in firebird_stmt_get_col() 397 *len = 80; in firebird_stmt_get_col() [all …]
|
/PHP-5.5/ext/mbstring/libmbfl/tests/conv_encoding.tests/ |
H A D | gen_exp.c | 221 int len = 0; in to_cp932_visitor() local 224 len = 2; in to_cp932_visitor() 227 len = 1; in to_cp932_visitor() 239 int i, len; in from_cp932_visitor() local 246 i = len; in from_cp932_visitor() 308 len = 8; in to_cp50220_visitor() 312 len = 8; in to_cp50220_visitor() 315 len = 1; in to_cp50220_visitor() 351 len = 3; in to_cp50222_visitor() 355 len = 8; in to_cp50222_visitor() [all …]
|