Home
last modified time | relevance | path

Searched refs:count (Results 101 – 125 of 1167) sorted by relevance

12345678910>>...47

/php-src/ext/standard/tests/strings/
H A Dstr_ireplace.phpt9 var_dump(str_ireplace("tt", "a", "ttttTttttttttTT", $count));
10 var_dump($count);
13 var_dump(str_ireplace("tt", "aa", "ttttTttttttttTT", $count));
14 var_dump($count);
17 var_dump(str_ireplace("tt", "aaa", "ttttTttttttttTT", $count));
18 var_dump($count);
21 var_dump(str_ireplace("tt", "aaa", "ttttTttttttttTT", $count));
22 var_dump($count);
H A Dstr_split_variation7.phpt27 for($count = 0; $count < count($values); $count++) {
28 echo "-- Iteration ".($count + 1)." --\n";
31 var_dump( str_split($str, $values[$count]) );
H A Dstrtok_variation7.phpt18 for( $count = 1; $count <=6; $count++ ) {
19 echo "\n-- Token $count is --\n";
28 for( $count = 1; $count <=10; $count++ ) {
29 echo "\n-- Token $count is --\n";
/php-src/ext/dba/libcdb/
H A Dcdb_make.c143 uint32 count; in cdb_make_finish() local
149 c->count[i] = 0; in cdb_make_finish()
154 ++c->count[255 & x->hp[i].h]; in cdb_make_finish()
159 u = c->count[i] * 2; in cdb_make_finish()
180 u += c->count[i]; /* bounded by numentries, so no overflow */ in cdb_make_finish()
191 count = c->count[i]; in cdb_make_finish()
193 len = count + count; /* no overflow possible */ in cdb_make_finish()
201 for (u = 0;u < count;++u) { in cdb_make_finish()
/php-src/ext/ldap/tests/
H A Dldap_read_basic.phpt35 ["count"]=>
41 ["count"]=>
52 ["count"]=>
59 ["count"]=>
/php-src/ext/pdo_sqlite/
H A Dpdo_sqlite.c136 static ssize_t php_pdosqlite3_stream_write(php_stream *stream, const char *buf, size_t count) in php_pdosqlite3_stream_write() argument
145 if (sqlite3_stream->position + count > sqlite3_stream->size) { in php_pdosqlite3_stream_write()
154 if (sqlite3_stream->position + count >= sqlite3_stream->size) { in php_pdosqlite3_stream_write()
159 sqlite3_stream->position += count; in php_pdosqlite3_stream_write()
162 return count; in php_pdosqlite3_stream_write()
165 static ssize_t php_pdosqlite3_stream_read(php_stream *stream, char *buf, size_t count) in php_pdosqlite3_stream_read() argument
169 if (sqlite3_stream->position + count >= sqlite3_stream->size) { in php_pdosqlite3_stream_read()
170 count = sqlite3_stream->size - sqlite3_stream->position; in php_pdosqlite3_stream_read()
173 if (count) { in php_pdosqlite3_stream_read()
177 sqlite3_stream->position += count; in php_pdosqlite3_stream_read()
[all …]
/php-src/ext/dom/
H A Dnodelist.c95 int count = 0; in php_dom_get_nodelist_length() local
99 count++; in php_dom_get_nodelist_length()
101 count++; in php_dom_get_nodelist_length()
109 …basep, nodep, objmap->ns, objmap->local, objmap->local_lower, &count, INT_MAX - 1 /* because of <=… in php_dom_get_nodelist_length()
112 objmap->cached_length = count; in php_dom_get_nodelist_length()
114 return count; in php_dom_get_nodelist_length()
130 PHP_METHOD(DOMNodeList, count) in PHP_METHOD() argument
180 int count = 0; in php_dom_nodelist_get_item_into_zval() local
185 while (count < relative_index && nodep != NULL) { in php_dom_nodelist_get_item_into_zval()
186 count++; in php_dom_nodelist_get_item_into_zval()
[all …]
/php-src/ext/standard/tests/serialize/
H A Dbug37947.phpt8 function extend_zend_ptr_stack($count,$a,$b,$c,$d,$e) {
9 if ($count>0) $this->extend_zend_ptr_stack($count -
/php-src/tests/classes/
H A Dfactory_and_singleton_002.phpt45 static public function count() {
52 var_dump(test::count());
58 var_dump(test::count());
65 var_dump(test::count());
71 var_dump(test::count());
76 //var_dump(test::count());
/php-src/ext/dom/tests/
H A Ddomxpath.phpt10 $count = 0;
13 $count++;
17 return $val/$count;
37 $count = $xpath->evaluate("count(//def:child)");
39 var_dump($count);
H A DDomNodeList_count.phpt2 Test count nodes in DOMNodeList
21 var_dump($root->childNodes->count());
22 var_dump(count($root->childNodes));
H A DDOMNamedNodeMap_count.phpt2 Test count nodes in DOMNamedNodeMap
21 var_dump($root->attributes->count());
22 var_dump(count($root->attributes));
/php-src/ext/spl/tests/
H A Dfixedarray_021.phpt6 /* empty count */
9 var_dump(count($a));
10 var_dump($a->count());
35 var_dump(count($a));
36 var_dump($a->count());
H A Dobserver_008.phpt21 var_dump($a->count());
24 var_dump($a->count());
27 var_dump($a->count());
/php-src/ext/simplexml/tests/
H A D029.phpt2 SimpleXML: foreach and count
24 var_dump(count($people));
25 var_dump(count($person));
/php-src/ext/fileinfo/
H A Dcreate_data_file.php40 $chunks[count($chunks) - 1] = str_pad($chunks[count($chunks) - 1], CHUNK_SIZE, chr(0));
42 echo 'const unsigned char php_magic_database[' . count($chunks) . '][' . CHUNK_SIZE . "] = {\n";
/php-src/ext/spl/
H A Dspl_heap.c54 int count; member
262 heap->count = 0; in spl_ptr_heap_init()
285 heap->count++; in spl_ptr_heap_insert()
297 if (heap->count == 0) { in spl_ptr_heap_top()
310 if (heap->count == 0) { in spl_ptr_heap_delete_top()
359 heap->count = from->count; in spl_ptr_heap_clone()
392 return heap->count; in spl_ptr_heap_count()
498 *count = 0; in spl_heap_object_count_elements()
577 PHP_METHOD(SplHeap, count) in PHP_METHOD() argument
579 zend_long count; in PHP_METHOD() local
[all …]
/php-src/ext/pcre/
H A Dphp_pcre.c1266 if (count >= 0) { in php_pcre_match_impl()
1270 count = num_subpats; in php_pcre_match_impl()
1366 if (count >= 0) { in php_pcre_match_impl()
1671 count = num_subpats; in php_pcre_replace_impl()
1706 if (backref < count) in php_pcre_replace_impl()
1920 if (count >= 0 && limit) { in php_pcre_replace_func_impl()
1924 count = num_subpats; in php_pcre_replace_func_impl()
2629 if (count >= 0) { in php_pcre_split_impl()
2633 count = num_subpats; in php_pcre_split_impl()
2689 if (count >= 0) { in php_pcre_split_impl()
[all …]
/php-src/ext/mbstring/tests/
H A Dbug43840.phpt2 Test mb_strpos() function : mb_strpos bounds check is byte count rather than a character count
8 * mb_strpos bounds check is byte count rather than a character count:
11 * byte count of the string. Should return error message when passed character count.
/php-src/ext/opcache/tests/
H A Dbug79412.phpt12 $count = 0;
14 ++$count;
15 if ($count >= $limitPerRun) {
/php-src/ext/opcache/jit/ir/
H A Dgen_ir_fold_hash.c24 void print_hash(uint32_t *mask, uint32_t count) in print_hash() argument
28 printf("static const uint32_t _ir_fold_hash[%d] = {\n", count + 1); in print_hash()
29 for (i = 0; i < count; i++) { in print_hash()
54 int find_hash(uint32_t *mask, uint32_t count) in find_hash() argument
59 for (n = (count | 1); n < MAX_SLOTS; n += 2) { in find_hash()
68 for (i = 0; i < count; i++) { in find_hash()
83 if (i == count) { in find_hash()
96 for (i = 0; i < count; i++) { in find_hash()
111 if (i == count) { in find_hash()
/php-src/ext/gettext/
H A Dgettext.c222 zend_long count; in PHP_FUNCTION() local
227 Z_PARAM_LONG(count) in PHP_FUNCTION()
233 msgstr = ngettext(ZSTR_VAL(msgid1), ZSTR_VAL(msgid2), count); in PHP_FUNCTION()
247 zend_long count; in PHP_FUNCTION() local
253 Z_PARAM_LONG(count) in PHP_FUNCTION()
260 msgstr = dngettext(ZSTR_VAL(domain), ZSTR_VAL(msgid1), ZSTR_VAL(msgid2), count); in PHP_FUNCTION()
274 zend_long count, category; in PHP_FUNCTION() local
282 Z_PARAM_LONG(count) in PHP_FUNCTION()
291 msgstr = dcngettext(ZSTR_VAL(domain), ZSTR_VAL(msgid1), ZSTR_VAL(msgid2), count, category); in PHP_FUNCTION()
/php-src/ext/sqlite3/tests/
H A Dsqlite3stmt_paramCount_basic.phpt30 echo 'Param count for query ' . ($key + 1) . ":\n";
49 Param count for query 1:
51 Param count for query 2:
53 Param count for query 3:
55 Param count for query 4:
/php-src/Zend/tests/
H A Dforeach_003.phpt7 private $count = 0;
10 function __construct($count, $trap = null) {
11 $this->count = $count;
22 function valid(): bool {$this->trap(__FUNCTION__); return $this->n < $this->count;}
/php-src/ext/standard/tests/general_functions/
H A Dis_countable_with_variables.phpt14 var_dump(count($foo));
20 count($bar);
31 count(): Argument #1 ($value) must be of type Countable|array, null given

Completed in 96 milliseconds

12345678910>>...47