Home
last modified time | relevance | path

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

123456

/PHP-7.1/ext/standard/tests/strings/
H A Dexplode_variation6.phpt15 echo "\n-- positive limit with null separator --\n";
24 echo "\n-- limit = 0 --\n";
27 echo "\n-- limit = -1 --\n";
30 echo "\n-- large limit = -100 --\n";
33 function test_explode($delim, $string, $limit)
35 $e = explode($delim, $string, $limit);
46 -- positive limit with null separator --
50 -- negative limit (since PHP 5.1) with null separator --
57 -- limit = 0 --
60 -- limit = -1 --
[all …]
H A Dexplode_variation5.phpt6 /* Prototype : array explode ( string $delimiter , string $string [, int $limit ] )
14 echo "\n-- positive limit --\n";
17 echo "\n-- negative limit (since PHP 5.1) --\n";
20 echo "\n-- negative limit (since PHP 5.1) with null string -- \n";
27 -- positive limit --
35 -- negative limit (since PHP 5.1) --
45 -- negative limit (since PHP 5.1) with null string --
H A Dexplode_error.phpt6 /* Prototype : array explode ( string $delimiter , string $string [, int $limit ] )
19 $limit = 5;
21 var_dump( explode($delimiter, $string, $limit, $extra_arg) );
H A Dexplode_variation7.phpt3 EXPLODE_ALLOC_STEP (64) and the $limit is negative
9 /* Prototype : array explode ( string $delimiter , string $string [, int $limit ] )
H A Dexplode_variation3.phpt2 Test explode() function : usage variations - test values for $limit argument
6 /* Prototype : array explode ( string $delimiter , string $string [, int $limit ] )
11 echo "*** Testing explode() function: with unexpected inputs for 'limit' argument ***\n";
75 foreach($limits as $limit) {
77 var_dump( explode($delimiter, $string, $limit) );
86 *** Testing explode() function: with unexpected inputs for 'limit' argument ***
/PHP-7.1/ext/pcre/pcrelib/sljit/
H A DsljitUtils.c203 SLJIT_API_FUNC_ATTRIBUTE struct sljit_stack* SLJIT_CALL sljit_allocate_stack(sljit_uw limit, sljit_… in sljit_allocate_stack() argument
215 if (limit > max_limit || limit < 1) in sljit_allocate_stack()
247 stack->limit = stack->base; in sljit_allocate_stack()
249 if (sljit_stack_resize(stack, stack->base + limit)) { in sljit_allocate_stack()
270 stack->limit = stack->base + limit; in sljit_allocate_stack()
299 aligned_old_limit = (stack->limit + sljit_page_align) & ~sljit_page_align; in sljit_stack_resize()
310 stack->limit = new_limit; in sljit_stack_resize()
313 if (new_limit >= stack->limit) { in sljit_stack_resize()
314 stack->limit = new_limit; in sljit_stack_resize()
318 aligned_old_limit = (stack->limit + sljit_page_align) & ~sljit_page_align; in sljit_stack_resize()
[all …]
/PHP-7.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-7.1/ext/pdo/tests/
H A Dbug_65946.phpt21 // if :limit is used, the value will be quoted as '1', which is invalid syntax
26 $sql = 'SELECT TOP (:limit) * FROM test';
29 $sql = 'SELECT FIRST :limit * FROM test';
32 //$sql = 'SELECT * FROM test FETCH FIRST :limit ROWS ONLY'; // Oracle 12c syntax
33 …ql = "select id from (select a.*, rownum rnum from (SELECT * FROM test) a where rownum <= :limit)";
36 $sql = 'SELECT * FROM test LIMIT :limit';
40 $stmt->bindValue('limit', 1, PDO::PARAM_INT);
/PHP-7.1/sapi/fpm/tests/
H A Dlogtool.inc34 private $limit;
48 * @param int $limit
54 $this->limit = $limit;
93 if ($lineLen === $this->limit) {
199 … "The continuous line length is $lineLen but it should equal to limit $this->limit"
233 "The line length is $lineLen which is higher than limit $this->limit"
419 'limit' => 1050,
434 'limit' => 1050,
450 'limit' => 1024,
456 'limit' => 1024,
[all …]
/PHP-7.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-7.1/ext/mysqli/tests/
H A Dmysqli_fetch_array_large.phpt39 /* buffered result set - let's hope we do not run into PHP memory limit... */
85 function parse_memory_limit($limit) {
87 $val = trim($limit);
122 $limit = (ini_get('memory_limit') > 0) ? parse_memory_limit(ini_get('memory_limit')) : pow(2, 32);
124 /* try to respect php.ini but make run time a soft limit */
129 if ($package_size > $limit) {
130 printf("stop: memory limit - %s vs. %s\n", $package_size, $limit);
144 printf("stop: time limit - %2.2fs\n", $max_runtime);
H A Dmysqli_mysqlnd_read_timeout.phpt2 mysqlnd.net_read_timeout limit check
9 …/* The libmysql read_timeout limit default is 365 * 24 * 3600 seconds. It cannot be altered throug…
/PHP-7.1/ext/spl/tests/
H A Dbug61453.phpt5 $limit = 1000;
7 for($i = 0; $i < $limit; $i++){
/PHP-7.1/ext/intl/transliterator/
H A Dtransliterator_methods.c305 limit = -1; in PHP_FUNCTION() local
318 &arg1, &str, &str_len, &start, &limit ) == FAILURE ) in PHP_FUNCTION()
353 &str, &str_len, &start, &limit ) == FAILURE ) in PHP_FUNCTION()
360 if( limit < -1 ) in PHP_FUNCTION()
368 if( start < 0 || ((limit != -1 ) && (start > limit )) ) in PHP_FUNCTION()
386 if( ( start > ustr_len ) || (( limit != -1 ) && (limit > ustr_len ) ) ) in PHP_FUNCTION()
408 int32_t temp_limit = ( limit == -1 ? ustr_len : (int32_t) limit ); in PHP_FUNCTION()
/PHP-7.1/ext/standard/tests/network/
H A Dbug68925.phpt9 Warning: gethostbyname(): Host name is too long, the limit is %d characters in %s%ebug68925.php on …
12 Warning: gethostbynamel(): Host name is too long, the limit is %d characters in %s%ebug68925.php on…
/PHP-7.1/sapi/cli/tests/
H A D006.phpt87 Parameter #3 [ <optional> $limit ]
97 Parameter #3 [ <optional> $limit ]
106 Parameter #2 [ <optional> $limit ]
116 Parameter #3 [ <optional> $limit ]
125 Parameter #2 [ <optional> $limit ]
/PHP-7.1/TSRM/
H A Dtsrm_config_common.h61 # define tsrm_do_alloca_ex(size, limit, use_heap) \ argument
62 ((use_heap = ((size) > (limit))) ? malloc(size) : alloca(size))
/PHP-7.1/ext/pcre/tests/
H A Dpreg_replace_error.phpt6 * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
18 $limit = 10;
20 var_dump(preg_replace($regex, $replace, $subject, $limit, $count, $extra_arg));
H A Dpreg_split_error.phpt6 * proto array preg_split(string pattern, string subject [, int limit [, int flags]])
17 $limit = 10;
20 var_dump(preg_split($pattern, $subject, $limit, $flags, $extra_arg));
H A Dpreg_replace_callback_error.phpt6 * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
22 $limit = 10;
24 var_dump(preg_replace_callback($regex, 'integer_word', $subject, $limit, $count, $extra_arg));
/PHP-7.1/ext/mbstring/tests/
H A Dmb_split_error.phpt10 /* Prototype : proto array mb_split(string pattern, string string [, int limit])
27 $limit = 0;
29 var_dump( mb_split($pattern, $string, $limit, $extra_arg) );
/PHP-7.1/ext/exif/tests/
H A Dbug68799.phpt17 function doStuff ($limit) {
22 for ($i = 0; $i < $limit; $i++) {
/PHP-7.1/win32/
H A Dselect.c39 ULONGLONG ms_total, limit; in php_select() local
100 limit = GetTickCount64() + ms_total; in php_select()
152 } while (retcode == 0 && (ms_total == INFINITE || GetTickCount64() < limit)); in php_select()
/PHP-7.1/ext/spl/internal/
H A Dinfiniteiterator.inc26 $limit = new LimitIterator($infinite, 0, 5);
27 foreach($limit as $val=>$key)
/PHP-7.1/ext/gmp/tests/
H A Dgmp_random_bits.phpt18 $limit = (2 ** 30) - 1;
22 if ($result < 0 || $result > $limit) {

Completed in 28 milliseconds

123456