Home
last modified time | relevance | path

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

12345678

/PHP-8.3/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-8.3/ext/mbstring/libmbfl/filters/
H A Dmbfilter_singlebyte.c105 while (p < e && out < limit) { \
115 unsigned char *out, *limit; \
163 while (p < e && out < limit) { in mb_ascii_to_wchar()
175 unsigned char *out, *limit; in mb_wchar_to_ascii() local
176 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_ascii()
217 while (p < e && out < limit) { in mb_8859_1_to_wchar()
228 unsigned char *out, *limit; in mb_wchar_to_8859_1() local
533 while (p < e && out < limit) { in mb_cp1252_to_wchar()
550 unsigned char *out, *limit; in mb_wchar_to_cp1252() local
734 while (p < e && out < limit) { in mb_armscii8_to_wchar()
[all …]
H A Dmbfilter_7bit.c91 uint32_t *out = buf, *limit = buf + bufsize; in mb_7bit_to_wchar() local
93 while (p < e && out < limit) { in mb_7bit_to_wchar()
105 unsigned char *out, *limit; in mb_wchar_to_7bit() local
106 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_7bit()
107 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_7bit()
114 MB_CONVERT_ERROR(buf, out, limit, w, mb_wchar_to_7bit); in mb_wchar_to_7bit()
115 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_7bit()
119 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_7bit()
H A Dmbfilter_ucs2.c270 uint32_t *out = buf, *limit = buf + bufsize; in mb_ucs2be_to_wchar() local
272 while (p < e && out < limit) { in mb_ucs2be_to_wchar()
279 if (p == e && (*in_len & 0x1) && out < limit) { in mb_ucs2be_to_wchar()
292 unsigned char *out, *limit; in mb_wchar_to_ucs2be() local
293 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_ucs2be()
306 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_ucs2be()
312 uint32_t *out = buf, *limit = buf + bufsize; in mb_ucs2le_to_wchar() local
314 while (p < e && out < limit) { in mb_ucs2le_to_wchar()
334 unsigned char *out, *limit; in mb_wchar_to_ucs2le() local
335 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_ucs2le()
[all …]
H A Dmbfilter_utf32.c285 uint32_t *out = buf, *limit = buf + bufsize; in mb_utf32be_to_wchar() local
287 while (p < e && out < limit) { in mb_utf32be_to_wchar()
301 if (p == e && (*in_len & 0x3) && out < limit) { in mb_utf32be_to_wchar()
314 unsigned char *out, *limit; in mb_wchar_to_utf32be() local
315 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf32be()
328 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf32be()
334 uint32_t *out = buf, *limit = buf + bufsize; in mb_utf32le_to_wchar() local
336 while (p < e && out < limit) { in mb_utf32le_to_wchar()
363 unsigned char *out, *limit; in mb_wchar_to_utf32le() local
364 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf32le()
[all …]
H A Dmbfilter_ucs4.c353 uint32_t *out = buf, *limit = buf + bufsize; in mb_ucs4be_to_wchar() local
355 while (p < e && out < limit) { in mb_ucs4be_to_wchar()
364 if (p == e && (*in_len & 0x3) && out < limit) { in mb_ucs4be_to_wchar()
377 unsigned char *out, *limit; in mb_wchar_to_ucs4be() local
378 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_ucs4be()
391 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_ucs4be()
397 uint32_t *out = buf, *limit = buf + bufsize; in mb_ucs4le_to_wchar() local
399 while (p < e && out < limit) { in mb_ucs4le_to_wchar()
421 unsigned char *out, *limit; in mb_wchar_to_ucs4le() local
422 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_ucs4le()
[all …]
H A Dmbfilter_utf8_mobile.c409 while (p < e && out < limit) { in mb_mobile_utf8_to_wchar()
510 unsigned char *out, *limit; in mb_wchar_to_utf8_docomo() local
511 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf8_docomo()
512 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_utf8_docomo()
577 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf8_docomo()
587 unsigned char *out, *limit; in mb_wchar_to_utf8_kddi() local
588 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf8_kddi()
674 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf8_kddi()
699 unsigned char *out, *limit; in mb_wchar_to_utf8_sb() local
700 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf8_sb()
[all …]
H A Dmbfilter_cjk.c480 if ((limit - out) < 3) { in mb_iso2022jp_to_wchar()
490 if ((limit - out) < 2) { in mb_iso2022jp_to_wchar()
507 if ((limit - out) < 2) { in mb_iso2022jp_to_wchar()
586 unsigned char *out, *limit; in mb_wchar_to_iso2022jp() local
671 unsigned char *out, *limit; in mb_wchar_to_jis() local
1392 unsigned char *out, *limit; in mb_wchar_to_iso2022jp_kddi() local
2226 unsigned char *out, *limit; in mb_wchar_to_iso2022jp2004() local
3303 unsigned char *out, *limit; in mb_wchar_to_cp50220() local
3385 unsigned char *out, *limit; in mb_wchar_to_cp50221() local
3442 unsigned char *out, *limit; in mb_wchar_to_cp50222() local
[all …]
H A Dmbfilter_utf8.c222 uint32_t *out = buf, *limit = buf + bufsize; in mb_utf8_to_wchar() local
224 while (p < e && out < limit) { in mb_utf8_to_wchar()
313 unsigned char *out, *limit; in mb_wchar_to_utf8() local
314 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf8()
315 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_utf8()
322 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 2); in mb_wchar_to_utf8()
325 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 3); in mb_wchar_to_utf8()
328 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 4); in mb_wchar_to_utf8()
331 MB_CONVERT_ERROR(buf, out, limit, w, mb_wchar_to_utf8); in mb_wchar_to_utf8()
332 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_utf8()
[all …]
H A Dmbfilter_utf16.c519 while (p < e && out < limit) { in mb_utf16be_to_wchar_default()
566 unsigned char *out, *limit; in mb_wchar_to_utf16be_default() local
567 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf16be_default()
586 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf16be_default()
597 while (p < e && out < limit) { in mb_utf16le_to_wchar_default()
644 unsigned char *out, *limit; in mb_wchar_to_utf16le_default() local
645 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf16le_default()
664 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf16le_default()
800 unsigned char *out, *limit; in mb_wchar_to_utf16be_avx2() local
801 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf16be_avx2()
[all …]
H A Dmbfilter_qprint.c254 uint32_t *out = buf, *limit = buf + bufsize - 2; in mb_qprint_to_wchar() local
256 while (p < e && out < limit) { in mb_qprint_to_wchar()
303 unsigned char *out, *limit; in mb_wchar_to_qprint() local
304 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_qprint()
305 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_qprint()
319 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 2); in mb_wchar_to_qprint()
331 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 4); in mb_wchar_to_qprint()
338 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 3); in mb_wchar_to_qprint()
349 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_qprint()
/PHP-8.3/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-8.3/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter_8bit.c99 uint32_t *out = buf, *limit = buf + bufsize; in mb_8bit_to_wchar() local
101 while (p < e && out < limit) { in mb_8bit_to_wchar()
113 unsigned char *out, *limit; in mb_wchar_to_8bit() local
114 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_8bit()
115 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_8bit()
122 MB_CONVERT_ERROR(buf, out, limit, w, mb_wchar_to_8bit); in mb_wchar_to_8bit()
123 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_8bit()
127 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_8bit()
H A Dmbfl_encoding.h137 unsigned char *limit; member
158 buf->limit = buf->out + initsize; in mb_convert_buf_init()
163 #define MB_CONVERT_BUF_ENSURE(buf, out, limit, needed) \ argument
164 ZEND_ASSERT(out <= limit); \
165 if ((limit - out) < (needed)) { \
170 limit = (unsigned char*)ZSTR_VAL(newstr) + newsize; \
178 #define MB_CONVERT_ERROR(buf, out, limit, bad_cp, conv_fn) \ argument
179 MB_CONVERT_BUF_STORE(buf, out, limit); \
181 MB_CONVERT_BUF_LOAD(buf, out, limit)
231 ZEND_ASSERT(buf->out <= buf->limit); in mb_convert_buf_result_raw()
[all …]
/PHP-8.3/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-8.3/ext/pdo/tests/
H A Dbug_65946.phpt22 $sql = 'SELECT TOP :limit * FROM test';
25 $sql = 'SELECT TOP (:limit) * FROM test';
28 $sql = 'SELECT FIRST :limit * FROM test';
31 //$sql = 'SELECT * FROM test FETCH FIRST :limit ROWS ONLY'; // Oracle 12c syntax
32 …ql = "select id from (select a.*, rownum rnum from (SELECT * FROM test) a where rownum <= :limit)";
35 $sql = 'SELECT * FROM test LIMIT :limit';
39 $stmt->bindValue('limit', 1, PDO::PARAM_INT);
/PHP-8.3/ext/pcre/
H A Dphp_pcre.stub.php111 …ng|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = nu… argument
117 …ng|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = nu… argument
123 …ck(string|array $pattern, callable $callback, string|array $subject, int $limit = -1, &$count = nu… argument
126 function preg_replace_callback_array(array $pattern, string|array $subject, int $limit = -1, &$coun… argument
132 function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false… argument
/PHP-8.3/ext/pcre/pcre2lib/
H A Dpcre2_context.c376 ccontext->parens_nest_limit = limit; in pcre2_set_parens_nest_limit()
419 pcre2_set_heap_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_heap_limit() argument
421 mcontext->heap_limit = limit; in pcre2_set_heap_limit()
426 pcre2_set_match_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_match_limit() argument
428 mcontext->match_limit = limit; in pcre2_set_match_limit()
433 pcre2_set_depth_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_depth_limit() argument
435 mcontext->depth_limit = limit; in pcre2_set_depth_limit()
440 pcre2_set_offset_limit(pcre2_match_context *mcontext, PCRE2_SIZE limit) in pcre2_set_offset_limit() argument
442 mcontext->offset_limit = limit; in pcre2_set_offset_limit()
453 pcre2_set_recursion_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_recursion_limit() argument
[all …]
/PHP-8.3/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-8.3/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-8.3/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-8.3/ext/spl/tests/
H A Dbug61453.phpt5 $limit = 1000;
7 for($i = 0; $i < $limit; $i++){
/PHP-8.3/Zend/tests/
H A Dbug81070.phpt2 Bug #81070 Setting memory limit to below current usage
13 Warning: Failed to set memory limit to 3145728 bytes (Current memory usage is %d bytes) in %s on li…
/PHP-8.3/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()

Completed in 87 milliseconds

12345678