/PHP-8.2/ext/standard/tests/strings/ |
H A D | explode_variation6.phpt | 10 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 D | explode_variation5.phpt | 9 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.2/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_singlebyte.c | 105 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 D | mbfilter_7bit.c | 91 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 D | mbfilter_ucs2.c | 270 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 D | mbfilter_utf32.c | 285 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 D | mbfilter_ucs4.c | 353 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 D | mbfilter_utf8_mobile.c | 349 while (p < e && out < limit) { in mb_mobile_utf8_to_wchar() 450 unsigned char *out, *limit; in mb_wchar_to_utf8_docomo() local 451 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf8_docomo() 452 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_utf8_docomo() 517 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf8_docomo() 527 unsigned char *out, *limit; in mb_wchar_to_utf8_kddi() local 528 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf8_kddi() 614 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf8_kddi() 639 unsigned char *out, *limit; in mb_wchar_to_utf8_sb() local 640 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf8_sb() [all …]
|
H A D | mbfilter_jis.c | 481 while (p < e && out < limit) { in mb_iso2022jp_to_wchar() 509 if ((limit - out) < 3) { in mb_iso2022jp_to_wchar() 519 if ((limit - out) < 2) { in mb_iso2022jp_to_wchar() 536 if ((limit - out) < 2) { in mb_iso2022jp_to_wchar() 615 unsigned char *out, *limit; in mb_wchar_to_iso2022jp() local 616 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_iso2022jp() 691 MB_CONVERT_BUF_ENSURE(buf, out, limit, 3); in mb_wchar_to_iso2022jp() 695 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_iso2022jp() 700 unsigned char *out, *limit; in mb_wchar_to_jis() local 701 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_jis() [all …]
|
H A D | mbfilter_utf16.c | 378 uint32_t *out = buf, *limit = buf + bufsize - 1; in mb_utf16be_to_wchar() local 380 while (p < e && out < limit) { in mb_utf16be_to_wchar() 414 if (p == e && (*in_len & 0x1) && out < limit) { in mb_utf16be_to_wchar() 427 unsigned char *out, *limit; in mb_wchar_to_utf16be() local 428 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf16be() 447 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf16be() 458 while (p < e && out < limit) { in mb_utf16le_to_wchar() 492 if (p == e && (*in_len & 0x1) && out < limit) { in mb_utf16le_to_wchar() 505 unsigned char *out, *limit; in mb_wchar_to_utf16le() local 506 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf16le() [all …]
|
H A D | mbfilter_cp5022x.c | 853 while (p < e && out < limit) { in mb_cp5022x_to_wchar() 881 if ((limit - out) < 3) { in mb_cp5022x_to_wchar() 891 if ((limit - out) < 2) { in mb_cp5022x_to_wchar() 908 if ((limit - out) < 2) { in mb_cp5022x_to_wchar() 1046 unsigned char *out, *limit; in mb_wchar_to_cp50220() local 1047 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_cp50220() 1123 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_cp50220() 1128 unsigned char *out, *limit; in mb_wchar_to_cp50221() local 1129 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_cp50221() 1185 unsigned char *out, *limit; in mb_wchar_to_cp50222() local [all …]
|
H A D | mbfilter_utf8.c | 222 uint32_t *out = buf, *limit = buf + bufsize; in mb_utf8_to_wchar() local 224 while (p < e && out < limit) { in mb_utf8_to_wchar() 312 unsigned char *out, *limit; in mb_wchar_to_utf8() local 313 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf8() 314 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_utf8() 321 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 2); in mb_wchar_to_utf8() 324 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 3); in mb_wchar_to_utf8() 327 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 4); in mb_wchar_to_utf8() 330 MB_CONVERT_ERROR(buf, out, limit, w, mb_wchar_to_utf8); in mb_wchar_to_utf8() 331 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_utf8() [all …]
|
H A D | mbfilter_big5.c | 394 uint32_t *out = buf, *limit = buf + bufsize; in mb_big5_to_wchar() local 396 while (p < e && out < limit) { in mb_big5_to_wchar() 425 unsigned char *out, *limit; in mb_wchar_to_big5() local 426 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_big5() 427 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_big5() 462 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_big5() 468 uint32_t *out = buf, *limit = buf + bufsize; in mb_cp950_to_wchar() local 470 while (p < e && out < limit) { in mb_cp950_to_wchar() 556 unsigned char *out, *limit; in mb_wchar_to_cp950() local 557 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_cp950() [all …]
|
H A D | mbfilter_sjis.c | 257 uint32_t *out = buf, *limit = buf + bufsize; in mb_sjis_to_wchar() local 259 while (p < e && out < limit) { in mb_sjis_to_wchar() 295 unsigned char *out, *limit; in mb_wchar_to_sjis() local 296 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_sjis() 297 MB_CONVERT_BUF_ENSURE(buf, out, limit, len * 2); in mb_wchar_to_sjis() 331 MB_CONVERT_ERROR(buf, out, limit, w, mb_wchar_to_sjis); in mb_wchar_to_sjis() 332 MB_CONVERT_BUF_ENSURE(buf, out, limit, len * 2); in mb_wchar_to_sjis() 336 MB_CONVERT_ERROR(buf, out, limit, w, mb_wchar_to_sjis); in mb_wchar_to_sjis() 337 MB_CONVERT_BUF_ENSURE(buf, out, limit, len * 2); in mb_wchar_to_sjis() 352 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_sjis()
|
H A D | mbfilter_hz.c | 266 uint32_t *out = buf, *limit = buf + bufsize; in mb_hz_to_wchar() local 268 while (p < e && out < limit) { in mb_hz_to_wchar() 327 unsigned char *out, *limit; in mb_wchar_to_hz() local 328 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_hz() 329 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_hz() 375 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_hz() 379 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 3); in mb_wchar_to_hz() 384 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 2); in mb_wchar_to_hz() 392 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 4); in mb_wchar_to_hz() 404 MB_CONVERT_BUF_ENSURE(buf, out, limit, 2); in mb_wchar_to_hz() [all …]
|
H A D | mbfilter_iso2022_kr.c | 286 uint32_t *out = buf, *limit = buf + bufsize; in mb_iso2022kr_to_wchar() local 288 while (p < e && out < limit) { in mb_iso2022kr_to_wchar() 362 unsigned char *out, *limit; in mb_wchar_to_iso2022kr() local 363 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_iso2022kr() 370 MB_CONVERT_BUF_ENSURE(buf, out, limit, 4 + len); in mb_wchar_to_iso2022kr() 374 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_iso2022kr() 405 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_iso2022kr() 408 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 2); in mb_wchar_to_iso2022kr() 415 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 3); in mb_wchar_to_iso2022kr() 426 MB_CONVERT_BUF_ENSURE(buf, out, limit, 1); in mb_wchar_to_iso2022kr() [all …]
|
H A D | mbfilter_euc_kr.c | 211 uint32_t *out = buf, *limit = buf + bufsize; in mb_euckr_to_wchar() local 213 while (p < e && out < limit) { in mb_euckr_to_wchar() 250 unsigned char *out, *limit; in mb_wchar_to_euckr() local 251 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_euckr() 252 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_euckr() 283 MB_CONVERT_ERROR(buf, out, limit, w, mb_wchar_to_euckr); in mb_wchar_to_euckr() 284 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_euckr() 289 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 2); in mb_wchar_to_euckr() 294 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_euckr()
|
H A D | mbfilter_qprint.c | 262 uint32_t *out = buf, *limit = buf + bufsize - 2; in mb_qprint_to_wchar() local 264 while (p < e && out < limit) { in mb_qprint_to_wchar() 311 unsigned char *out, *limit; in mb_wchar_to_qprint() local 312 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_qprint() 313 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_qprint() 327 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 2); in mb_wchar_to_qprint() 339 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 4); in mb_wchar_to_qprint() 346 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 3); in mb_wchar_to_qprint() 357 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_qprint()
|
/PHP-8.2/ext/opcache/tests/ |
H A D | jmp_elim_002.phpt | 9 'type' => 'monthly', 'limit' => '', 17 if ( ! empty( $r['limit'] ) ) { 18 $r['limit'] = absint( $r['limit'] ); 19 $r['limit'] = ' LIMIT ' . $r['limit'];
|
/PHP-8.2/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfilter_8bit.c | 99 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 D | mbfl_encoding.h | 136 unsigned char *limit; member 157 buf->limit = buf->out + initsize; in mb_convert_buf_init() 162 #define MB_CONVERT_BUF_ENSURE(buf, out, limit, needed) \ argument 163 ZEND_ASSERT(out <= limit); \ 164 if ((limit - out) < (needed)) { \ 165 size_t oldsize = limit - (unsigned char*)ZSTR_VAL(buf->str); \ 169 limit = (unsigned char*)ZSTR_VAL(newstr) + newsize; \ 177 #define MB_CONVERT_ERROR(buf, out, limit, bad_cp, conv_fn) \ argument 178 MB_CONVERT_BUF_STORE(buf, out, limit); \ 180 MB_CONVERT_BUF_LOAD(buf, out, limit) [all …]
|
/PHP-8.2/tests/func/ |
H A D | 010.phpt | 12 $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.2/ext/pdo/tests/ |
H A D | bug_65946.phpt | 22 $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.2/ext/pcre/ |
H A D | php_pcre.stub.php | 111 …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.2/ext/pcre/pcre2lib/ |
H A D | pcre2_context.c | 376 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() 450 pcre2_set_recursion_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_recursion_limit() argument [all …]
|