/PHP-8.0/tests/lang/ |
H A D | bug19943.phpt | 6 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.0/ext/spl/tests/ |
H A D | arrayObject_count_basic1.phpt | 2 SPL: ArrayObject::count() and ArrayIterator::count() basic functionality. 7 function count() { 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() { 40 var_dump(count($c), count($ao)); 44 var_dump(count($c), count($ao)); 48 var_dump(count($c), count($ao)); [all …]
|
H A D | countable_count_variation1.phpt | 7 function count() { 12 function count() { 18 function count() { 24 function count() { 30 function count() { 37 var_dump(count(new returnNull)); 40 var_dump(count(new returnString)); 43 var_dump(count(new returnObject)); 46 var_dump(count(new returnArray)); 50 echo count(new throwException); [all …]
|
H A D | spl_heap_count_basic.phpt | 2 SPL: SplHeap, Test spl_heap_object_count_elements (spl_heap.c:490) for returning count() failure fo… 16 public function count() // 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 D | heap_007.phpt | 13 echo "count(\$h) = ".count($h)."\n"; 14 echo "\$h->count() = ".$h->count()."\n"; 24 count($h) = 4 25 $h->count() = 4
|
H A D | pqueue_003.phpt | 13 echo "count(\$h) = ".count($h)."\n"; 14 echo "\$h->count() = ".$h->count()."\n"; 23 count($h) = 4 24 $h->count() = 4
|
/PHP-8.0/ext/bcmath/libbcmath/src/ |
H A D | compare.c | 52 int count; local 86 count = n1->n_len + MIN (n1->n_scale, n2->n_scale); 90 while ((count > 0) && (*n1ptr == *n2ptr)) 94 count--; 96 if (ignore_last && count == 1 && n1->n_scale == n2->n_scale) 98 if (count != 0) 123 for (count = n1->n_scale-n2->n_scale; count>0; count--) 135 for (count = n2->n_scale-n1->n_scale; count>0; count--)
|
H A D | doaddsub.c | 54 int count; local 65 for (count = scale_min - sum_scale; count > 0; count--) 146 int borrow, count, val; local 159 for (count = scale_min - diff_scale; count > 0; count--) 175 for (count = n1->n_scale - min_scale; count > 0; count--) 181 for (count = n2->n_scale - min_scale; count > 0; count--) 197 for (count = 0; count < min_len + min_scale; count++) 213 for (count = diff_len - min_len; count > 0; count--)
|
H A D | nearzero.c | 49 int count; local 57 count = num->n_len + scale; 61 while ((count > 0) && (*nptr++ == 0)) count--; 63 if (count != 0 && (count != 1 || *--nptr != 1))
|
H A D | zero.c | 45 int count; in bc_is_zero_for_scale() local 52 count = num->n_len + scale; in bc_is_zero_for_scale() 56 while ((count > 0) && (*nptr++ == 0)) count--; in bc_is_zero_for_scale() 58 if (count != 0) in bc_is_zero_for_scale()
|
/PHP-8.0/ext/ldap/tests/ |
H A D | ldap_search_basic.phpt | 34 ["count"]=> 40 ["count"]=> 49 ["count"]=> 58 ["count"]=> 67 ["count"]=> 76 ["count"]=> 85 ["count"]=> 92 ["count"]=> 101 ["count"]=> 144 ["count"]=> [all …]
|
H A D | ldap_search_variation6.phpt | 53 ["count"]=> 59 ["count"]=> 68 ["count"]=> 77 ["count"]=> 111 ["count"]=> 163 ["count"]=> 206 ["count"]=> 220 ["count"]=> 224 ["count"]=> 234 ["count"]=> [all …]
|
H A D | ldap_list_basic.phpt | 33 ["count"]=> 39 ["count"]=> 48 ["count"]=> 57 ["count"]=> 66 ["count"]=> 75 ["count"]=> 84 ["count"]=> 91 ["count"]=> 100 ["count"]=> 109 ["count"]=> [all …]
|
H A D | ldap_search_overrides.phpt | 47 ["count"]=> 53 ["count"]=> 62 ["count"]=> 71 ["count"]=> 80 ["count"]=> 89 ["count"]=> 98 ["count"]=> 105 ["count"]=> 114 ["count"]=> 157 ["count"]=> [all …]
|
H A D | bug48441.phpt | 43 ["count"]=> 49 ["count"]=> 56 ["count"]=> 72 ["count"]=> 88 ["count"]=> 98 ["count"]=> 109 ["count"]=> 117 ["count"]=> 130 ["count"]=> 146 ["count"]=> [all …]
|
/PHP-8.0/ext/simplexml/tests/ |
H A D | sxe_005.phpt | 2 SPL: SimpleXMLIterator and overridden count() 22 function count() 25 return parent::count(); 31 var_dump(count($sxe)); 32 var_dump(count($sxe->elem1)); 33 var_dump(count($sxe->elem2)); 37 SXETest::count 39 SXETest::count 41 SXETest::count
|
/PHP-8.0/ext/hash/ |
H A D | hash_sha.c | 144 context->count[0] = context->count[1] = 0; in PHP_SHA256Init() 204 context->count[0] = context->count[1] = 0; in PHP_SHA224Init() 232 context->count[1]++; in PHP_SHA224Update() 234 context->count[1] += ((uint32_t) inputLen >> 29); in PHP_SHA224Update() 309 context->count[1]++; in PHP_SHA256Update() 453 context->count[0] = context->count[1] = 0; in PHP_SHA384Init() 523 context->count[1]++; in PHP_SHA384Update() 612 context->count[0] = context->count[1] = 0; in PHP_SHA512Init() 631 context->count[0] = context->count[1] = 0; in PHP_SHA512_256Init() 649 context->count[0] = context->count[1] = 0; in PHP_SHA512_224Init() [all …]
|
/PHP-8.0/ext/standard/tests/array/ |
H A D | count_invalid.phpt | 7 $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, bool given [all …]
|
H A D | count_recursive.phpt | 2 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() { 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 D | count_basic.phpt | 2 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.0/Zend/tests/ |
H A D | bug68887.phpt | 6 $count = count(get_resources()); 8 var_dump(count(get_resources()) == $count); 10 var_dump(count(get_resources()) == $count);
|
/PHP-8.0/ext/oci8/tests/ |
H A D | bug43497.phpt | 177 Loop count check = 100 181 Loop count check = 100 185 Loop count check = 100 189 Loop count check = 100 193 Loop count check = 100 197 Loop count check = 100 201 Loop count check = 100 205 Loop count check = 100 209 Loop count check = 100 213 Loop count check = 100 [all …]
|
/PHP-8.0/ext/mysqlnd/ |
H A D | mysqlnd_read_buffer.c | 35 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.0/ext/pcre/tests/ |
H A D | pcre_count.phpt | 2 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.0/ext/standard/tests/serialize/ |
H A D | bug78438.phpt | 30 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 …]
|