/PHP-5.6/ext/standard/tests/strings/ |
H A D | strcspn_variation5.phpt | 2 Test strcspn() function : usage variations - with heredoc strings with default start and len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 70 var_dump( strcspn($str,$mask) ); // with default start and len values
|
H A D | strspn_variation5.phpt | 2 Test strspn() function : usage variations - with heredoc strings with default start and len args 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 70 var_dump( strspn($str,$mask) ); // with default start and len values
|
H A D | strncmp_variation5.phpt | 5 /* Prototype : int strncmp ( string $str1, string $str2, int $len ); 12 echo "*** Test strncmp() function: by supplying all types for 'len' ***\n"; 90 $len = $lengths[$index]; 92 var_dump( strncmp($str1, $str2, $len) ); 100 *** Test strncmp() function: by supplying all types for 'len' ***
|
H A D | strlen.phpt | 23 "\x000", // len = 2 24 "\xABC", // len = 2 25 "\0000", // len = 2 28 "\t", // len = 1 29 '\t', // len = 2 135 var_dump(strlen(10.55555555555555555555555555)); // len = 13 136 var_dump(strlen(10.55555555595555555555555555)); // len = 12 139 var_dump(strlen(strlen("Hello"))); // len=1
|
/PHP-5.6/ext/standard/ |
H A D | var_unserializer.re | 242 for (i = 0; i < *len; i++) { 270 *len = i; 647 size_t len, maxlen; 650 len = parse_uiv(start + 2); 652 if (maxlen < len) { 659 YYCURSOR += len; 680 size_t len, maxlen; 685 if (maxlen < len) { 771 if (maxlen < len || len == 0) { 778 YYCURSOR += len; [all …]
|
/PHP-5.6/ext/hash/ |
H A D | hash_adler32.c | 30 …P_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len) in PHP_ADLER32Update() argument 36 for (i = 0; i < len; ++i) { in PHP_ADLER32Update()
|
H A D | php_hash_fnv.h | 67 static php_hash_uint32 fnv_32_buf(void *buf, size_t len, php_hash_uint32 hval, int alternate); 68 static php_hash_uint64 fnv_64_buf(void *buf, size_t len, php_hash_uint64 hval, int alternate);
|
H A D | hash_gost.c | 257 PHP_HASH_API void PHP_GOSTUpdate(PHP_GOST_CTX *context, const unsigned char *input, size_t len) in PHP_GOSTUpdate() argument 259 if ((MAX32 - context->count[0]) < (len * 8)) { in PHP_GOSTUpdate() 262 context->count[0] = (len * 8) - context->count[0]; in PHP_GOSTUpdate() 264 context->count[0] += len * 8; in PHP_GOSTUpdate() 267 if (context->length + len < 32) { in PHP_GOSTUpdate() 268 memcpy(&context->buffer[context->length], input, len); in PHP_GOSTUpdate() 269 context->length += len; in PHP_GOSTUpdate() 271 size_t i = 0, r = (context->length + len) % 32; in PHP_GOSTUpdate() 279 for (; i + 32 <= len; i += 32) { in PHP_GOSTUpdate()
|
/PHP-5.6/sapi/cli/ |
H A D | php_cli_server.c | 474 if (len == ext_len && memcmp(pair->ext, ext, len) == 0) { in get_mime_type() 511 int len; in add_response_header() local 516 len = p - h->header; in add_response_header() 517 if (p && (len > 0)) { in add_response_header() 518 while (len > 0 && (h->header[len-1] == ' ' || h->header[len-1] == '\t')) { in add_response_header() 519 len--; in add_response_header() 521 if (len) { in add_response_header() 524 s[len] = 0; in add_response_header() 1061 chunk->data.immortal.len = len; in php_cli_server_chunk_immortal_new() 1076 chunk->data.heap.len = len; in php_cli_server_chunk_heap_new() [all …]
|
/PHP-5.6/ext/zip/lib/ |
H A D | zip_dirent.c | 793 zip_uint32_t len; in _zip_ef_utf8() local 798 if (len+5 > ZIP_UINT16_MAX) { in _zip_ef_utf8() 810 memcpy(p, raw, len); in _zip_ef_utf8() 811 p += len; in _zip_ef_utf8() 894 if (len == 0 && nulp == 0) in _zip_read_data() 897 r = (zip_uint8_t *)malloc(nulp ? len+1 : len); in _zip_read_data() 904 memcpy(r, *buf, len); in _zip_read_data() 905 *buf += len; in _zip_read_data() 908 if (fread(r, 1, len, fp)<len) { in _zip_read_data() 921 r[len] = 0; in _zip_read_data() [all …]
|
H A D | zip_source_crc.c | 82 zip_uint64_t len, enum zip_source_cmd cmd) in crc_read() argument 98 if (ctx->eof || len == 0) in crc_read() 101 if ((n=zip_source_read(src, data, len)) < 0) in crc_read()
|
H A D | zip_source_pkware.c | 103 zip_uint64_t len, int update_only) in decrypt() argument 109 for (i=0; i<len; i++) { in decrypt() 175 zip_uint64_t len, enum zip_source_cmd cmd) in pkware_decrypt() argument 189 if ((n=zip_source_read(src, data, len)) < 0) in pkware_decrypt()
|
/PHP-5.6/ext/mbstring/tests/ |
H A D | bug52981.phpt | 10 $len = strlen($upper); 11 for ($i = 0; $i < $len; ++$i) echo dechex(ord($upper[$i])) . ' ';
|
/PHP-5.6/Zend/ |
H A D | zend_virtual_cwd.h | 70 #define IS_UNC_PATH(path, len) \ argument 71 (len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1])) 72 #define IS_ABSOLUTE_PATH(path, len) \ argument 73 (len >= 2 && ((isalpha(path[0]) && path[1] == ':') || IS_UNC_PATH(path, len))) 85 #define IS_ABSOLUTE_PATH(path, len) \ argument 86 ((strchr(path, ':') != NULL) || ((len >= 1) && ((path[0] == '/') || (path[0] == '\\')))) 112 #define IS_ABSOLUTE_PATH(path, len) \ argument
|
H A D | zend_alloc.h | 95 inline static void * __zend_malloc(size_t len) in __zend_malloc() argument 97 void *tmp = malloc(len); in __zend_malloc() 105 inline static void * __zend_calloc(size_t nmemb, size_t len) in __zend_calloc() argument 107 void *tmp = _safe_malloc(nmemb, len, 0); in __zend_calloc() 108 memset(tmp, 0, nmemb * len); in __zend_calloc() 112 inline static void * __zend_realloc(void *p, size_t len) in __zend_realloc() argument 114 p = realloc(p, len); in __zend_realloc() 142 #define safe_estrndup(ptr, len) ((ptr)?(estrndup((ptr), (len))):STR_EMPTY_ALLOC()) argument
|
/PHP-5.6/ext/pdo/ |
H A D | pdo_sql_parser.re | 71 int len; 101 int len = s.cur - s.tok; 102 if ((inquery < (s.cur - len)) && isalnum(*(s.cur - len - 1))) { 114 plc->len = s.cur - s.tok; 168 if (zend_hash_find(params, plc->pos, plc->len, (void**) ¶m) == FAILURE) { 193 ret = zend_hash_find(params, plc->pos, plc->len, (void**) ¶m); 207 size_t len; 210 len = php_stream_copy_to_mem(stm, &buf, PHP_STREAM_COPY_ALL, 0); 289 ptr = plc->pos + plc->len; 321 name = estrndup(plc->pos, plc->len); [all …]
|
/PHP-5.6/ext/ereg/regex/ |
H A D | regcomp.c | 97 register size_t len; variable 736 register size_t len; local 742 len = p->next - sp; 744 if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0') 807 register int len; local 815 len = p->next - sp; 817 if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0') 819 if (len == 1) 1198 cs->smultis -= len; 1361 if (len == 0) [all …]
|
/PHP-5.6/ext/pcre/pcrelib/ |
H A D | pcre_exec.c | 673 return (len > 0)? -len : len; in match() 2667 int len = 1; in match() local 2672 eptr += len; in match() 3192 int len = 1; in match() local 3204 eptr += len; in match() 5424 eptr+= len; in match() 5444 eptr+= len; in match() 5459 eptr+= len; in match() 5474 eptr+= len; in match() 5489 eptr+= len; in match() [all …]
|
/PHP-5.6/sapi/phpdbg/ |
H A D | phpdbg_lexer.l | 17 #define yyleng LEX(len) 35 LEX(len) = strlen(input); in phpdbg_init_lexer()
|
H A D | phpdbg_set.c | 108 param->next->str, param->next->len TSRMLS_CC); in PHPDBG_SET() 116 switch (phpdbg_get_element(param->str, param->len TSRMLS_CC)) { in PHPDBG_SET() 224 if ((param->len == sizeof("opcode")-1) && in PHPDBG_SET() 227 } else if ((param->len == sizeof("line")-1) && in PHPDBG_SET()
|
H A D | phpdbg_list.c | 75 phpdbg_list_function_byname(param->str, param->len TSRMLS_CC); in PHPDBG_LIST() 106 if (zend_lookup_class(param->str, param->len, &ce TSRMLS_CC) == SUCCESS) { in PHPDBG_LIST() 197 void phpdbg_list_function_byname(const char *str, size_t len TSRMLS_DC) /* {{{ */ in phpdbg_list_function_byname() 202 size_t func_name_len = len; in phpdbg_list_function_byname()
|
/PHP-5.6/ext/standard/tests/general_functions/ |
H A D | ob_get_length_basic.phpt | 17 $len = ob_get_length(); 19 var_dump( $len );
|
/PHP-5.6/ext/gd/libgd/ |
H A D | gdtest.c | 16 static int freadWrapper (void *context, char *buf, int len); 17 static int fwriteWrapper (void *context, const char *buffer, int len); 399 freadWrapper (void *context, char *buf, int len) in freadWrapper() argument 401 int got = fread (buf, 1, len, (FILE *) context); in freadWrapper() 406 fwriteWrapper (void *context, const char *buffer, int len) in fwriteWrapper() argument 408 return fwrite (buffer, 1, len, (FILE *) context); in fwriteWrapper()
|
/PHP-5.6/ext/wddx/ |
H A D | wddx.c | 1095 Z_STRVAL_P(ent->data) = estrndup(s, len); in php_wddx_process_data() 1096 Z_STRLEN_P(ent->data) = len; in php_wddx_process_data() 1100 Z_STRLEN_P(ent->data) += len; in php_wddx_process_data() 1113 Z_STRLEN_P(ent->data) += len; in php_wddx_process_data() 1119 Z_STRLEN_P(ent->data) = len; in php_wddx_process_data() 1120 Z_STRVAL_P(ent->data) = estrndup(s, len); in php_wddx_process_data() 1149 len += Z_STRLEN_P(ent->data); in php_wddx_process_data() 1153 tmp = emalloc(len + 1); in php_wddx_process_data() 1154 memcpy(tmp, s, len); in php_wddx_process_data() 1156 tmp[len] = '\0'; in php_wddx_process_data() [all …]
|
/PHP-5.6/ext/pdo/tests/ |
H A D | pdo_033.phpt | 21 $len = strlen($unquoted); 25 $db->query("CREATE TABLE test (t char($len))");
|