/PHP-5.6/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()); 35 function count() { 43 var_dump(count($c), count($ao)); 47 var_dump(count($c), count($ao)); 51 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(); 26 count($heap);// refers to MyHeap->count() method 30 Fatal error: Uncaught exception 'Exception' with message 'Cause count to fail' in %s 32 #0 [internal function]: MyHeap->count() 33 #1 %s count(Object(MyHeap))
|
H A D | SplHeap_count_invalid_parameter.phpt | 2 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
|
/PHP-5.6/tests/lang/ |
H A D | bug19943.phpt | 6 for ($count = 0; $count < 10; $count++) { 7 $ar[$count] = "$count"; 8 @$ar[$count]['idx'] = "$count"; 11 for ($count = 0; $count < 10; $count++) { 12 echo $ar[$count]." -- ".@$ar[$count]['idx']."\n";
|
/PHP-5.6/ext/standard/tests/array/ |
H A D | count_recursive.phpt | 2 Test count() function 88 public function count() { 103 var_dump(count($arr_resource)); 124 var_dump( count(array(), "") ); 206 For mode '0' count is => int(3) 207 For mode '1' count is => int(9) 208 For mode '0' count is => int(3) 209 For mode '1' count is => int(9) 212 For mode '2' count is => int(3) 214 For mode '' count is => int(3) [all …]
|
H A D | count_error.phpt | 2 Test count() function : error conditions - pass incorrect number of args 5 /* Prototype : int count(mixed var [, int mode]) 11 * Pass incorrect number of arguments to count() to test behaviour 14 echo "*** Testing count() : error conditions ***\n"; 17 echo "\n-- Testing count() function with Zero arguments --\n"; 18 var_dump( count() ); 20 //Test count with one more than the expected number of arguments 25 var_dump( count($var, $mode, $extra_arg) ); 30 *** Testing count() : error conditions *** 32 -- Testing count() function with Zero arguments -- [all …]
|
H A D | count_basic.phpt | 2 Test count() function : basic functionality 5 /* Prototype : int count(mixed $var [, int $mode]) 11 * Test basic functionality of count() using an array as $var argument 15 echo "*** Testing count() : basic functionality ***\n"; 19 var_dump(count($array)); 24 var_dump(count($array_multi, COUNT_NORMAL)); 26 var_dump(count($array_multi, 0)); 28 var_dump(count($array_multi, COUNT_RECURSIVE)); 30 var_dump(count($array_multi, 1)); 35 *** Testing count() : basic functionality ***
|
/PHP-5.6/ext/ldap/tests/ |
H A D | ldap_search_basic.phpt | 35 ["count"]=> 41 ["count"]=> 50 ["count"]=> 59 ["count"]=> 68 ["count"]=> 77 ["count"]=> 86 ["count"]=> 93 ["count"]=> 102 ["count"]=> 145 ["count"]=> [all …]
|
H A D | ldap_search_variation6.phpt | 54 ["count"]=> 60 ["count"]=> 69 ["count"]=> 78 ["count"]=> 112 ["count"]=> 164 ["count"]=> 207 ["count"]=> 221 ["count"]=> 225 ["count"]=> 235 ["count"]=> [all …]
|
H A D | ldap_search_overrides.phpt | 48 ["count"]=> 54 ["count"]=> 63 ["count"]=> 72 ["count"]=> 81 ["count"]=> 90 ["count"]=> 99 ["count"]=> 106 ["count"]=> 115 ["count"]=> 158 ["count"]=> [all …]
|
H A D | ldap_list_basic.phpt | 34 ["count"]=> 40 ["count"]=> 49 ["count"]=> 58 ["count"]=> 67 ["count"]=> 76 ["count"]=> 85 ["count"]=> 92 ["count"]=> 101 ["count"]=> 110 ["count"]=> [all …]
|
H A D | bug48441.phpt | 44 ["count"]=> 50 ["count"]=> 57 ["count"]=> 73 ["count"]=> 89 ["count"]=> 99 ["count"]=> 110 ["count"]=> 118 ["count"]=> 131 ["count"]=> 147 ["count"]=> [all …]
|
H A D | ldap_sort_basic.phpt | 56 ["count"]=> 62 ["count"]=> 71 ["count"]=> 78 ["count"]=> 87 ["count"]=> 96 ["count"]=> 103 ["count"]=> 128 ["count"]=> 153 ["count"]=> 169 ["count"]=> [all …]
|
H A D | ldap_sort_variation.phpt | 56 ["count"]=> 62 ["count"]=> 69 ["count"]=> 78 ["count"]=> 87 ["count"]=> 94 ["count"]=> 103 ["count"]=> 119 ["count"]=> 144 ["count"]=> 169 ["count"]=> [all …]
|
/PHP-5.6/ext/bcmath/libbcmath/src/ |
H A D | compare.c | 53 int count; local 87 count = n1->n_len + MIN (n1->n_scale, n2->n_scale); 91 while ((count > 0) && (*n1ptr == *n2ptr)) 95 count--; 97 if (ignore_last && count == 1 && n1->n_scale == n2->n_scale) 99 if (count != 0) 124 for (count = n1->n_scale-n2->n_scale; count>0; count--) 136 for (count = n2->n_scale-n1->n_scale; count>0; count--)
|
H A D | doaddsub.c | 55 int count; local 66 for (count = scale_min - sum_scale; count > 0; count--) 147 int borrow, count, val; local 160 for (count = scale_min - diff_scale; count > 0; count--) 176 for (count = n1->n_scale - min_scale; count > 0; count--) 182 for (count = n2->n_scale - min_scale; count > 0; count--) 198 for (count = 0; count < min_len + min_scale; count++) 214 for (count = diff_len - min_len; count > 0; count--)
|
H A D | nearzero.c | 50 int count; local 58 count = num->n_len + scale; 62 while ((count > 0) && (*nptr++ == 0)) count--; 64 if (count != 0 && (count != 1 || *--nptr != 1))
|
H A D | zero.c | 46 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-5.6/scripts/dev/generate-phpt/src/ |
H A D | gtTestSubject.php | 46 if(count ($this->mandatoryArgumentNames) > 0) { 47 for( $i = 0; $i < count( $this->mandatoryArgumentNames ); $i++) { 52 if(count ($this->optionalArgumentNames) > 0) { 53 for( $i = 0; $i < count( $this->optionalArgumentNames ); $i++) { 78 if(count ($this->mandatoryArgumentNames) > 0) { 103 if(count ($this->mandatoryArgumentNames) > 0) { 109 if(count ($this->optionalArgumentNames) > 0) { 110 for( $i = 0; $i < count( $this->optionalArgumentNames ); $i++) { 116 …$this->allowedArgumentLists[count($this->allowedArgumentLists) -1 ] = substr($this->allowedArgumen… 145 if(count ($this->mandatoryArgumentNames) > 0) { [all …]
|
/PHP-5.6/ext/simplexml/tests/ |
H A D | sxe_005.phpt | 2 SPL: SimpleXMLIterator and overriden 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)); 38 SXETest::count 40 SXETest::count 42 SXETest::count
|
/PHP-5.6/ext/standard/tests/strings/ |
H A D | str_replace_variation3.phpt | 23 var_dump($count); 30 var_dump($count); 63 var_dump($count); 68 var_dump($count); 75 var_dump($count); 83 var_dump($count); 86 var_dump($count); 89 var_dump($count); 92 var_dump($count); 99 var_dump($count); [all …]
|
/PHP-5.6/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-5.6/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-5.6/ext/hash/ |
H A D | hash_sha.c | 208 context->count[0] = context->count[1] = 0; in PHP_SHA1Init() 344 context->count[1]++; in PHP_SHA1Update() 380 bits[7] = context->count[0] & 0xFF; in PHP_SHA1Final() 463 context->count[0] = context->count[1] = 0; in PHP_SHA256Init() 523 context->count[0] = context->count[1] = 0; in PHP_SHA224Init() 551 context->count[1]++; in PHP_SHA224Update() 628 context->count[1]++; in PHP_SHA256Update() 772 context->count[0] = context->count[1] = 0; in PHP_SHA384Init() 842 context->count[1]++; in PHP_SHA384Update() 928 context->count[0] = context->count[1] = 0; in PHP_SHA512Init() [all …]
|