Home
last modified time | relevance | path

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

12345678910>>...22

/PHP-8.0/ext/intl/dateformat/
H A Ddateformat_attr.c70 uint32_t length = USIZE( value_buf ); in PHP_FUNCTION() local
85length = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_E… in PHP_FUNCTION()
86 if(INTL_DATA_ERROR_CODE(dfo) == U_BUFFER_OVERFLOW_ERROR && length >= USIZE( value_buf )) { in PHP_FUNCTION()
87 ++length; /* to avoid U_STRING_NOT_TERMINATED_WARNING */ in PHP_FUNCTION()
89 value = eumalloc(length); in PHP_FUNCTION()
90length = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_E… in PHP_FUNCTION()
98 INTL_METHOD_RETVAL_UTF8( dfo, value, length, ( value != value_buf ) ); in PHP_FUNCTION()
/PHP-8.0/ext/standard/tests/file/
H A Dfgetcsv_error_conditions.phpt9 $length = 1024;
13 echo 'fgetcsv() with negative length' . \PHP_EOL;
32 var_dump( fgetcsv($file_handle, $length, NULL, $enclosure) );
39 var_dump( fgetcsv($file_handle, $length, $delimiter, NULL) );
46 var_dump( fgetcsv($file_handle, $length, NULL, NULL) );
52 fgetcsv() with negative length
53 fgetcsv(): Argument #2 ($length) must be a greater than or equal to 0
54 fgetcsv(): Argument #2 ($length) must be a greater than or equal to 0
55 fgetcsv(): Argument #2 ($length) must be a greater than or equal to 0
H A Dfread_error.phpt9 // invalid length argument
10 echo "-- Testing fread() with invalid length arguments --\n";
28 -- Testing fread() with invalid length arguments --
29 fread(): Argument #2 ($length) must be greater than 0
30 fread(): Argument #2 ($length) must be greater than 0
/PHP-8.0/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-8.0/ext/com_dotnet/
H A Dcom_olechar.c73 uint32_t length = 0; in php_com_olestring_to_string() local
76 length = WideCharToMultiByte(codepage, 0, olestring, -1, NULL, 0, NULL, NULL); in php_com_olestring_to_string()
78 if (length) { in php_com_olestring_to_string()
79 string = (char*)safe_emalloc(length, sizeof(char), 0); in php_com_olestring_to_string()
80 length = WideCharToMultiByte(codepage, 0, olestring, -1, string, length, NULL, NULL); in php_com_olestring_to_string()
81 ok = length > 0; in php_com_olestring_to_string()
86 length = 0; in php_com_olestring_to_string()
99 *string_len = length-1; in php_com_olestring_to_string()
/PHP-8.0/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-8.0/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));
H A Dbug67474.phpt14 var_dump($list->length);
16 var_dump($list->length);
20 var_dump($list->length);
22 var_dump($list->length);
H A Ddom007.phpt46 $length = $nots->length;
47 echo "Length: ".$length."\n";
53 for($x=0; $x < $length; $x++) {
64 $length = $ents->length;
65 echo "Length: ".$length."\n";
78 for($x=0; $x < $length; $x++) {
/PHP-8.0/ext/standard/tests/image/
H A Dgetimagesize_jpgapp.phpt16 echo "$key - length: ". strlen($value) ."; md5: " . md5($value) . "\n" ;
21 APP1 - length: 1717; md5: 02cbf4ba6640c131422483138c968516
22 APP2 - length: 7275; md5: f5036ccca2031e8bf932bcbd4aca4355
23 APP13 - length: 42; md5: 2202998bd05e78bcb419f08c070d6f61
/PHP-8.0/ext/hash/sha3/generic64lc/
H A DKeccakP-1600-SnP.h40 …akP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length);
41 …0_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length);
46 …600_ExtractBytes(const void *state, unsigned char *data, unsigned int offset, unsigned int length);
47 …tate, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length);
H A DKeccakP-1600-opt64.c105 if (length == 0) in KeccakP1600_AddBytesInLane()
107 if (length == 1) in KeccakP1600_AddBytesInLane()
111 memcpy(&lane, data, length); in KeccakP1600_AddBytesInLane()
117 for(i=0; i<length; i++) in KeccakP1600_AddBytesInLane()
197 SnP_AddBytes(state, data, offset, length, KeccakP1600_AddLanes, KeccakP1600_AddBytesInLane, 8); in KeccakP1600_AddBytes()
208 for(i=0; i<length; i++) in KeccakP1600_OverwriteBytesInLane()
214 memcpy((unsigned char*)state+lanePosition*8+offset, data, length); in KeccakP1600_OverwriteBytesInLane()
334 memcpy(data, (UINT8*)lane1+offset, length); in KeccakP1600_ExtractBytesInLane()
339 for(i=0; i<length; i++) { in KeccakP1600_ExtractBytesInLane()
411 for(i=0; i<length; i++) in KeccakP1600_ExtractAndAddBytesInLane()
[all …]
/PHP-8.0/Zend/tests/varSyntax/
H A Dconstant_object_deref.phpt10 FOO->length();
16 Bar::FOO->length();
23 Call to a member function length() on string
24 Call to a member function length() on string
/PHP-8.0/ext/standard/tests/strings/
H A Dsubstr_count_error.phpt23 /* Using offset and length to go beyond the size of the string:
24 Exception is expected, as length+offset > length of string */
31 /* length too small */
45 substr_count(): Argument #4 ($length) must be contained in argument #1 ($haystack)
46 substr_count(): Argument #4 ($length) must be contained in argument #1 ($haystack)
H A Dsubstr.phpt20 /* start value variations with length values */
36 /* variation of start and length to point to same element */
37 echo ("\n*** Testing for variations of start and length to point to same element ***\n");
41 …turn empty string when start denotes the position beyond the truncation (set by negative length) */
53 /* start <0 && -start > length */
57 /* Omitting length and passing a NULL length */
58 echo "\n*** Omitting length or using NULL length ***\n";
174 *** Testing for variations of start and length to point to same element ***
190 *** Omitting length or using NULL length ***
/PHP-8.0/main/streams/
H A Dmmap.c21 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm… in _php_stream_mmap_range() argument
26 range.length = length; in _php_stream_mmap_range()
32 *mapped_len = range.length; in _php_stream_mmap_range()
H A Dphp_stream_mmap.h48 size_t length; member
68 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm…
69 …php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (… argument
/PHP-8.0/ext/standard/
H A Dquot_print.c50 PHPAPI zend_string *php_quot_print_decode(const unsigned char *str, size_t length, int replace_us_b… in php_quot_print_decode() argument
83 i = length, p1 = str; buf_size = length; in php_quot_print_decode()
96 i = length; p1 = str; p2 = (unsigned char*)ZSTR_VAL(retval); in php_quot_print_decode()
144 PHPAPI zend_string *php_quot_print_encode(const unsigned char *str, size_t length) /* {{{ */ in php_quot_print_encode() argument
151 ret = zend_string_safe_alloc(3, (length + (((3 * length)/(PHP_QPRINT_MAXL-9)) + 1)), 0, 0); in php_quot_print_encode()
154 while (length--) { in php_quot_print_encode()
155 if (((c = *str++) == '\015') && (*str == '\012') && length > 0) { in php_quot_print_encode()
158 length--; in php_quot_print_encode()
H A Dquot_print.h20 PHPAPI zend_string *php_quot_print_decode(const unsigned char *str, size_t length, int replace_us_b…
21 PHPAPI zend_string *php_quot_print_encode(const unsigned char *str, size_t length);
/PHP-8.0/ext/zlib/tests/
H A Dinflate_get_read_len.phpt20 echo 'Original compressed length: ' . $compressed_len . "\n";
21 echo 'Detected compressed length: ' . $detected_compressed_len . "\n";
27 Original compressed length: 20
28 Detected compressed length: 20
/PHP-8.0/win32/build/
H A Dconfutils.js189 (path.charCodeAt(CWD.length) == 92 || path.charCodeAt(CWD.length) == 47)) {
208 if (j < b.length - 1)
300 if (this_line.length) {
321 if (this_line.length) {
355 if (arg.length > 1) {
616 place = place.substr(0, place.length - thing_to_find.length - 1);
791 var length = libnames.length;
1940 if(zend_exts.length)
2844 if (dir.length > 0 && dir.substr(dir.length - 1) != '/' && dir.substr(dir.length - 1) != '\\') {
2856 if (src.length > 0 && src.substr(src.length - 1) != '/' && src.substr(src.length - 1) != '\\') {
[all …]
H A Dbuildconf.js85 for (i = 0; i < calls.length; i++) {
89 deps[deps.length] = RegExp.$1;
142 if (item.deps.length) {
163 if (item.deps.length == 0) {
181 for (i = 0; i < args.length; i++) {
186 if (arg.length > 1) {
194 module_dirs[module_dirs.length] = argval;
216 if (module_dirs.length == 0) {
222 for (i = 0; i < module_dirs.length; i++) {
234 for (i = 0; i < calls.length; i++) {
/PHP-8.0/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(): Encoding parameter exceeds the maximum allowed length of 64 characte…
16 Warning: iconv_set_encoding(): Encoding parameter exceeds the maximum allowed length of 64 characte…
19 Warning: iconv_set_encoding(): Encoding parameter exceeds the maximum allowed length of 64 characte…
/PHP-8.0/sapi/cli/
H A Dphp_cli_process_title.c49 int length = 0; in PHP_FUNCTION() local
57 rc = get_ps_title(&length, &title); in PHP_FUNCTION()
63 RETURN_STRINGL(title, length); in PHP_FUNCTION()
/PHP-8.0/ext/standard/tests/array/
H A Darray_chunk_variation5.phpt45 array_chunk(): Argument #2 ($length) must be greater than 0
46 array_chunk(): Argument #2 ($length) must be greater than 0
47 array_chunk(): Argument #2 ($length) must be greater than 0
85 array_chunk(): Argument #2 ($length) must be greater than 0
86 array_chunk(): Argument #2 ($length) must be greater than 0
87 array_chunk(): Argument #2 ($length) must be greater than 0

Completed in 80 milliseconds

12345678910>>...22