/PHP-7.3/ext/standard/tests/array/ |
H A D | count_variation1.phpt | 2 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 D | count_variation3.phpt | 2 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 D | array_walk_variation3.phpt | 17 * 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 D | count_symbol_table.phpt | 2 Test count() function : count on symbol table 10 $c1 = count($GLOBALS); 13 $c2 = count($GLOBALS); 17 $c1 = count($GLOBALS);
|
H A D | array_walk_recursive_variation3.phpt | 17 * 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 D | hash_sha.c | 204 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 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-7.3/ext/standard/tests/strings/ |
H A D | bug24281.phpt | 2 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 D | str_replace_basic.phpt | 9 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 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
|
H A D | pqueue_003.phpt | 13 echo "count(\$h) = ".count($h)."\n"; 14 echo "\$h->count() = ".$h->count()."\n"; 25 count($h) = 4 26 $h->count() = 4
|
H A D | heap_007.phpt | 13 echo "count(\$h) = ".count($h)."\n"; 14 echo "\$h->count() = ".$h->count()."\n"; 26 count($h) = 4 27 $h->count() = 4
|
H A D | fixedarray_018.phpt | 2 SPL: FixedArray: overriden count() 6 var_dump(count($obj)); 8 public function count() { 9 return -parent::count(); 13 var_dump(count($obj));
|
H A D | array_024.phpt | 2 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 D | dllist_008.phpt | 2 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 D | heap_010.phpt | 2 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 D | array_012.phpt | 2 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 D | ldap_search_variation3.phpt | 42 ["count"]=> 48 ["count"]=> 53 ["count"]=> 62 ["count"]=> 67 ["count"]=> 76 ["count"]=> 81 ["count"]=> 91 ["count"]=> 97 ["count"]=> 102 ["count"]=>
|
H A D | ldap_search_sort_controls.phpt | 84 ["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 D | characterdata.c | 32 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 D | nodelist.c | 49 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 D | zend_ptr_stack.c | 39 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 D | gd_color_match.c | 21 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 D | bug53551.phpt | 18 `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 D | timezone_createEnumeration_basic.phpt | 12 $count = count(iterator_to_array($tz)); 13 var_dump($count > 300); 17 $count2 = count(iterator_to_array($tz)); 18 var_dump($count == $count2);
|