/PHP-5.6/ext/standard/tests/strings/ |
H A D | strcspn_basic.phpt | 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided, it works like strcspn(substr($s,$start,$len),$bad_chars) 23 $len = 30; 26 var_dump( strcspn($str, $mask, $start, $len) );
|
H A D | strncasecmp_error.phpt | 5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len ); 13 $len = 10; 24 var_dump( strncasecmp($str1, $str2, $len, $extra_arg) ); 27 $len = -10; 28 var_dump( strncasecmp($str1, $str2, $len) );
|
H A D | strcspn_variation9.phpt | 2 Test strcspn() function : usage variations - different 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) 13 * Testing strcspn() : with different strings as str argument and default start and len args 16 echo "*** Testing strcspn() : with different str and default start and len args ***\n"; 56 *** Testing strcspn() : with different str and default start and len args ***
|
H A D | strspn_variation9.phpt | 2 Test strspn() function : usage variations - different 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) 13 * Testing strspn() : with different strings as str argument and default start and len args 16 echo "*** Testing strspn() : with different str and default start and len args ***\n"; 56 *** Testing strspn() : with different str and default start and len args ***
|
/PHP-5.6/ext/zip/lib/ |
H A D | zip_file_set_comment.c | 44 const char *comment, zip_uint16_t len, zip_flags_t flags) in zip_file_set_comment() argument 58 if (len > 0 && comment == NULL) { in zip_file_set_comment() 63 if (len > 0) { in zip_file_set_comment() 64 if ((cstr=_zip_string_new((const zip_uint8_t *)comment, len, flags, &za->error)) == NULL) in zip_file_set_comment()
|
/PHP-5.6/ext/pgsql/tests/ |
H A D | pg_meta_data_001.phpt | 37 ["len"]=> 54 ["len"]=> 73 ["len"]=> 90 ["len"]=> 109 ["len"]=> 134 ["len"]=>
|
/PHP-5.6/ext/sockets/tests/ |
H A D | socket_sentto_recvfrom_ipv4_udp.phpt | 27 $len = strlen($msg); 28 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address, 1223); 31 } else if ($bytes_sent != $len) { 32 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected'); 42 } else if ($bytes_received != $len) { 43 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
|
H A D | socket_sentto_recvfrom_ipv6_udp.phpt | 29 $len = strlen($msg); 30 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address, 1223); 33 } else if ($bytes_sent != $len) { 34 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected'); 44 } else if ($bytes_received != $len) { 45 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
|
H A D | socket_sentto_recvfrom_ipv6_udp-win32.phpt | 29 $len = strlen($msg); 30 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address, 1223); 33 } else if ($bytes_sent != $len) { 34 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected'); 44 } else if ($bytes_received != $len) { 45 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
|
/PHP-5.6/ext/filter/ |
H A D | logical_filters.c | 177 int len, error = 0; in php_filter_int() local 186 len = Z_STRLEN_P(value); in php_filter_int() 188 if (len == 0) { in php_filter_int() 207 p++; len--; in php_filter_int() 209 p++; len--; in php_filter_int() 217 } else if (len != 0) { in php_filter_int() 248 switch (len) { in php_filter_boolean() 308 int len; in php_filter_float() local 323 len = Z_STRLEN_P(value); in php_filter_float() 327 end = str + len; in php_filter_float() [all …]
|
H A D | sanitizing_filters.c | 33 int len = Z_STRLEN_P(value); in php_filter_encode_html() local 35 unsigned char *e = s + len; in php_filter_encode_html() 56 Z_STRLEN_P(value) = str.len; in php_filter_encode_html() 253 size_t len; in php_filter_full_special_chars() local 261 …buf = php_escape_html_entities_ex(Z_STRVAL_P(value), Z_STRLEN_P(value), &len, 1, quotes, SG(defaul… in php_filter_full_special_chars() 264 Z_STRLEN_P(value) = len; in php_filter_full_special_chars() 371 int len; in php_filter_magic_quotes() local 374 buf = php_addslashes(Z_STRVAL_P(value), Z_STRLEN_P(value), &len, 0 TSRMLS_CC); in php_filter_magic_quotes() 378 Z_STRLEN_P(value) = len; in php_filter_magic_quotes()
|
/PHP-5.6/ext/mbstring/oniguruma/enc/ |
H A D | big5.c | 118 int len; in big5_left_adjust_char_head() local 131 len = enclen(ONIG_ENCODING_BIG5, p); in big5_left_adjust_char_head() 132 if (p + len > s) return (UChar* )p; in big5_left_adjust_char_head() 133 p += len; in big5_left_adjust_char_head()
|
H A D | euc_kr.c | 101 int len; in euckr_left_adjust_char_head() local 107 len = enclen(ONIG_ENCODING_EUC_KR, p); in euckr_left_adjust_char_head() 108 if (p + len > s) return (UChar* )p; in euckr_left_adjust_char_head() 109 p += len; in euckr_left_adjust_char_head()
|
/PHP-5.6/ext/hash/ |
H A D | hash_crc32.c | 31 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) in PHP_CRC32Update() argument 35 for (i = 0; i < len; ++i) { in PHP_CRC32Update() 40 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) in PHP_CRC32BUpdate() argument 44 for (i = 0; i < len; ++i) { in PHP_CRC32BUpdate()
|
H A D | hash_snefru.c | 142 PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *context, const unsigned char *input, size_t len) in PHP_SNEFRUUpdate() argument 144 if ((MAX32 - context->count[1]) < (len * 8)) { in PHP_SNEFRUUpdate() 147 context->count[1] = (len * 8) - context->count[1]; in PHP_SNEFRUUpdate() 149 context->count[1] += len * 8; in PHP_SNEFRUUpdate() 152 if (context->length + len < 32) { in PHP_SNEFRUUpdate() 153 memcpy(&context->buffer[context->length], input, len); in PHP_SNEFRUUpdate() 154 context->length += len; in PHP_SNEFRUUpdate() 156 size_t i = 0, r = (context->length + len) % 32; in PHP_SNEFRUUpdate() 164 for (; i + 32 <= len; i += 32) { in PHP_SNEFRUUpdate()
|
/PHP-5.6/Zend/ |
H A D | zend_virtual_cwd.c | 113 (len >= 2 && !php_check_dots(element, len)) 320 if (r < len) { in php_sys_stat_ex() 335 len = r+1; in php_sys_stat_ex() 803 i = len; in tsrm_realpath_r() 808 if (i == len || in tsrm_realpath_r() 811 len = i - 1; in tsrm_realpath_r() 856 path[len] = 0; in tsrm_realpath_r() 897 !(IS_UNC_PATH(path, len) && len >= 3 && path[2] != '?') && in tsrm_realpath_r() 1024 j = len; in tsrm_realpath_r() 1156 j += (len-i); in tsrm_realpath_r() [all …]
|
H A D | zend_stream.h | 31 typedef size_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len TSRMLS_DC); 45 size_t len; member 76 ZEND_API int zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len TSRMLS_DC);
|
/PHP-5.6/sapi/phpdbg/ |
H A D | phpdbg_watch.c | 297 if (len < 2 || *input != '$') { in phpdbg_watchpoint_parse_input() 301 while (i++ < len) { in phpdbg_watchpoint_parse_input() 302 if (i == len) { in phpdbg_watchpoint_parse_input() 335 if (i == len || (i == len - 1 && input[len - 1] == ']')) { in phpdbg_watchpoint_parse_input() 369 if (i == len) { in phpdbg_watchpoint_parse_input() 372 watch->str = zend_strndup(input, len); in phpdbg_watchpoint_parse_input() 373 watch->str_len = len; in phpdbg_watchpoint_parse_input() 399 if (EG(This) && len >= 5 && !memcmp("$this", input, 5)) { in phpdbg_watchpoint_parse_symtables() 403 …if (zend_is_auto_global(input, len TSRMLS_CC) && phpdbg_watchpoint_parse_input(input, len, &EG(sym… in phpdbg_watchpoint_parse_symtables() 487 int phpdbg_create_var_watchpoint(char *input, size_t len TSRMLS_DC) { in phpdbg_create_var_watchpoint() [all …]
|
H A D | phpdbg_parser.y | 121 $$.len = $1.len; 127 $$.len = $2.len; 142 $$.len = $2.len; 147 $$.len = $2.len; 151 $$.len = 0; 156 $$.len = $2.len;
|
/PHP-5.6/ext/mbstring/oniguruma/ |
H A D | regposix.c | 39 #define ENC_STRING_LEN(enc,s,len) do { \ argument 43 len = tmps - (UChar* )(s); \ 46 len = onigenc_str_bytelen_null(enc, (UChar* )s); \ 136 int r, len; in regcomp() local 153 ENC_STRING_LEN(OnigEncDefaultCharEncoding, pattern, len); in regcomp() 154 r = onig_new(PONIG_C(reg), (UChar* )pattern, (UChar* )(pattern + len), in regcomp() 169 int r, i, len; in regexec() local 192 ENC_STRING_LEN(ONIG_C(reg)->enc, str, len); in regexec() 193 end = (UChar* )(str + len); in regexec()
|
/PHP-5.6/ext/wddx/ |
H A D | php_wddx_api.h | 52 #define php_wddx_add_chunk_ex(packet, str, len) smart_str_appendl(packet, str, len) argument 65 #define php_wddx_gather(packet) estrndup(packet->c, packet->len)
|
/PHP-5.6/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfilter.c | 823 len = 0; in mbfl_strlen() 825 len = string->len; in mbfl_strlen() 827 len = string->len/2; in mbfl_strlen() 829 len = string->len/4; in mbfl_strlen() 841 len++; in mbfl_strlen() 865 return len; in mbfl_strlen() 951 len = 0; in mbfl_oddlen() 1032 if (haystack_u8->len < needle_u8->len) { in mbfl_strpos() 1322 len = string->len; in mbfl_substr() 1780 int len, n; in mbfl_strwidth() local [all …]
|
/PHP-5.6/ext/xmlrpc/libxmlrpc/ |
H A D | encodings.h | 43 char* utf8_encode(const char *s, int len, int *newlen, ENCODING_ID encoding); 44 char* utf8_decode(const char *s, int len, int *newlen, ENCODING_ID encoding);
|
/PHP-5.6/ext/mysqlnd/ |
H A D | mysqlnd_wireprotocol.c | 489 int len; in php_mysqlnd_auth_write() local 511 p+= len; in php_mysqlnd_auth_write() 559 p+= len; in php_mysqlnd_auth_write() 1054 size_t len; in php_mysqlnd_rset_header_read() local 1195 unsigned long len; in php_mysqlnd_rset_field_read() local 1230 switch ((len)) { in php_mysqlnd_rset_field_read() 1240 p += len; in php_mysqlnd_rset_field_read() 1308 p += len; in php_mysqlnd_rset_field_read() 1612 if (len != MYSQLND_NULL_LENGTH && ((p + len) > packet_end)) { in php_mysqlnd_rowp_read_text_protocol_aux() 1740 p -= len; in php_mysqlnd_rowp_read_text_protocol_aux() [all …]
|
/PHP-5.6/ext/phar/ |
H A D | phar_path_check.c | 25 phar_path_check_result phar_path_check(char **s, int *len, const char **error) in phar_path_check() argument 30 if (*len == 1 && *p == '.') { in phar_path_check() 33 } else if (*len == 2 && p[0] == '.' && p[1] == '.') { in phar_path_check() 40 #define YYLIMIT p+*len in phar_path_check() 138 *len = (p - (const unsigned char*)*s) -1; in phar_path_check() 205 (*len)--; in phar_path_check() 207 if ((p - (const unsigned char*)*s) - 1 != *len) in phar_path_check()
|