Home
last modified time | relevance | path

Searched refs:index (Results 26 – 50 of 518) sorted by relevance

12345678910>>...21

/php-src/ext/dom/tests/
H A Ddom_comment_variation.phpt18 for ($index = 0; $index < $children->length; $index++) {
19 echo "--- child $index ---\n";
20 $current = $children->item($index);
H A Ddom_comment_basic.phpt21 for ($index = 0; $index < $children->length; $index++) {
22 echo "--- child $index ---\n";
23 $current = $children->item($index);
H A DDOMNode_cloneNode_basic.phpt41 for ($index = $children->length - 1; $index >=0; $index--) {
42 $current = $children->item($index);
68 for ($index = 0; $index < $children->length; $index++) {
69 echo "node $index\n";
70 dumpcourse($children->item($index));
H A Dgh13863.phpt41 echo "--- $name test remove index 2 at index 2 ---\n";
55 echo "--- $name test remove index 1 at index 2 ---\n";
84 --- Legacy test remove index 2 at index 2 ---
97 --- Legacy test remove index 1 at index 2 ---
123 --- Modern test remove index 2 at index 2 ---
138 --- Modern test remove index 1 at index 2 ---
/php-src/ext/hash/
H A Dhash_sha.c237 partLen = 64 - index; in PHP_SHA224Update()
249 index = 0; in PHP_SHA224Update()
281 padLen = (index < 56) ? (56 - index) : (120 - index); in PHP_SHA224Final()
315 partLen = 64 - index; in PHP_SHA256Update()
327 index = 0; in PHP_SHA256Update()
359 padLen = (index < 56) ? (56 - index) : (120 - index); in PHP_SHA256Final()
531 partLen = 128 - index; in PHP_SHA384Update()
543 index = 0; in PHP_SHA384Update()
581 padLen = (index < 112) ? (112 - index) : (240 - index); in PHP_SHA384Final()
698 index = 0; in PHP_SHA512Update()
[all …]
/php-src/ext/standard/tests/strings/
H A Dstrrpos_variation12.phpt20 for($index = 0; $index < count($haystacks); $index++ ) {
21 var_dump( strrpos($haystacks[$index], "\0") );
22 var_dump( strrpos($haystacks[$index], "\0", $index) );
H A Dstrrpos_variation13.phpt22 for($index = 0; $index < count($needles); $index++ ) {
23 var_dump( strrpos($haystack, $needles[$index]) );
24 var_dump( strrpos($haystack, $needles[$index], $index) );
H A Dstripos_variation12.phpt20 for($index = 0; $index < count($haystacks); $index++ ) {
21 var_dump( stripos($haystacks[$index], "\0") );
22 var_dump( stripos($haystacks[$index], "\0", $index) );
H A Dstripos_variation13.phpt22 for($index = 0; $index < count($needles); $index++ ) {
23 var_dump( stripos($haystack, $needles[$index]) );
24 var_dump( stripos($haystack, $needles[$index], $index) );
H A Durl_t.phpt23 'http://www.php.net/index.php',
213 string(10) "/index.php"
266 string(10) "/index.php"
367 string(10) "/index.php"
378 string(10) "/index.php"
456 string(10) "/index.php"
467 string(10) "/index.php"
480 string(10) "/index.php"
491 string(10) "/index.php"
504 string(10) "/index.php"
[all …]
H A Dstrrchr_variation12.phpt18 for($index = 0; $index < count($haystacks); $index++ ) {
20 var_dump( strrchr($haystacks[$index], "\0") );
22 var_dump( strrchr($haystacks[$index], "") );
/php-src/ext/gd/tests/
H A Dgithub_bug_215.phpt2 Github #215 (imagefilltoborder stack overflow when invalid pallete index used)
18 /* Use unallocated color index */
22 /* Use negative color index */
27 /* Use unallocated color index */
31 /* Use negative color index */
36 /* Use negative color index */
/php-src/tests/classes/
H A Darray_access_008.phpt13 function offsetExists($index): bool {
14 return array_key_exists($this->person, $index);
17 function offsetGet($index): mixed {
18 return $this->person[$index];
21 function offsetSet($index, $value): void {
22 $this->person[$index] = $value;
25 function offsetUnset($index): void {
26 unset($this->person[$index]);
H A Darray_access_005.phpt13 function offsetExists($index): bool {
14 return array_key_exists($this->person, $index);
17 function offsetGet($index): mixed {
18 return $this->person[$index];
21 function offsetSet($index, $value): void {
22 $this->person[$index] = $value;
25 function offsetUnset($index): void {
26 unset($this->person[$index]);
/php-src/ext/spl/tests/
H A Dbug33136.phpt16 function offsetGet($index): mixed
18 echo __METHOD__ . "($index)\n";
19 return parent::offsetGet($index);
22 function offsetSet($index, $value): void
24 echo __METHOD__ . "(" . (is_null($index) ? "NULL" : $index) . ",$value)\n";
25 parent::offsetSet($index, $value);
/php-src/ext/standard/tests/url/
H A Durls.inc20 'http://www.php.net/index.php',
25 'http://www.php.net:80/index.php',
26 'http://www.php.net:80/foo/bar/index.php',
34 'http://www.php.net:80/index.php',
35 'http://www.php.net:80/index.php?',
41 'http://www.php.net:80/index.php?test=1&',
42 'http://www.php.net/index.php?&',
43 'http://www.php.net:80/index.php?foo&',
44 'http://www.php.net/index.php?&foo',
45 'http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI',
[all …]
H A Dparse_url_basic_004.phpt34 --> http://www.php.net/index.php : NULL
39 --> http://www.php.net:80/index.php : int(80)
40 --> http://www.php.net:80/foo/bar/index.php : int(80)
48 --> http://www.php.net:80/index.php : int(80)
49 --> http://www.php.net:80/index.php? : int(80)
55 --> http://www.php.net:80/index.php?test=1& : int(80)
56 --> http://www.php.net/index.php?& : NULL
57 --> http://www.php.net:80/index.php?foo& : int(80)
58 --> http://www.php.net/index.php?&foo : NULL
59 --> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : int(80)
[all …]
/php-src/ext/opcache/
H A Dzend_accelerator_hash.c77 zend_ulong index; in zend_accel_hash_update() local
92 index = hash_value % accel_hash->max_num_entries; in zend_accel_hash_update()
95 entry = accel_hash->hash_table[index]; in zend_accel_hash_update()
136 entry->next = accel_hash->hash_table[index]; in zend_accel_hash_update()
137 accel_hash->hash_table[index] = entry; in zend_accel_hash_update()
143 zend_ulong index; in zend_accel_hash_find_ex() local
151 index = hash_value % accel_hash->max_num_entries; in zend_accel_hash_find_ex()
153 entry = accel_hash->hash_table[index]; in zend_accel_hash_find_ex()
195 zend_ulong index; in zend_accel_hash_unlink() local
204 entry = accel_hash->hash_table[index]; in zend_accel_hash_unlink()
[all …]
/php-src/ext/mysqli/
H A Dmysqli_report.c53 char index[15]; in php_mysqli_report_index() local
56 strcpy(index, "Bad index"); in php_mysqli_report_index()
58 strcpy(index, "No index"); in php_mysqli_report_index()
62 php_mysqli_throw_sql_exception("00000", 0, "%s used in query/prepared statement %s", index, query); in php_mysqli_report_index()
/php-src/ext/dom/lexbor/lexbor/core/
H A Ddiyfp.c122 unsigned int index; in lexbor_cached_power_dec() local
125 index = (exp + LEXBOR_DECIMAL_EXPONENT_OFF) / LEXBOR_DECIMAL_EXPONENT_DIST; in lexbor_cached_power_dec()
126 cp = &lexbor_cached_powers[index]; in lexbor_cached_power_dec()
137 unsigned int index; in lexbor_cached_power_bin() local
143 index = (unsigned) (k >> 3) + 1; in lexbor_cached_power_bin()
145 cp = &lexbor_cached_powers[index]; in lexbor_cached_power_bin()
147 *dec_exp = -(LEXBOR_DECIMAL_EXPONENT_MIN + (int) (index << 3)); in lexbor_cached_power_bin()
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_bindcolumn.phpt44 $index = 0;
46 if ($row['id'] != $data[$index]['id']) {
48 var_export($data[$index]['id'], true), gettype($data[$index]['id']),
51 if ($row['label'] != $data[$index]['label']) {
53 var_export($data[$index]['label'], true), gettype($data[$index]['label']),
56 $index++;
84 $index = 0;
86 if ($row['id'] != $data[$index]['id']) {
88 var_export($data[$index]['id'], true), gettype($data[$index]['id']),
93 var_export($data[$index]['label'], true), gettype($data[$index]['label']),
[all …]
/php-src/ext/pcre/tests/
H A Dpreg_grep_basic.phpt8 $array = array('HTTP://WWW.EXAMPLE.COM', '/index.html', '/info/stat/', 'http://test.uk.com/index/ht…
22 string(11) "/index.html"
26 string(29) "http://test.uk.com/index/html"
34 string(29) "http://test.uk.com/index/html"
40 string(11) "/index.html"
44 string(29) "http://test.uk.com/index/html"
50 string(29) "http://test.uk.com/index/html"
56 string(11) "/index.html"
/php-src/ext/standard/tests/array/
H A Dkey_exists_variation2.phpt10 // there is not a index = 0 element
15 // 1 has index = 0
19 // 42 has index = 0, netherless its position is the latest
24 // 'bar' has index = 0, netherless it is a string
28 // 'baz' has index = 0, netherless its position is the latest
40 // object has index = 0, netherless its position is the latest
44 // object has index = 0, netherless its position is the first
49 // stream resource has index = 0, netherless its position is the first
54 // stream resource has index = 0, netherless its position is the latest
/php-src/Zend/tests/
H A Dconstant_expressions_coalesce.phpt8 const T_1 = null ?? A[1]['undefined']['index'] ?? 1;
9 const T_2 = null ?? A['undefined']['index'] ?? 2;
22 var_dump((function(){ static $var = null ?? A[1]['undefined']['index'] ?? 1; return $var; })());
23 var_dump((function(){ static $var = null ?? A['undefined']['index'] ?? 2; return $var; })());
27 var_dump((new class { public $var = null ?? A[1]['undefined']['index'] ?? 1; })->var);
28 var_dump((new class { public $var = null ?? A['undefined']['index'] ?? 2; })->var);
/php-src/ext/dom/
H A Ddom_iterators.c30 int index; member
43 if (priv->cur < priv->index) { in itemHashScanner()
65 static xmlNode *php_dom_libxml_hash_iter_ex(xmlHashTable *ht, int index) in php_dom_libxml_hash_iter_ex() argument
69 if ((htsize = xmlHashSize(ht)) > 0 && index < htsize) { in php_dom_libxml_hash_iter_ex()
72 iter.index = index; in php_dom_libxml_hash_iter_ex()
83 xmlNode *curnode = php_dom_libxml_hash_iter_ex(objmap->ht, index); in php_dom_libxml_hash_iter()
129 ZVAL_LONG(key, iter->index); in php_dom_iterator_current_key()
195 zend_ulong index = 0; in php_dom_iterator_move_forward() local
196 while (curnode != NULL && index++ < iter->index) { in php_dom_iterator_move_forward()
217 previndex = iter->index - 1; in php_dom_iterator_move_forward()
[all …]

Completed in 70 milliseconds

12345678910>>...21