Home
last modified time | relevance | path

Searched refs:length (Results 126 – 150 of 678) sorted by relevance

12345678910>>...28

/PHP-7.1/ext/standard/tests/strings/
H A Dsubstr.phpt6 /* Prototype: string substr( string str, int start[, int length] )
7 * Description: Returns the portion of string specified by the start and length parameters.
43 /* start value variations with length values */
59 /* variation of start and length to point to same element */
60 echo ("\n*** Testing for variations of start and length to point to same element ***\n");
64 …turn empty string when start denotes the position beyond the truncation (set by negative length) */
76 /* start <0 && -start > length */
209 *** Testing for variations of start and length to point to same element ***
H A Dbug40754.phpt38 Warning: substr_compare(): The start position cannot exceed initial string length in %s on line %d
47 Warning: substr_count(): Invalid length value in %s on line %d
56 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d
59 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d
H A Dstr_split_variation2.phpt110 Warning: str_split(): The length of each segment must be greater than zero in %sstr_split_variation…
118 Warning: str_split(): The length of each segment must be greater than zero in %sstr_split_variation…
122 Warning: str_split(): The length of each segment must be greater than zero in %sstr_split_variation…
146 Warning: str_split(): The length of each segment must be greater than zero in %sstr_split_variation…
150 Warning: str_split(): The length of each segment must be greater than zero in %sstr_split_variation…
203 Warning: str_split(): The length of each segment must be greater than zero in %sstr_split_variation…
256 Warning: str_split(): The length of each segment must be greater than zero in %sstr_split_variation…
280 Warning: str_split(): The length of each segment must be greater than zero in %sstr_split_variation…
284 Warning: str_split(): The length of each segment must be greater than zero in %sstr_split_variation…
/PHP-7.1/ext/zip/lib/
H A Dzip_source_win32a.c65 zip_source_win32a_create(const char *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *er… in zip_source_win32a_create() argument
67 if (fname == NULL || length < -1) { in zip_source_win32a_create()
72 …return _zip_source_win32_handle_or_name(fname, INVALID_HANDLE_VALUE, start, length, 1, NULL, &win3… in zip_source_win32a_create()
H A Dzip_source_win32w.c65 zip_source_win32w_create(const wchar_t *fname, zip_uint64_t start, zip_int64_t length, zip_error_t … in zip_source_win32w_create() argument
67 if (fname == NULL || length < -1) { in zip_source_win32w_create()
72 …return _zip_source_win32_handle_or_name(fname, INVALID_HANDLE_VALUE, start, length, 1, NULL, &win3… in zip_source_win32w_create()
/PHP-7.1/ext/mysqlnd/
H A Dmysqlnd_alloc.c544 static char * _mysqlnd_pememdup(const char * const ptr, size_t length, zend_bool persistent MYSQLND… in _mysqlnd_pememdup() argument
558 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pememdup()
561 memcpy(dest, ptr, length); in _mysqlnd_pememdup()
565 *(size_t *) ret = length; in _mysqlnd_pememdup()
575 static char * _mysqlnd_pestrndup(const char * const ptr, size_t length, zend_bool persistent MYSQLN… in _mysqlnd_pestrndup() argument
589 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pestrndup()
591 size_t l = length; in _mysqlnd_pestrndup()
601 *(size_t *) ret = length; in _mysqlnd_pestrndup()
782 char * dest = pemalloc_rel(length, persistent); in mysqlnd_zend_mm_pememdup()
784 memcpy(dest, ptr, length); in mysqlnd_zend_mm_pememdup()
[all …]
/PHP-7.1/main/
H A Dfopen_wrappers.c360 int length; local
382 length = s - (path_info + 2);
383 if (length > (int)sizeof(user) - 1) {
384 length = sizeof(user) - 1;
386 memcpy(user, path_info + 2, length);
387 user[length] = '\0';
408 IS_ABSOLUTE_PATH(PG(doc_root), length)) {
410 filename = emalloc(length + path_len + 2);
412 memcpy(filename, PG(doc_root), length);
414 filename[length++] = PHP_DIR_SEPARATOR;
[all …]
/PHP-7.1/ext/standard/tests/file/
H A Dfread_fwrite_basic.phpt9 * proto int fwrite(resource fp, string str [, int length])
14 Prototype: string fread ( resource $handle [, int $length] );
15 Description: reads up to length bytes from the file pointer referenced by handle.
16 Reading stops when up to length bytes have been read, EOF (end of file) is
/PHP-7.1/ext/intl/doc/
H A Dgrapheme_api.php84 * @param [int] $length If length is given and is positive, the string returned will contain
93 function grapheme_substr($string, $start, $length = -1) {} argument
/PHP-7.1/ext/zlib/tests/
H A Dgzwrite_variation1.phpt15 $length = 10;
18 var_dump(gzwrite( $h, $str, $length ) );
H A Dgzgets_error.phpt14 $length = 10;
16 var_dump(gzgets( $h, $length, $extra_arg ) );
H A Dgzread_error.phpt14 $length = 10;
17 var_dump(gzread( $h, $length, $extra_arg ) );
H A Dgzwrite_basic.phpt15 $length = 10;
17 var_dump(gzwrite( $h, $str, $length ) );
H A Dgzeof_variation1.phpt15 $length = 10;
18 gzwrite( $h, $str, $length);
H A Dgzputs_basic.phpt15 $length = 10;
17 var_dump(gzputs( $h, $str, $length ) );
/PHP-7.1/Zend/
H A Dzend_multibyte.h27 …encoding_filter)(unsigned char **str, size_t *str_length, const unsigned char *buf, size_t length);
32 typedef const zend_encoding *(*zend_encoding_detector)(const unsigned char *string, size_t length, …
69 …ng *zend_multibyte_encoding_detector(const unsigned char *string, size_t length, const zend_encodi…
/PHP-7.1/ext/standard/
H A Dpassword.c110 static int php_password_make_salt(size_t length, char *ret) /* {{{ */ in php_password_make_salt() argument
116 if (length > (INT_MAX / 3)) { in php_password_make_salt()
121 raw_length = length * 3 / 4 + 1; in php_password_make_salt()
131 result = safe_emalloc(length, 1, 1); in php_password_make_salt()
132 if (php_password_salt_to64(buffer, raw_length, length, result) == FAILURE) { in php_password_make_salt()
138 memcpy(ret, result, length); in php_password_make_salt()
141 ret[length] = 0; in php_password_make_salt()
/PHP-7.1/ext/standard/tests/streams/
H A Dbug60106.phpt15 preg_match("#maximum allowed length of (\d+) bytes#", $errmsg, $matches);
23 stream_socket_server(): socket path exceeded the maximum allowed length of %d bytes and was truncat…
H A Dbug64166.phpt13 'line-length' => 74
22 'line-length' => 6
/PHP-7.1/ext/pcre/pcrelib/testdata/
H A Dtestoutput1666 Subject length lower bound = 17
94 Subject length lower bound = 1
102 Subject length lower bound = 1
110 Subject length lower bound = 1
126 Subject length lower bound = 1
136 Subject length lower bound = 1
/PHP-7.1/ext/dom/
H A Dtext.c149 int length; in PHP_FUNCTION() local
165 length = xmlUTF8Strlen(cur); in PHP_FUNCTION()
167 if (ZEND_LONG_INT_OVFL(offset) || (int)offset > length || offset < 0) { in PHP_FUNCTION()
173 second = xmlUTF8Strsub(cur, (int)offset, (int)(length - offset)); in PHP_FUNCTION()
/PHP-7.1/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.h41 int length; member
48 int length; member
/PHP-7.1/ext/intl/tests/
H A Dregression_sort_eq.phpt8 * Test sorting strings that have different length but otherwise equal.
27 // Each array contains equal strings that differ only in their length.
H A Dregression_sortwsk_eq.phpt8 * Test sorting strings that have different length but otherwise equal.
27 // Each array contains equal strings that differ only in their length.
/PHP-7.1/ext/dom/tests/
H A DDOMCharacterData_appendData_basic.phpt21 echo "CDATA Length (one append): " . $cdatanode->length . "\n";
24 echo "CDATA Length (two appends): " . $cdatanode->length . "\n";

Completed in 65 milliseconds

12345678910>>...28