Home
last modified time | relevance | path

Searched refs:count (Results 26 – 50 of 1307) sorted by relevance

12345678910>>...53

/PHP-7.3/ext/standard/tests/array/
H A Dcount_variation1.phpt2 Test count() function : usage variations - Pass different data types as $var arg
5 /* Prototype : int count(mixed $var [, int $mode])
11 * aPass different data types as $var argument to count() to test behaviour
14 echo "*** Testing count() : usage variations ***\n";
84 // loop through each element of $inputs to check the behavior of count()
88 var_dump( count($input) );
97 *** Testing count() : usage variations ***
101 Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
106 Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
111 Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
[all …]
H A Dcount_variation3.phpt2 Test count() function : usage variations - Infinitely recursive array
5 /* Prototype : int count(mixed $var [, int $mode])
11 * Pass count() an infinitely recursive array as $var argument
15 echo "*** Testing count() : usage variations ***\n";
22 var_dump(count ($array1));
25 var_dump(count ($array1, 1));
30 *** Testing count() : usage variations ***
37 Warning: count(): recursion detected in %s on line %d
H A Darray_walk_variation3.phpt17 * Prototype : print_value(mixed $value, int $key, int $count)
20 * $count - extra parameter used as an index
21 * Description : prints the array values with keys and count value
23 function print_value($value, $key, $count)
25 echo $count." : ".$key." ".$value."\n";
58 for($count = 0; $count < count($input_values); $count++) {
59 echo "\n-- Iteration ".($count + 1)." --\n";
60 var_dump( array_walk($input_values[$count], "print_value", $count+1));
H A Dcount_symbol_table.phpt2 Test count() function : count on symbol table
10 $c1 = count($GLOBALS);
13 $c2 = count($GLOBALS);
17 $c1 = count($GLOBALS);
H A Darray_walk_recursive_variation3.phpt17 * Prototype : print_value(mixed $value, int $key, int $count)
20 * $count - extra parameter used as an index
21 * Description : prints the array values with keys and count value
23 function print_value($value, $key, $count)
25 echo $count." : ".$key." ".$value."\n";
58 for($count = 0; $count < count($input_values); $count++) {
59 echo "\n-- Iteration ".($count + 1)." --\n";
60 var_dump( array_walk_recursive($input_values[$count], "print_value", $count+1));
/PHP-7.3/ext/hash/
H A Dhash_sha.c204 context->count[0] = context->count[1] = 0; in PHP_SHA1Init()
340 context->count[1]++; in PHP_SHA1Update()
461 context->count[0] = context->count[1] = 0; in PHP_SHA256Init()
521 context->count[0] = context->count[1] = 0; in PHP_SHA224Init()
549 context->count[1]++; in PHP_SHA224Update()
626 context->count[1]++; in PHP_SHA256Update()
770 context->count[0] = context->count[1] = 0; in PHP_SHA384Init()
840 context->count[1]++; in PHP_SHA384Update()
927 context->count[0] = context->count[1] = 0; in PHP_SHA512Init()
946 context->count[0] = context->count[1] = 0; in PHP_SHA512_256Init()
[all …]
/PHP-7.3/ext/bcmath/libbcmath/src/
H A Dzero.c46 int count; in bc_is_zero() local
53 count = num->n_len + num->n_scale; in bc_is_zero()
57 while ((count > 0) && (*nptr++ == 0)) count--; in bc_is_zero()
59 if (count != 0) in bc_is_zero()
/PHP-7.3/ext/standard/tests/strings/
H A Dbug24281.phpt2 Bug #24281 (str_replace count not returned if variable wasn't initialized)
6 $newstring = str_replace("had", "foo", $string, $count);
7 print "$count changes were made.\n";
8 $count = "foo";
9 $newstring = str_replace("had", "foo", $string, $count);
10 print "$count changes were made.\n";
H A Dstr_replace_basic.phpt9 mixed $subject [, int &$count]);
20 var_dump( str_replace("", "", "", $count) );
21 var_dump( $count );
23 var_dump( str_replace("q", "q", "q", $count) );
24 var_dump( $count );
26 var_dump( str_replace("long string here", "", "", $count) );
27 var_dump( $count );
/PHP-7.3/ext/spl/tests/
H A DSplHeap_count_invalid_parameter.phpt2 Check that SplHeap::count generate a warning and returns NULL when param passed
22 var_dump($h->count($input));
27 Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
30 Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
33 Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
36 Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
39 Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
42 Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
45 Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
H A Dpqueue_003.phpt13 echo "count(\$h) = ".count($h)."\n";
14 echo "\$h->count() = ".$h->count()."\n";
25 count($h) = 4
26 $h->count() = 4
H A Dheap_007.phpt13 echo "count(\$h) = ".count($h)."\n";
14 echo "\$h->count() = ".$h->count()."\n";
26 count($h) = 4
27 $h->count() = 4
H A Dfixedarray_018.phpt2 SPL: FixedArray: overriden count()
6 var_dump(count($obj));
8 public function count() {
9 return -parent::count();
13 var_dump(count($obj));
H A Darray_024.phpt2 SPL: ArrayObject with overriden count()
6 var_dump(count($obj));
8 public function count() {
9 return -parent::count();
13 var_dump(count($obj));
H A Ddllist_008.phpt2 SPL: SplDoublyLinkedList with overriden count()
8 var_dump(count($obj));
10 public function count() {
11 return -parent::count();
17 var_dump(count($obj));
H A Dheap_010.phpt2 SPL: SplHeap with overriden count()
8 var_dump(count($obj));
10 public function count() {
11 return -parent::count();
17 var_dump(count($obj));
H A Darray_012.phpt2 SPL: ArrayIterator::count
11 var_dump($it->count());
15 var_dump($it->count());
17 var_dump($it->count());
33 var_dump($it->count());
37 var_dump($it->count());
39 var_dump($it->count());
/PHP-7.3/ext/ldap/tests/
H A Dldap_search_variation3.phpt42 ["count"]=>
48 ["count"]=>
53 ["count"]=>
62 ["count"]=>
67 ["count"]=>
76 ["count"]=>
81 ["count"]=>
91 ["count"]=>
97 ["count"]=>
102 ["count"]=>
H A Dldap_search_sort_controls.phpt84 ["count"]=>
90 ["count"]=>
97 ["count"]=>
106 ["count"]=>
113 ["count"]=>
122 ["count"]=>
129 ["count"]=>
152 ["count"]=>
158 ["count"]=>
165 ["count"]=>
[all …]
/PHP-7.3/ext/dom/
H A Dcharacterdata.c32 ZEND_ARG_INFO(0, count)
46 ZEND_ARG_INFO(0, count)
51 ZEND_ARG_INFO(0, count)
157 zend_long offset, count; in PHP_FUNCTION() local
180 if ((offset + count) > length) { in PHP_FUNCTION()
181 count = length - offset; in PHP_FUNCTION()
288 zend_long offset, count; in PHP_FUNCTION() local
317 if ((offset + count) > length) { in PHP_FUNCTION()
318 count = length - offset; in PHP_FUNCTION()
344 zend_long offset, count; in PHP_FUNCTION() local
[all …]
H A Dnodelist.c49 PHP_FALIAS(count, dom_nodelist_count, arginfo_dom_nodelist_count)
63 int count = 0; in dom_nodelist_length_read() local
69 count = xmlHashSize(objmap->ht); in dom_nodelist_length_read()
73 count = zend_hash_num_elements(nodeht); in dom_nodelist_length_read()
80 count++; in dom_nodelist_length_read()
82 count++; in dom_nodelist_length_read()
93 nodep, (char *) objmap->ns, (char *) objmap->local, &count, -1); in dom_nodelist_length_read()
100 ZVAL_LONG(retval, count); in dom_nodelist_length_read()
139 int count = 0; in PHP_FUNCTION() local
169 while (count < index && curnode != NULL) { in PHP_FUNCTION()
[all …]
/PHP-7.3/Zend/
H A Dzend_ptr_stack.c39 ZEND_API void zend_ptr_stack_n_push(zend_ptr_stack *stack, int count, ...) in zend_ptr_stack_n_push() argument
44 ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, count) in zend_ptr_stack_n_push()
46 va_start(ptr, count); in zend_ptr_stack_n_push()
47 while (count>0) { in zend_ptr_stack_n_push()
51 count--; in zend_ptr_stack_n_push()
57 ZEND_API void zend_ptr_stack_n_pop(zend_ptr_stack *stack, int count, ...) in zend_ptr_stack_n_pop() argument
62 va_start(ptr, count); in zend_ptr_stack_n_pop()
63 while (count>0) { in zend_ptr_stack_n_pop()
67 count--; in zend_ptr_stack_n_pop()
/PHP-7.3/ext/gd/libgd/
H A Dgd_color_match.c21 int count; in gdImageColorMatch() local
53 count = *(bp++); in gdImageColorMatch()
54 if( count > 0 ) { in gdImageColorMatch()
55 im2->red[color] = *(bp++) / count; in gdImageColorMatch()
56 im2->green[color] = *(bp++) / count; in gdImageColorMatch()
57 im2->blue[color] = *(bp++) / count; in gdImageColorMatch()
58 im2->alpha[color] = *(bp++) / count; in gdImageColorMatch()
/PHP-7.3/ext/pdo_mysql/tests/
H A Dbug53551.phpt18 `count` bigint(20) unsigned NOT NULL DEFAULT '0'
23 $db->exec("insert into bug53551 set `count` = 1 ");
25 $sql = 'UPDATE bug53551 SET `count` = :count';
29 'count' => NULL,
52 …:execute(): SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'count' cannot be null in…
59 string(29) "Column 'count' cannot be null"
63 …:execute(): SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'count' cannot be null in…
70 string(29) "Column 'count' cannot be null"
/PHP-7.3/ext/intl/tests/
H A Dtimezone_createEnumeration_basic.phpt12 $count = count(iterator_to_array($tz));
13 var_dump($count > 300);
17 $count2 = count(iterator_to_array($tz));
18 var_dump($count == $count2);

Completed in 32 milliseconds

12345678910>>...53