/PHP-7.0/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 181 int len; in odbc_stmt_execute() local 239 if (len == 0) { in odbc_stmt_execute() 369 P->len *= 2; in odbc_stmt_param_hook() 385 P->len, in odbc_stmt_param_hook() 386 &P->len in odbc_stmt_param_hook() 434 P->len += len; in odbc_stmt_param_hook() 719 *len = used; in odbc_stmt_get_col() 728 *len = 0; in odbc_stmt_get_col() 737 *len = 0; in odbc_stmt_get_col() 750 *len = 0; in odbc_stmt_get_col() [all …]
|
/PHP-7.0/ext/standard/ |
H A D | php_smart_string.h | 34 (x)->c[(x)->len] = '\0'; \ 57 (d)->len = 0; \ 67 newlen = (d)->len + (n); \ 89 #define smart_string_appendl(dest, src, len) \ argument 90 smart_string_appendl_ex((dest), (src), (len), 0) 101 (dest)->len = __nl; \ 111 __s->a = __s->len = 0; \ 119 memcpy(__dest->c + __dest->len, (src), (nlen)); \ 120 __dest->len = __nl; \ 137 ((smart_string *)(src))->len, (what)); [all …]
|
H A D | url.h | 37 PHPAPI size_t php_url_decode(char *str, size_t len); /* return value: length of decoded string */ 38 PHPAPI size_t php_raw_url_decode(char *str, size_t len); /* return value: length of decoded string … 39 PHPAPI zend_string *php_url_encode(char const *s, size_t len); 40 PHPAPI zend_string *php_raw_url_encode(char const *s, size_t len); 41 PHPAPI char *php_replace_controlchars_ex(char *str, size_t len);
|
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); 125 PHPAPI char *php_strtr(char *str, size_t len, char *str_from, char *str_to, size_t trlen); 130 PHPAPI zend_string *php_basename(const char *s, size_t len, char *suffix, size_t sufflen); 131 PHPAPI size_t php_dirname(char *str, size_t len); 136 PHPAPI size_t php_strip_tags(char *rbuf, size_t len, int *state, const char *allow, size_t allow_le… 137 PHPAPI size_t php_strip_tags_ex(char *rbuf, size_t len, int *stateptr, const char *allow, size_t al… 154 # define php_mblen(ptr, len) 1 argument 160 # define php_mblen(ptr, len) ((int) mbrlen(ptr, len, &BG(mblen_state))) argument 163 # define php_mblen(ptr, len) mblen(ptr, len) argument
|
/PHP-7.0/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-7.0/ext/zip/lib/ |
H A D | zip_dir_add.c | 46 size_t len; in zip_dir_add() local 62 len = strlen(name); in zip_dir_add() 64 if (name[len-1] != '/') { in zip_dir_add() 65 if ((s=(char *)malloc(len+2)) == NULL) { in zip_dir_add() 70 s[len] = '/'; in zip_dir_add() 71 s[len+1] = '\0'; in zip_dir_add()
|
H A D | zip_memdup.c | 41 _zip_memdup(const void *mem, size_t len, zip_error_t *error) in _zip_memdup() argument 45 if (len == 0) in _zip_memdup() 48 ret = malloc(len); in _zip_memdup() 54 memcpy(ret, mem, len); in _zip_memdup()
|
H A D | zip_set_file_comment.c | 42 zip_set_file_comment(zip_t *za, zip_uint64_t idx, const char *comment, int len) in zip_set_file_comment() argument 44 if (len < 0 || len > ZIP_UINT16_MAX) { in zip_set_file_comment() 48 return zip_file_set_comment(za, idx, comment, (zip_uint16_t)len, 0); in zip_set_file_comment()
|
H A D | zip_source_read.c | 39 zip_source_read(zip_source_t *src, void *data, zip_uint64_t len) in zip_source_read() argument 44 if (!ZIP_SOURCE_IS_OPEN_READING(src) || len > ZIP_INT64_MAX || (len > 0 && data == NULL)) { in zip_source_read() 49 return _zip_source_call(src, data, len, ZIP_SOURCE_READ); in zip_source_read()
|
H A D | zip_filerange_crc.c | 42 _zip_filerange_crc(zip_source_t *src, zip_uint64_t start, zip_uint64_t len, uLong *crcp, zip_error_… in _zip_filerange_crc() argument 59 while (len > 0) { in _zip_filerange_crc() 60 n = (zip_int64_t)(len > BUFSIZE ? BUFSIZE : len); in _zip_filerange_crc() 72 len -= (zip_uint64_t)n; in _zip_filerange_crc()
|
H A D | zip_source_deflate.c | 106 if (len == 0 || ctx->is_stored) { in compress_read() 111 out_len = (uInt)ZIP_MIN(UINT_MAX, len); in compress_read() 133 if (out_offset < len) { in compress_read() 186 if (ctx->zstr.avail_out < len) { in compress_read() 188 return (zip_int64_t)(len - ctx->zstr.avail_out); in compress_read() 206 if (len == 0) in decompress_read() 210 out_len = (uInt)ZIP_MIN(UINT_MAX, len); in decompress_read() 222 if (out_offset < len) { in decompress_read() 270 if (ctx->zstr.avail_out < len) in decompress_read() 304 return compress_read(src, ctx, data, len); in deflate_compress() [all …]
|
H A D | zip_source_win32w.c | 55 zip_source_win32w(zip_t *za, const wchar_t *fname, zip_uint64_t start, zip_int64_t len) in zip_source_win32w() argument 60 return zip_source_win32w_create(fname, start, len, &za->error); in zip_source_win32w() 93 int len; in _win32_create_temp_w() local 95 len = wcslen((const wchar_t *)ctx->fname) + 10; in _win32_create_temp_w() 97 if ((*temp = malloc(sizeof(wchar_t) * len)) == NULL) { in _win32_create_temp_w() 102 …if (_snwprintf((wchar_t *)*temp, len, L"%s.%08x", (const wchar_t *)ctx->fname, value) != len - 1) { in _win32_create_temp_w()
|
/PHP-7.0/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-7.0/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() 4252 if (add->len == 0 || to->len == 0) { in alt_merge_opt_exact_info() 4474 to->len.max, add->len.max); in concat_left_node_opt_info() 4504 if (to->expr.len > (int )add->len.max) in concat_left_node_opt_info() 4505 to->expr.len = add->len.max; in concat_left_node_opt_info() 4519 add_mml(&to->len, &add->len); in concat_left_node_opt_info() 4531 alt_merge_mml(&to->len, &add->len); in alt_merge_node_opt_info() [all …]
|
/PHP-7.0/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfl_memory_device.c | 128 result->len = 0; in mbfl_memory_device_result() 228 int len; in mbfl_memory_device_strcat() local 232 len = 0; in mbfl_memory_device_strcat() 236 len++; in mbfl_memory_device_strcat() 257 device->pos += len; in mbfl_memory_device_strcat() 258 while (len > 0) { in mbfl_memory_device_strcat() 260 len--; in mbfl_memory_device_strcat() 263 return len; in mbfl_memory_device_strcat() 289 while (len > 0) { in mbfl_memory_device_strncat() 291 len--; in mbfl_memory_device_strncat() [all …]
|
/PHP-7.0/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-7.0/sapi/phpdbg/ |
H A D | phpdbg_io.h | 31 PHPDBG_API int phpdbg_consume_bytes(int sock, char *ptr, int len, int tmo); 32 PHPDBG_API int phpdbg_send_bytes(int sock, const char *ptr, int len); 33 PHPDBG_API int phpdbg_mixed_read(int sock, char *ptr, int len, int tmo); 34 PHPDBG_API int phpdbg_mixed_write(int sock, const char *ptr, int len);
|
/PHP-7.0/ext/intl/ |
H A D | intl_common.h | 29 # define UBYTES(len) ((len) * sizeof(UChar)) argument 41 #define UCHARS(len) ((len) / sizeof(UChar)) argument
|
/PHP-7.0/Zend/ |
H A D | zend_long.h | 65 # define ZEND_LTOA(i, s, len) _i64toa_s((i), (s), (len), 10) argument 73 # define ZEND_LTOA(i, s, len) \ argument 75 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \ 93 # define ZEND_LTOA(i, s, len) _ltoa_s((i), (s), (len), 10) argument 96 # define ZEND_LTOA(i, s, len) \ argument 98 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \
|
H A D | zend_ts_hash.h | 105 ZEND_API zval *zend_ts_hash_str_find(TsHashTable *ht, const char *key, size_t len); 107 ZEND_API zval *_zend_ts_hash_str_add(TsHashTable *ht, const char *key, size_t len, zval *pData ZEND… 109 #define zend_ts_hash_str_update(ht, key, len, pData) \ argument 110 _zend_ts_hash_str_update(ht, key, len, pData ZEND_FILE_LINE_CC) 111 #define zend_ts_hash_str_add(ht, key, len, pData) \ argument 112 _zend_ts_hash_str_add(ht, key, len, pData ZEND_FILE_LINE_CC) 114 …ic zend_always_inline void *zend_ts_hash_str_find_ptr(TsHashTable *ht, const char *str, size_t len) in zend_ts_hash_str_find_ptr() argument 118 zv = zend_ts_hash_str_find(ht, str, len); in zend_ts_hash_str_find_ptr() 127 zv = zend_ts_hash_str_update(ht, str, len, &tmp); in zend_ts_hash_str_update_ptr() 131 …ys_inline void *zend_ts_hash_str_add_ptr(TsHashTable *ht, const char *str, size_t len, void *pData) in zend_ts_hash_str_add_ptr() argument [all …]
|
/PHP-7.0/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-7.0/ext/json/ |
H A D | json_encoder.c | 105 size_t len; in php_json_encode_double() local 108 len = strlen(num); in php_json_encode_double() 110 num[len++] = '.'; in php_json_encode_double() 111 num[len++] = '0'; in php_json_encode_double() 112 num[len] = '\0'; in php_json_encode_double() 114 smart_str_appendl(buf, num, len); in php_json_encode_double() 248 for (j=0 ; pos < len ; j++) { in php_json_utf8_to_utf16() 264 for (j=0 ; pos < len ; j++) { in php_json_utf8_to_utf16() 284 if (len == 0) { in php_json_escape_string() 319 smart_str_alloc(buf, len+2, 0); in php_json_escape_string() [all …]
|
/PHP-7.0/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() 1173 int len; in readReq() local 1461 if ( len > 0 ) in readBodyToReqBuf() 1467 if ( len < 0 ) in readBodyToReqBuf() 1475 return len; in readBodyToReqBuf() 1496 ssize_t len; in LSAPI_ReqBodyGetLine_r() local 1543 ssize_t len; in LSAPI_ReadReqBody_r() local 1984 int len = 0; in LSAPI_ForeachOrgHeader_r() local 2061 int len = 0; in LSAPI_ForeachHeader_r() local [all …]
|