Home
last modified time | relevance | path

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

123456

/PHP-8.1/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.1/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.1/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.1/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.1/ext/pcre/
H A Dphp_pcre.stub.php15 …ng|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = nu… argument
21 …ng|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = nu… argument
27 …ck(string|array $pattern, callable $callback, string|array $subject, int $limit = -1, &$count = nu… argument
30 function preg_replace_callback_array(array $pattern, string|array $subject, int $limit = -1, &$coun… argument
36 function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false… argument
H A Dphp_pcre_arginfo.h18 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, limit, IS_LONG, 0, "-1")
28 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, limit, IS_LONG, 0, "-1")
36 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, limit, IS_LONG, 0, "-1")
44 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, limit, IS_LONG, 0, "-1")
/PHP-8.1/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()
450 pcre2_set_recursion_limit(pcre2_match_context *mcontext, uint32_t limit) in pcre2_set_recursion_limit() argument
[all …]
/PHP-8.1/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');
H A Derrors04.phpt2 Test preg_match_all() function : error conditions - Backtracking limit
16 var_dump(preg_last_error_msg() === 'Backtrack limit exhausted');
/PHP-8.1/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.1/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.1/ext/spl/tests/
H A Dbug61453.phpt5 $limit = 1000;
7 for($i = 0; $i < $limit; $i++){
/PHP-8.1/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-8.1/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.1/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);
H A Dmysqli_mysqlnd_read_timeout.phpt2 mysqlnd.net_read_timeout limit check
10 …/* The libmysql read_timeout limit default is 365 * 24 * 3600 seconds. It cannot be altered throug…
/PHP-8.1/ext/standard/
H A Dmt_rand.c216 uint32_t result, limit; in rand_range32() local
234 limit = UINT32_MAX - (UINT32_MAX % umax) - 1; in rand_range32()
237 while (UNEXPECTED(result > limit)) { in rand_range32()
246 uint64_t result, limit; in rand_range64() local
265 limit = UINT64_MAX - (UINT64_MAX % umax) - 1; in rand_range64()
268 while (UNEXPECTED(result > limit)) { in rand_range64()
/PHP-8.1/sapi/fpm/tests/
H A Dghsa-54hq-v5wp-fqgv-max-body-parts-default.phpt48 Warning: Unknown: Input variables exceeded 20. To increase the limit change max_input_vars in php.i…
50 Warning: Unknown: Multipart body parts limit exceeded 25. To increase the limit change max_multipar…
H A Dbug78323.phpt14 passthru("$php --memory-limit=1G 2>&1", $exitCode);
25 passthru("$php -dmemory-limit=1G -v", $exitCode);
/PHP-8.1/sapi/cgi/tests/
H A Dbug78323.phpt14 passthru("$php --memory-limit=1G 2>&1", $exitCode);
26 passthru("$php -dmemory-limit=1G -v", $exitCode);
/PHP-8.1/Zend/asm/
H A Dmake_x86_64_ms_pe_masm.asm54 ; | limit | base | R12 | R13 |
117 ; save bottom address of context stack as 'limit'
/PHP-8.1/ext/mbstring/tests/
H A Dmbregex_stack_limit2.phpt2 Test oniguruma stack limit
31 Warning: mb_ereg_replace(): mbregex search failure in php_mbereg_replace_exec(): match-stack limit
/PHP-8.1/ext/exif/tests/
H A Dbug68799.phpt17 function doStuff ($limit) {
22 for ($i = 0; $i < $limit; $i++) {
/PHP-8.1/ext/gmp/tests/
H A Dgmp_random_bits.phpt25 $limit = (2 ** 30) - 1;
29 if ($result < 0 || $result > $limit) {

Completed in 29 milliseconds

123456