/PHP-5.5/Zend/ |
H A D | zend_ptr_stack.c | 41 ZEND_API void zend_ptr_stack_n_push(zend_ptr_stack *stack, int count, ...) in zend_ptr_stack_n_push() argument 46 ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, count) in zend_ptr_stack_n_push() 48 va_start(ptr, count); in zend_ptr_stack_n_push() 49 while (count>0) { in zend_ptr_stack_n_push() 53 count--; in zend_ptr_stack_n_push() 59 ZEND_API void zend_ptr_stack_n_pop(zend_ptr_stack *stack, int count, ...) in zend_ptr_stack_n_pop() argument 64 va_start(ptr, count); in zend_ptr_stack_n_pop() 65 while (count>0) { in zend_ptr_stack_n_pop() 69 count--; in zend_ptr_stack_n_pop()
|
/PHP-5.5/ext/standard/tests/array/ |
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 | 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));
|
H A D | count_variation2.phpt | 2 Test count() function : usage variations - Pass different data types as $mode arg 5 /* Prototype : int count(mixed $var [, int $mode]) 11 * Pass different data types as $mode argument to count() to test behaviour 14 echo "*** Testing count() : usage variations ***\n"; 87 // loop through each element of $inputs to check the behavior of count() 91 var_dump( count($var, $input) ); 100 *** Testing count() : usage variations *** 149 Warning: count() expects parameter 2 to be long, string given in %s on line %d 154 Warning: count() expects parameter 2 to be long, string given in %s on line %d 159 Warning: count() expects parameter 2 to be long, string given in %s on line %d [all …]
|
/PHP-5.5/ext/spl/tests/ |
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 | 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 | 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 | 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());
|
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));
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | bug24281.phpt | 2 Bug #24281 (str_replace count not returned if variable wasn't initialized) 10 $newstring = str_replace("had", "foo", $string, $count); 11 print "$count changes were made.\n"; 12 $count = "foo"; 13 $newstring = str_replace("had", "foo", $string, $count); 14 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-5.5/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"]=>
|
/PHP-5.5/ext/dom/ |
H A D | nodelist.c | 58 int count = 0; in dom_nodelist_length_read() local 64 count = xmlHashSize(objmap->ht); in dom_nodelist_length_read() 68 count = zend_hash_num_elements(nodeht); in dom_nodelist_length_read() 75 count++; in dom_nodelist_length_read() 77 count++; in dom_nodelist_length_read() 87 curnode = dom_get_elements_by_tag_name_ns_raw(nodep, objmap->ns, objmap->local, &count, -1); in dom_nodelist_length_read() 95 ZVAL_LONG(*retval, count); in dom_nodelist_length_read() 115 int count = 0; in PHP_FUNCTION() local 147 while (count < index && curnode != NULL) { in PHP_FUNCTION() 148 count++; in PHP_FUNCTION() [all …]
|
H A D | characterdata.c | 34 ZEND_ARG_INFO(0, count) 48 ZEND_ARG_INFO(0, count) 53 ZEND_ARG_INFO(0, count) 179 long offset, count; in PHP_FUNCTION() local 202 if ((offset + count) > length) { in PHP_FUNCTION() 203 count = length - offset; in PHP_FUNCTION() 309 long offset, count; in PHP_FUNCTION() local 338 if ((offset + count) > length) { in PHP_FUNCTION() 339 count = length - offset; in PHP_FUNCTION() 365 long offset, count; in PHP_FUNCTION() local [all …]
|
/PHP-5.5/ext/gd/libgd/ |
H A D | gd_color.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-5.5/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-5.5/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);
|
/PHP-5.5/ext/interbase/tests/ |
H A D | 008.phpt | 13 $count = 0; 17 global $count; 19 return (++$count < 5); /* cancel event */ 43 if (!$count || $count > 5) echo "FAIL ($count)\n";
|
/PHP-5.5/ext/pcntl/tests/ |
H A D | 003.phpt | 13 var_dump(count($old)); 15 var_dump(count($old)); 17 var_dump(count($old)); 19 var_dump(count($old)); 21 var_dump(count($old)); 23 var_dump(count($old));
|
/PHP-5.5/ext/spl/internal/ |
H A D | limititerator.inc | 28 private $count; 35 * @param count Maximum number of elements to show or -1 for all 37 function __construct(Iterator $it, $offset = 0, $count = -1) 42 if ($count < 0 && $count != -1) { 43 throw new exception('Parameter count must either be -1 or a value greater than or equal to 0'); 47 $this->count = $count; 60 if ($position > $this->offset + $this->count && $this->count != -1) { 61 …('Cannot seek to '.$position.' which is behind offset '.$this->offset.' plus count '.$this->count); 85 return ($this->count == -1 || $this->pos < $this->offset + $this->count)
|
H A D | recursiveiteratoriterator.inc | 36 private $count = 0; 64 while ($this->count) { 77 $count = $this->count; 78 while ($count) { 79 $it = $this->ait[$count]; 83 $count--; 93 $it = $this->ait[$this->count]; 101 $it = $this->ait[$this->count]; 109 while ($this->count) { 146 if ($this->count) { [all …]
|
/PHP-5.5/ext/hash/ |
H A D | hash_ripemd.c | 73 context->count[0] = context->count[1] = 0; in PHP_RIPEMD128Init() 88 context->count[0] = context->count[1] = 0; in PHP_RIPEMD256Init() 107 context->count[0] = context->count[1] = 0; in PHP_RIPEMD160Init() 123 context->count[0] = context->count[1] = 0; in PHP_RIPEMD320Init() 265 context->count[1]++; in PHP_RIPEMD128Update() 363 context->count[1]++; in PHP_RIPEMD256Update() 462 context->count[1]++; in PHP_RIPEMD160Update() 570 context->count[1]++; in PHP_RIPEMD320Update() 630 bits[0] = (unsigned char) (context->count[0] & 0xFF); in PHP_RIPEMD128Final() 634 bits[4] = (unsigned char) (context->count[1] & 0xFF); in PHP_RIPEMD128Final() [all …]
|