Home
last modified time | relevance | path

Searched refs:length (Results 26 – 50 of 678) sorted by relevance

12345678910>>...28

/PHP-7.1/ext/pcre/pcrelib/
H A Dpcre_valid_utf8.c105 PRIV(valid_utf)(PCRE_PUCHAR string, int length, int *erroroffset) in PRIV()
110 if (length < 0) in PRIV()
113 length = (int)(p - string); in PRIV()
116 for (p = string; length-- > 0; p++) in PRIV()
136 if (length < ab) in PRIV()
139 return ab - length; /* Codes ERR1 to ERR5 */ in PRIV()
141 length -= ab; /* Length remaining */ in PRIV()
292 (void)(length); in PRIV()
/PHP-7.1/ext/hash/
H A Dhash_tiger.c144 if (context->length % 8) { in TigerFinalize()
145 memset(&context->buffer[context->length], 0, 8-context->length%8); in TigerFinalize()
146 context->length += 8-context->length%8; in TigerFinalize()
149 if (context->length > 56) { in TigerFinalize()
150 memset(&context->buffer[context->length], 0, 64 - context->length); in TigerFinalize()
154 memset(&context->buffer[context->length], 0, 56 - context->length); in TigerFinalize()
200 if (context->length + len < 64) { in PHP_TIGERUpdate()
202 context->length += len; in PHP_TIGERUpdate()
206 if (context->length) { in PHP_TIGERUpdate()
207 i = 64 - context->length; in PHP_TIGERUpdate()
[all …]
/PHP-7.1/ext/mbstring/libmbfl/tests/
H A Dstrcut.c31 int offset, length; in main() local
59 length = strtol(argv[4], NULL, 10); in main()
89 if (dev.pos >= dev.length) { in main()
90 if (dev.length + dev.allocsz < dev.length) { in main()
95 mbfl_memory_device_realloc(&dev, dev.length + dev.allocsz, in main()
103 if (mbfl_strcut(&string, &result, offset, length)) { in main()
H A Dstrwidth.c60 if (dev.pos >= dev.length) { in main()
61 if (dev.length + dev.allocsz < dev.length) { in main()
66 mbfl_memory_device_realloc(&dev, dev.length + dev.allocsz, in main()
/PHP-7.1/ext/bcmath/libbcmath/src/
H A Dinit.c48 _bc_new_num_ex (length, scale, persistent) in _bc_new_num_ex() argument
49 int length, scale, persistent; in _bc_new_num_ex()
53 if ((size_t)length+(size_t)scale > INT_MAX) {
57 temp = (bc_num) safe_pemalloc (1, sizeof(bc_struct)+length, scale, persistent);
68 temp->n_len = length;
72 temp->n_ptr = (char *) safe_pemalloc (1, length, scale, persistent);
75 memset (temp->n_ptr, 0, length+scale);
/PHP-7.1/main/streams/
H A Dmmap.c25 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm… in _php_stream_mmap_range() argument
30 range.length = length; in _php_stream_mmap_range()
36 if (length > 4 * 1024 * 1024) { in _php_stream_mmap_range()
42 *mapped_len = range.length; in _php_stream_mmap_range()
H A Dphp_stream_mmap.h52 size_t length; member
70 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm…
71 …php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (… argument
/PHP-7.1/ext/standard/tests/file/
H A Dfgetss_basic2-win32-mb.phpt87 -- fgetss() with default length, file pointer at 0 --
92 -- fgets() with length = 30, file pointer at 0 --
102 -- fgetss() with default length, file pointer at 0 --
107 -- fgets() with length = 30, file pointer at 0 --
122 -- fgets() with length = 30, file pointer at 0 --
137 -- fgets() with length = 30, file pointer at 0 --
152 -- fgets() with length = 30, file pointer at 0 --
167 -- fgets() with length = 30, file pointer at 0 --
182 -- fgets() with length = 30, file pointer at 0 --
197 -- fgets() with length = 30, file pointer at 0 --
[all …]
H A Dfgetss_basic2-win32.phpt87 -- fgetss() with default length, file pointer at 0 --
92 -- fgets() with length = 30, file pointer at 0 --
102 -- fgetss() with default length, file pointer at 0 --
107 -- fgets() with length = 30, file pointer at 0 --
122 -- fgets() with length = 30, file pointer at 0 --
137 -- fgets() with length = 30, file pointer at 0 --
152 -- fgets() with length = 30, file pointer at 0 --
167 -- fgets() with length = 30, file pointer at 0 --
182 -- fgets() with length = 30, file pointer at 0 --
197 -- fgets() with length = 30, file pointer at 0 --
[all …]
H A Dfgetss_basic2.phpt85 -- fgetss() with default length, file pointer at 0 --
90 -- fgets() with length = 30, file pointer at 0 --
100 -- fgetss() with default length, file pointer at 0 --
105 -- fgets() with length = 30, file pointer at 0 --
120 -- fgets() with length = 30, file pointer at 0 --
135 -- fgets() with length = 30, file pointer at 0 --
150 -- fgets() with length = 30, file pointer at 0 --
165 -- fgets() with length = 30, file pointer at 0 --
180 -- fgets() with length = 30, file pointer at 0 --
195 -- fgets() with length = 30, file pointer at 0 --
[all …]
H A Dfgetss_basic1.phpt71 -- fgetss() with default length, file pointer at 0 --
76 -- fgets() with length = 30, file pointer at 0 --
82 -- fgetss() with default length, file pointer at 0 --
87 -- fgets() with length = 30, file pointer at 0 --
93 -- fgetss() with default length, file pointer at 0 --
98 -- fgets() with length = 30, file pointer at 0 --
104 -- fgetss() with default length, file pointer at 0 --
109 -- fgets() with length = 30, file pointer at 0 --
115 -- fgetss() with default length, file pointer at 0 --
120 -- fgets() with length = 30, file pointer at 0 --
[all …]
/PHP-7.1/ext/mbstring/tests/
H A Dbug54494.phpt20 $length = mb_strlen($string, $mode);
21 echo "Length: ", $length, "\n";
24 for ($i=0; $i < $length; $i++) {
36 $length = mb_strlen($string, $mode);
37 echo "Length: ", $length, "\n";
40 for ($i=0; $i < $length; $i++) {
/PHP-7.1/ext/zip/lib/
H A Dzip_source_buffer.c281 buffer_new_read(const void *data, zip_uint64_t length, int free_data) in buffer_new_read() argument
285 if ((buffer = buffer_new(length)) == NULL) { in buffer_new_read()
289 buffer->size = length; in buffer_new_read()
291 if (length > 0) { in buffer_new_read()
329 buffer_read(buffer_t *buffer, zip_uint8_t *data, zip_uint64_t length) in buffer_read() argument
333 length = ZIP_MIN(length, buffer->size - buffer->offset); in buffer_read()
335 if (length == 0) { in buffer_read()
338 if (length > ZIP_INT64_MAX) { in buffer_read()
345 while (n < length) { in buffer_read()
380 if (buffer->offset + length + buffer->fragment_size - 1 < length) { in buffer_write()
[all …]
H A Dzip_source_write.c39 zip_source_write(zip_source_t *src, const void *data, zip_uint64_t length) in zip_source_write() argument
41 if (!ZIP_SOURCE_IS_OPEN_WRITING(src) || length > ZIP_INT64_MAX) { in zip_source_write()
46 return _zip_source_call(src, (void *)data, length, ZIP_SOURCE_WRITE); in zip_source_write()
H A Dzip_buffer.c69 _zip_buffer_get(zip_buffer_t *buffer, zip_uint64_t length) in _zip_buffer_get() argument
73 if (!buffer->ok || buffer->offset + length < length || buffer->offset + length > buffer->size) { in _zip_buffer_get()
79 buffer->offset += length; in _zip_buffer_get()
207 _zip_buffer_put(zip_buffer_t *buffer, const void *src, size_t length) in _zip_buffer_put() argument
209 zip_uint8_t *dst = _zip_buffer_get(buffer, length); in _zip_buffer_put()
215 memcpy(dst, src, length); in _zip_buffer_put()
307 _zip_buffer_skip(zip_buffer_t *buffer, zip_uint64_t length) { in _zip_buffer_skip() argument
308 zip_uint64_t offset = buffer->offset + length; in _zip_buffer_skip()
/PHP-7.1/ext/gd/tests/
H A Dbug66590.phpt2 Bug #66590 (imagewebp() doesn't pad to even length)
20 $length = fread($stream, 4);
22 $length = unpack('V', $length)[1] + 8;
23 var_dump($length === filesize($filename));
/PHP-7.1/ext/intl/dateformat/
H A Ddateformat_attr.c89 uint32_t length = USIZE( value_buf ); in PHP_FUNCTION() local
106length = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_E… in PHP_FUNCTION()
107 if(INTL_DATA_ERROR_CODE(dfo) == U_BUFFER_OVERFLOW_ERROR && length >= USIZE( value_buf )) { in PHP_FUNCTION()
108 ++length; /* to avoid U_STRING_NOT_TERMINATED_WARNING */ in PHP_FUNCTION()
110 value = eumalloc(length); in PHP_FUNCTION()
111length = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_E… in PHP_FUNCTION()
119 INTL_METHOD_RETVAL_UTF8( dfo, value, length, ( value != value_buf ) ); in PHP_FUNCTION()
/PHP-7.1/ext/standard/tests/strings/
H A Dsubstr_replace_error.phpt5 … : mixed substr_replace ( mixed $string , string $replacement , int $start [, int $length ] )
25 echo "\n-- Testing substr_replace() function with start and length different types --\n";
29 echo "\n-- Testing substr_replace() function with start and length with a different number of eleme…
32 echo "\n-- Testing substr_replace() function with start and length as arrays but string not--\n";
53 -- Testing substr_replace() function with start and length different types --
55 Warning: substr_replace(): 'start' and 'length' should be of same type - numerical or array in %s …
58 Warning: substr_replace(): 'start' and 'length' should be of same type - numerical or array in %s …
61 -- Testing substr_replace() function with start and length with a different number of elements --
63 Warning: substr_replace(): 'start' and 'length' should have the same number of elements in %s on li…
66 -- Testing substr_replace() function with start and length as arrays but string not--
[all …]
/PHP-7.1/ext/dom/tests/
H A Dbug35342.phpt2 Bug #35342 (isset(DOMNodeList->length) returns false)
12 var_dump($nodelist->length, isset($nodelist->length), isset($nodelist->foo));
13 var_dump(empty($nodelist->length), empty($nodelist->foo));
/PHP-7.1/ext/standard/
H A Dquot_print.c54 PHPAPI zend_string *php_quot_print_decode(const unsigned char *str, size_t length, int replace_us_b… in php_quot_print_decode() argument
87 i = length, p1 = str; buf_size = length; in php_quot_print_decode()
100 i = length; p1 = str; p2 = (unsigned char*)ZSTR_VAL(retval); in php_quot_print_decode()
148 PHPAPI zend_string *php_quot_print_encode(const unsigned char *str, size_t length) /* {{{ */ in php_quot_print_encode() argument
155 ret = zend_string_safe_alloc(3, (length + (((3 * length)/(PHP_QPRINT_MAXL-9)) + 1)), 0, 0); in php_quot_print_encode()
158 while (length--) { in php_quot_print_encode()
159 if (((c = *str++) == '\015') && (*str == '\012') && length > 0) { in php_quot_print_encode()
162 length--; in php_quot_print_encode()
/PHP-7.1/win32/build/
H A Dbuildconf.js88 for (i = 0; i < calls.length; i++) {
92 deps[deps.length] = RegExp.$1;
145 if (item.deps.length) {
166 if (item.deps.length == 0) {
184 for (i = 0; i < args.length; i++) {
189 if (arg.length > 1) {
197 module_dirs[module_dirs.length] = argval;
219 if (module_dirs.length == 0) {
225 for (i = 0; i < module_dirs.length; i++) {
237 for (i = 0; i < calls.length; i++) {
H A Dconfutils.js206 (path.charCodeAt(CWD.length) == 92 || path.charCodeAt(CWD.length) == 47)) {
225 if (j < b.length - 1)
317 if (this_line.length) {
331 if (this_line.length) {
338 if (this_line.length) {
371 if (arg.length > 1) {
587 place = place.substr(0, place.length - thing_to_find.length - 1);
762 var length = libnames.length;
2722 if (dir.length > 0 && dir.substr(dir.length - 1) != '/' && dir.substr(dir.length - 1) != '\\') {
2734 if (src.length > 0 && src.substr(src.length - 1) != '/' && src.substr(src.length - 1) != '\\') {
[all …]
/PHP-7.1/ext/mcrypt/tests/
H A Dmcrypt_ecb_3des_encrypt.phpt39 echo "\nkey length=".strlen($key)."\n";
46 echo "\niv length=".strlen($iv)."\n";
54 key length=8
61 key length=20
68 key length=24
73 key length=26
82 iv length=4
87 iv length=8
92 iv length=9
H A Dmcrypt_encrypt_3des_ecb.phpt33 echo "\nkey length=".strlen($key)."\n";
47 echo "\niv length=".strlen($iv)."\n";
58 key length=8
65 key length=20
72 key length=24
77 key length=26
86 iv length=4
91 iv length=8
96 iv length=9
/PHP-7.1/ext/iconv/tests/
H A Diconv_set_encoding-charset-length-cve-2007-4840.phpt2 iconv_set_encoding() charset parameter length checks (CVE-2007-4840)
13 Warning: iconv_set_encoding(): Charset parameter exceeds the maximum allowed length of %d character…
16 Warning: iconv_set_encoding(): Charset parameter exceeds the maximum allowed length of %d character…
19 Warning: iconv_set_encoding(): Charset parameter exceeds the maximum allowed length of %d character…

Completed in 52 milliseconds

12345678910>>...28