Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 179) sorted by relevance

12345678

/php-src/ext/standard/tests/strings/
H A Dexplode_variation6.phpt10 echo "\n-- positive limit with null separator --\n";
19 echo "\n-- limit = 0 --\n";
22 echo "\n-- limit = -1 --\n";
25 echo "\n-- large limit = -100 --\n";
28 function test_explode($delim, $string, $limit)
30 $e = explode($delim, $string, $limit);
40 -- positive limit with null separator --
44 -- negative limit (since PHP 5.1) with null separator --
51 -- limit = 0 --
54 -- limit = -1 --
[all …]
H A Dexplode_variation5.phpt9 echo "\n-- positive limit --\n";
12 echo "\n-- negative limit (since PHP 5.1) --\n";
15 echo "\n-- negative limit (since PHP 5.1) with null string -- \n";
21 -- positive limit --
29 -- negative limit (since PHP 5.1) --
39 -- negative limit (since PHP 5.1) with null string --
/php-src/ext/mbstring/libmbfl/filters/
H A Dmbfilter_singlebyte.c106 while (p < e && out < limit) { \
116 unsigned char *out, *limit; \
164 while (p < e && out < limit) { in mb_ascii_to_wchar()
176 unsigned char *out, *limit; in mb_wchar_to_ascii() local
177 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_ascii()
218 while (p < e && out < limit) { in mb_8859_1_to_wchar()
229 unsigned char *out, *limit; in mb_wchar_to_8859_1() local
534 while (p < e && out < limit) { in mb_cp1252_to_wchar()
551 unsigned char *out, *limit; in mb_wchar_to_cp1252() local
735 while (p < e && out < limit) { in mb_armscii8_to_wchar()
[all …]
H A Dmbfilter_7bit.c92 uint32_t *out = buf, *limit = buf + bufsize; in mb_7bit_to_wchar() local
94 while (p < e && out < limit) { in mb_7bit_to_wchar()
106 unsigned char *out, *limit; in mb_wchar_to_7bit() local
107 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_7bit()
108 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_7bit()
115 MB_CONVERT_ERROR(buf, out, limit, w, mb_wchar_to_7bit); in mb_wchar_to_7bit()
116 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_7bit()
120 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_7bit()
H A Dmbfilter_ucs2.c273 uint32_t *out = buf, *limit = buf + bufsize; in mb_ucs2be_to_wchar() local
275 while (p < e && out < limit) { in mb_ucs2be_to_wchar()
282 if (p == e && (*in_len & 0x1) && out < limit) { in mb_ucs2be_to_wchar()
295 unsigned char *out, *limit; in mb_wchar_to_ucs2be() local
296 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_ucs2be()
309 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_ucs2be()
315 uint32_t *out = buf, *limit = buf + bufsize; in mb_ucs2le_to_wchar() local
317 while (p < e && out < limit) { in mb_ucs2le_to_wchar()
337 unsigned char *out, *limit; in mb_wchar_to_ucs2le() local
338 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_ucs2le()
[all …]
H A Dmbfilter_utf32.c288 uint32_t *out = buf, *limit = buf + bufsize; in mb_utf32be_to_wchar() local
290 while (p < e && out < limit) { in mb_utf32be_to_wchar()
304 if (p == e && (*in_len & 0x3) && out < limit) { in mb_utf32be_to_wchar()
317 unsigned char *out, *limit; in mb_wchar_to_utf32be() local
318 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf32be()
331 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf32be()
337 uint32_t *out = buf, *limit = buf + bufsize; in mb_utf32le_to_wchar() local
339 while (p < e && out < limit) { in mb_utf32le_to_wchar()
366 unsigned char *out, *limit; in mb_wchar_to_utf32le() local
367 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf32le()
[all …]
H A Dmbfilter_ucs4.c356 uint32_t *out = buf, *limit = buf + bufsize; in mb_ucs4be_to_wchar() local
358 while (p < e && out < limit) { in mb_ucs4be_to_wchar()
367 if (p == e && (*in_len & 0x3) && out < limit) { in mb_ucs4be_to_wchar()
380 unsigned char *out, *limit; in mb_wchar_to_ucs4be() local
381 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_ucs4be()
394 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_ucs4be()
400 uint32_t *out = buf, *limit = buf + bufsize; in mb_ucs4le_to_wchar() local
402 while (p < e && out < limit) { in mb_ucs4le_to_wchar()
424 unsigned char *out, *limit; in mb_wchar_to_ucs4le() local
425 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_ucs4le()
[all …]
H A Dmbfilter_utf8.c451 while (p < e && out < limit) { in mb_utf8_to_wchar()
540 unsigned char *out, *limit; in mb_wchar_to_utf8() local
541 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf8()
563 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf8()
737 while (p < e && out < limit) { in mb_mobile_utf8_to_wchar()
838 unsigned char *out, *limit; in mb_wchar_to_utf8_docomo() local
839 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf8_docomo()
915 unsigned char *out, *limit; in mb_wchar_to_utf8_kddi() local
916 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf8_kddi()
1027 unsigned char *out, *limit; in mb_wchar_to_utf8_sb() local
[all …]
H A Dmbfilter_cjk.c497 if ((limit - out) < 3) { in mb_iso2022jp_to_wchar()
507 if ((limit - out) < 2) { in mb_iso2022jp_to_wchar()
524 if ((limit - out) < 2) { in mb_iso2022jp_to_wchar()
603 unsigned char *out, *limit; in mb_wchar_to_iso2022jp() local
688 unsigned char *out, *limit; in mb_wchar_to_jis() local
1409 unsigned char *out, *limit; in mb_wchar_to_iso2022jp_kddi() local
2243 unsigned char *out, *limit; in mb_wchar_to_iso2022jp2004() local
5615 if ((limit - out) < 2) { in mb_sjismac_to_wchar()
11880 while (p < limit) { in step_through_gb18030_str()
11885 if (limit - p == 1) { in step_through_gb18030_str()
[all …]
H A Dmbfilter_qprint.c255 uint32_t *out = buf, *limit = buf + bufsize - 2; in mb_qprint_to_wchar() local
257 while (p < e && out < limit) { in mb_qprint_to_wchar()
304 unsigned char *out, *limit; in mb_wchar_to_qprint() local
305 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_qprint()
306 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_qprint()
320 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 2); in mb_wchar_to_qprint()
332 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 4); in mb_wchar_to_qprint()
339 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 3); in mb_wchar_to_qprint()
350 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_qprint()
H A Dmbfilter_utf16.c525 while (p < e && out < limit) { in mb_utf16be_to_wchar_default()
572 unsigned char *out, *limit; in mb_wchar_to_utf16be_default() local
573 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf16be_default()
592 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf16be_default()
603 while (p < e && out < limit) { in mb_utf16le_to_wchar_default()
650 unsigned char *out, *limit; in mb_wchar_to_utf16le_default() local
651 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf16le_default()
670 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf16le_default()
806 unsigned char *out, *limit; in mb_wchar_to_utf16be_avx2() local
807 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf16be_avx2()
[all …]
H A Dmbfilter_htmlent.c346 uint32_t *out = buf, *limit = buf + bufsize; in mb_htmlent_to_wchar() local
348 while (p < e && out < limit) { in mb_htmlent_to_wchar()
415 while (p < terminator && out < limit) { in mb_htmlent_to_wchar()
418 if (terminator < e && *terminator == ';' && out < limit) { in mb_htmlent_to_wchar()
435 unsigned char *out, *limit; in mb_wchar_to_htmlent() local
436 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_htmlent()
437 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_htmlent()
452 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 1 + strlen(entity->name)); in mb_wchar_to_htmlent()
463 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 12); in mb_wchar_to_htmlent()
486 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_htmlent()
/php-src/ext/opcache/tests/
H A Djmp_elim_002.phpt9 'type' => 'monthly', 'limit' => '',
17 if ( ! empty( $r['limit'] ) ) {
18 $r['limit'] = absint( $r['limit'] );
19 $r['limit'] = ' LIMIT ' . $r['limit'];
/php-src/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter_8bit.c100 uint32_t *out = buf, *limit = buf + bufsize; in mb_8bit_to_wchar() local
102 while (p < e && out < limit) { in mb_8bit_to_wchar()
114 unsigned char *out, *limit; in mb_wchar_to_8bit() local
115 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_8bit()
116 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_8bit()
123 MB_CONVERT_ERROR(buf, out, limit, w, mb_wchar_to_8bit); in mb_wchar_to_8bit()
124 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_8bit()
128 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_8bit()
H A Dmbfl_encoding.h138 unsigned char *limit; member
160 buf->limit = buf->out + initsize; in mb_convert_buf_init()
165 #define MB_CONVERT_BUF_ENSURE(buf, out, limit, needed) \ argument
166 ZEND_ASSERT(out <= limit); \
167 if ((limit - out) < (needed)) { \
172 limit = (unsigned char*)ZSTR_VAL(newstr) + newsize; \
180 #define MB_CONVERT_ERROR(buf, out, limit, bad_cp, conv_fn) \ argument
181 MB_CONVERT_BUF_STORE(buf, out, limit); \
183 MB_CONVERT_BUF_LOAD(buf, out, limit)
233 ZEND_ASSERT(buf->out <= buf->limit); in mb_convert_buf_result_raw()
[all …]
/php-src/tests/func/
H A D010.phpt12 $limit = $boundary+42;
32 for($i=0; $i < $limit; ++$i) {
33 $str .= '$v'.dechex($i).($i===($limit-1) ? '' : ',');
41 test($v'.dechex($limit-1).", '".dechex($limit-1).'\'); // last
50 for($i=0; $i< $limit; ++$i) {
51 $str .= "'".dechex($i)."'".($i===($limit-1) ? '' : ',');
/php-src/ext/pdo/tests/
H A Dbug_65946.phpt22 $sql = 'SELECT TOP :limit * FROM test65946';
25 $sql = 'SELECT TOP (:limit) * FROM test65946';
28 $sql = 'SELECT FIRST :limit * FROM test65946';
31 //$sql = 'SELECT * FROM test65946 FETCH FIRST :limit ROWS ONLY'; // Oracle 12c syntax
32 …"select id from (select a.*, rownum rnum from (SELECT * FROM test65946) a where rownum <= :limit)";
35 $sql = 'SELECT * FROM test65946 LIMIT :limit';
39 $stmt->bindValue('limit', 1, PDO::PARAM_INT);
/php-src/ext/pcre/pcre2lib/
H A Dpcre2_context.c377 ccontext->max_varlookbehind = limit; in pcre2_set_max_varlookbehind()
384 ccontext->parens_nest_limit = limit; in pcre2_set_parens_nest_limit()
427 pcre2_set_heap_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_heap_limit() argument
429 mcontext->heap_limit = limit; in pcre2_set_heap_limit()
434 pcre2_set_match_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_match_limit() argument
436 mcontext->match_limit = limit; in pcre2_set_match_limit()
441 pcre2_set_depth_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_depth_limit() argument
443 mcontext->depth_limit = limit; in pcre2_set_depth_limit()
448 pcre2_set_offset_limit(pcre2_match_context *mcontext, PCRE2_SIZE limit) in pcre2_set_offset_limit() argument
450 mcontext->offset_limit = limit; in pcre2_set_offset_limit()
[all …]
/php-src/ext/pcre/
H A Dphp_pcre.stub.php115 …ng|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = nu… argument
121 …ng|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = nu… argument
127 …ck(string|array $pattern, callable $callback, string|array $subject, int $limit = -1, &$count = nu… argument
130 function preg_replace_callback_array(array $pattern, string|array $subject, int $limit = -1, &$coun… argument
136 function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false… argument
/php-src/ext/standard/tests/serialize/
H A Dmax_depth.phpt79 echo "Nested unserialize combined depth limit:\n";
90 // If depth limit is overridden, the depth should be counted
102 echo "Nested unserialize overridden depth limit:\n";
116 Warning: unserialize(): Maximum depth of 128 exceeded. The depth limit can be changed using the max…
123 Warning: unserialize(): Maximum depth of 128 exceeded. The depth limit can be changed using the max…
130 Warning: unserialize(): Maximum depth of 128 exceeded. The depth limit can be changed using the max…
137 Warning: unserialize(): Maximum depth of 256 exceeded. The depth limit can be changed using the max…
143 Nested unserialize combined depth limit:
145 Warning: unserialize(): Maximum depth of 256 exceeded. The depth limit can be changed using the max…
153 Nested unserialize overridden depth limit:
[all …]
/php-src/ext/pcre/tests/
H A Derrors01.phpt2 Test preg_split() function : error conditions - Recursion limit exhausted
10 var_dump(preg_last_error_msg() === 'Recursion limit exhausted');
/php-src/ext/sockets/tests/
H A Dmcast_helpers.php.inc2 function checktimeout($sock, $limit) {
5 if (socket_select($readfs, $writefs, $exceptfs, 0, $limit*1000) != 1) {
/php-src/ext/spl/tests/SplObjectStorage/
H A Dbug61453.phpt5 $limit = 1000;
7 for($i = 0; $i < $limit; $i++){
/php-src/ext/intl/transliterator/
H A Dtransliterator_methods.c275 limit = -1; in PHP_FUNCTION() local
294 Z_PARAM_LONG(limit) in PHP_FUNCTION()
316 …} else if(zend_parse_parameters( ZEND_NUM_ARGS(), "s|ll", &str, &str_len, &start, &limit) == FAILU… in PHP_FUNCTION()
320 if (limit < -1) { in PHP_FUNCTION()
330 if (limit != -1 && start > limit) { in PHP_FUNCTION()
344 if( ( start > ustr_len ) || (( limit != -1 ) && (limit > ustr_len ) ) ) in PHP_FUNCTION()
365 int32_t temp_limit = ( limit == -1 ? ustr_len : (int32_t) limit ); in PHP_FUNCTION()
/php-src/ext/mysqli/tests/
H A Dmysqli_fetch_array_large.phpt43 /* buffered result set - let's hope we do not run into PHP memory limit... */
89 function parse_memory_limit($limit) {
91 $val = trim($limit);
126 … $limit = (ini_get('memory_limit') > 0) ? parse_memory_limit(ini_get('memory_limit')) : pow(2, 32);
128 /* try to respect php.ini but make run time a soft limit */
133 if ($package_size > $limit) {
134 printf("stop: memory limit - %s vs. %s\n", $package_size, $limit);
148 printf("stop: time limit - %2.2fs\n", $max_runtime);

Completed in 87 milliseconds

12345678