Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 1184) sorted by relevance

12345678910>>...48

/PHP-8.4/ext/spl/tests/
H A DarrayObject_count_basic1.phpt2 SPL: ArrayObject::count() and ArrayIterator::count() basic functionality.
7 function count(): int {
15 var_dump(count($c), count($ao));
19 var_dump(count($c), count($ao));
23 var_dump(count($c), count($ao));
27 var_dump($c->count(), $ao->count());
32 function count(): int {
40 var_dump(count($c), count($ao));
44 var_dump(count($c), count($ao));
48 var_dump(count($c), count($ao));
[all …]
H A Dcountable_count_variation1.phpt7 function count(): int {
14 function count() {
21 function count() {
28 function count() {
35 function count() {
42 var_dump(count(new returnNull));
45 var_dump(count(new returnString));
48 var_dump(count(new returnObject));
51 var_dump(count(new returnArray));
55 echo count(new throwException);
[all …]
H A Dspl_heap_count_basic.phpt2 SPL: SplHeap, Test spl_heap_object_count_elements (spl_heap.c:490) for returning count() failure fo…
16 public function count(): int // override count to force failure
18 throw new Exception('Cause count to fail');
19 return parent::count();
27 count($heap);// refers to MyHeap->count() method
34 Exception: Cause count to fail
H A Dheap_007.phpt13 echo "count(\$h) = ".count($h)."\n";
14 echo "\$h->count() = ".$h->count()."\n";
24 count($h) = 4
25 $h->count() = 4
H A Dpqueue_003.phpt13 echo "count(\$h) = ".count($h)."\n";
14 echo "\$h->count() = ".$h->count()."\n";
23 count($h) = 4
24 $h->count() = 4
/PHP-8.4/tests/lang/
H A Dbug19943.phpt6 for ($count = 0; $count < 10; $count++) {
7 $ar[$count] = "$count";
8 @$ar[$count]['0idx'] = "$count";
11 for ($count = 0; $count < 10; $count++) {
12 echo $ar[$count]." -- ".@$ar[$count]['0idx']."\n";
/PHP-8.4/ext/bcmath/libbcmath/src/
H A Ddoaddsub.c51 size_t count; in _bc_do_add() local
64 for (count = n1->n_scale - min_scale; count > 0; count--) { in _bc_do_add()
69 for (count = n2->n_scale - min_scale; count > 0; count--) { in _bc_do_add()
75 count = 0; in _bc_do_add()
131 for (; count < min_bytes; count++) { in _bc_do_add()
147 for (count = sum_len - min_len; count > 1; count--) { in _bc_do_add()
198 for (count = n1->n_scale - min_scale; count > 0; count--) { in _bc_do_sub()
203 for (count = n2->n_scale - min_scale; count > 0; count--) { in _bc_do_sub()
216 count = 0; in _bc_do_sub()
268 for (; count < min_bytes; count++) { in _bc_do_sub()
[all …]
H A Dcompare.c93 size_t count = n1->n_len + MIN (n1_scale, n2_scale); in _bc_do_compare() local
97 while ((count > 0) && (*n1ptr == *n2ptr)) { in _bc_do_compare()
100 count--; in _bc_do_compare()
103 if (count != 0) { in _bc_do_compare()
124 for (count = n1_scale - n2_scale; count > 0; count--) { in _bc_do_compare()
135 for (count = n2_scale - n1_scale; count > 0; count--) { in _bc_do_compare()
H A Dnearzero.c48 size_t count = num->n_len + scale; in bc_is_near_zero() local
52 while ((count > 0) && (*nptr++ == 0)) { in bc_is_near_zero()
53 count--; in bc_is_near_zero()
56 return count == 0 || (count == 1 && *--nptr == 1); in bc_is_near_zero()
H A Dzero.c40 size_t count; in bc_is_zero_for_scale() local
49 count = num->n_len + scale; in bc_is_zero_for_scale()
53 while ((count > 0) && (*nptr++ == 0)) count--; in bc_is_zero_for_scale()
55 return count == 0; in bc_is_zero_for_scale()
/PHP-8.4/ext/ldap/tests/
H A Dldap_search_variation6.phpt56 ["count"]=>
62 ["count"]=>
71 ["count"]=>
80 ["count"]=>
114 ["count"]=>
166 ["count"]=>
209 ["count"]=>
225 ["count"]=>
229 ["count"]=>
241 ["count"]=>
[all …]
H A Dldap_search_basic.phpt36 ["count"]=>
42 ["count"]=>
51 ["count"]=>
60 ["count"]=>
69 ["count"]=>
78 ["count"]=>
87 ["count"]=>
94 ["count"]=>
103 ["count"]=>
146 ["count"]=>
[all …]
H A Dldap_search_overrides.phpt49 ["count"]=>
55 ["count"]=>
64 ["count"]=>
73 ["count"]=>
82 ["count"]=>
91 ["count"]=>
100 ["count"]=>
107 ["count"]=>
116 ["count"]=>
159 ["count"]=>
[all …]
H A Dbug48441.phpt45 ["count"]=>
51 ["count"]=>
58 ["count"]=>
74 ["count"]=>
90 ["count"]=>
101 ["count"]=>
112 ["count"]=>
121 ["count"]=>
134 ["count"]=>
150 ["count"]=>
[all …]
H A Dldap_list_basic.phpt35 ["count"]=>
41 ["count"]=>
50 ["count"]=>
59 ["count"]=>
68 ["count"]=>
77 ["count"]=>
86 ["count"]=>
93 ["count"]=>
102 ["count"]=>
111 ["count"]=>
[all …]
/PHP-8.4/ext/simplexml/tests/
H A Dsxe_005.phpt2 SPL: SimpleXMLIterator and overridden count()
20 function count(): int
23 return parent::count();
29 var_dump(count($sxe));
30 var_dump(count($sxe->elem1));
31 var_dump(count($sxe->elem2));
35 SXETest::count
37 SXETest::count
39 SXETest::count
/PHP-8.4/ext/hash/
H A Dhash_sha.c145 context->count[0] = context->count[1] = 0; in PHP_SHA256InitArgs()
223 context->count[0] = context->count[1] = 0; in PHP_SHA224InitArgs()
252 context->count[1]++; in PHP_SHA224Update()
330 context->count[1]++; in PHP_SHA256Update()
474 context->count[0] = context->count[1] = 0; in PHP_SHA384InitArgs()
545 context->count[1]++; in PHP_SHA384Update()
548 context->count[1] += (uint64_t) inputLen >> 61; in PHP_SHA384Update()
635 context->count[0] = context->count[1] = 0; in PHP_SHA512InitArgs()
654 context->count[0] = context->count[1] = 0; in PHP_SHA512_256InitArgs()
672 context->count[0] = context->count[1] = 0; in PHP_SHA512_224InitArgs()
[all …]
/PHP-8.4/ext/standard/tests/array/
H A Dcount_invalid.phpt7 $result = count(null);
14 $result = count("string");
21 $result = count(123);
28 $result = count(true);
35 $result = count(false);
42 $result = count((object) []);
50 count(): Argument #1 ($value) must be of type Countable|array, null given
51 count(): Argument #1 ($value) must be of type Countable|array, string given
52 count(): Argument #1 ($value) must be of type Countable|array, int given
53 count(): Argument #1 ($value) must be of type Countable|array, true given
[all …]
H A Dcount_recursive.phpt2 Test count() function
5 echo "*** Testing basic functionality of count() function ***\n";
50 print "\n-- Testing count() on an empty sub-array --\n";
61 public function count(): int {
70 echo "\n-- Testing count() on resource type --\n";
76 var_dump(count($arr_resource));
83 var_dump(count($arr, COUNT_NORMAL));
85 var_dump(count($arr, COUNT_RECURSIVE));
138 -- Testing count() on an empty sub-array --
145 -- Testing count() on resource type --
[all …]
H A Dcount_basic.phpt2 Test count() function : basic functionality
6 * Test basic functionality of count() using an array as $var argument
10 echo "*** Testing count() : basic functionality ***\n";
14 var_dump(count($array));
19 var_dump(count($array_multi, COUNT_NORMAL));
21 var_dump(count($array_multi, 0));
23 var_dump(count($array_multi, COUNT_RECURSIVE));
25 var_dump(count($array_multi, 1));
30 *** Testing count() : basic functionality ***
/PHP-8.4/ext/pcre/tests/
H A Dpcre_count.phpt2 preg_replace() fifth parameter - count
8 $count = 0;
9 var_dump(preg_replace($regex, 'xxxx', $string, -1, $count));
10 var_dump($count);
16 var_dump(preg_replace($regex, 'xxxx', $string, -1, $count));
17 var_dump($count);
23 var_dump(preg_replace($regex, '...', $string, -1, $count));
24 var_dump($count);
27 $count = NULL;
30 var_dump($count);
/PHP-8.4/ext/mysqlnd/
H A Dmysqlnd_read_buffer.c35 mysqlnd_read_buffer_read(MYSQLND_READ_BUFFER * buffer, const size_t count, zend_uchar * dest) in mysqlnd_read_buffer_read() argument
37 if (buffer->len >= count) { in mysqlnd_read_buffer_read()
38 memcpy(dest, buffer->data + buffer->offset, count); in mysqlnd_read_buffer_read()
39 buffer->offset += count; in mysqlnd_read_buffer_read()
40 buffer->len -= count; in mysqlnd_read_buffer_read()
72 mysqlnd_create_read_buffer(const size_t count) in mysqlnd_create_read_buffer() argument
80 ret->data = mnd_emalloc(count); in mysqlnd_create_read_buffer()
81 ret->size = ret->len = count; in mysqlnd_create_read_buffer()
/PHP-8.4/Zend/tests/
H A Dbug68887.phpt6 $count = count(get_resources());
8 var_dump(count(get_resources()) == $count);
10 var_dump(count(get_resources()) == $count);
/PHP-8.4/ext/standard/tests/serialize/
H A Dbug78438.phpt30 while (count($levelRoots) > 0) {
65 $count = 0;
67 while (count($nodes) > 0) {
68 $count++;
76 …echo "> Unserialized total node count was $count, expected $expectedSize: ".($expectedSize === $co…
86 > Unserialized total node count was 1, expected 1: CORRECT!
91 > Unserialized total node count was 4, expected 4: CORRECT!
96 > Unserialized total node count was 13, expected 13: CORRECT!
101 > Unserialized total node count was 40, expected 40: CORRECT!
106 > Unserialized total node count was 121, expected 121: CORRECT!
[all …]
/PHP-8.4/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";

Completed in 29 milliseconds

12345678910>>...48