Home
last modified time | relevance | path

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

12345678910>>...23

/PHP-7.4/ext/dom/tests/
H A Ddom_comment_basic.phpt23 for ($index = 0; $index < $children->length; $index++) {
24 echo "--- child $index ---\n";
25 $current = $children->item($index);
H A DDOMNode_cloneNode_basic.phpt43 for ($index = $children->length - 1; $index >=0; $index--) {
44 $current = $children->item($index);
70 for ($index = 0; $index < $children->length; $index++) {
71 echo "node $index\n";
72 dumpcourse($children->item($index));
/PHP-7.4/ext/gd/tests/
H A Dgithub_bug_215.phpt2 Github #215 (imagefilltoborder stack overflow when invalid pallete index used)
17 /* Use unallocated color index */
21 /* Use negative color index */
26 /* Use unallocated color index */
30 /* Use negative color index */
35 /* Use negative color index */
/PHP-7.4/ext/spl/tests/
H A Dbug33136.phpt16 function offsetGet($index)
18 echo __METHOD__ . "($index)\n";
19 return parent::offsetGet($index);
22 function offsetSet($index, $value)
24 echo __METHOD__ . "(" . (is_null($index) ? "NULL" : $index) . ",$value)\n";
25 parent::offsetSet($index, $value);
/PHP-7.4/tests/classes/
H A Darray_access_008.phpt13 function offsetExists($index) {
14 return array_key_exists($this->person, $index);
17 function offsetGet($index) {
18 return $this->person[$index];
21 function offsetSet($index, $value) {
22 $this->person[$index] = $value;
25 function offsetUnset($index) {
26 unset($this->person[$index]);
H A Darray_access_005.phpt13 function offsetExists($index) {
14 return array_key_exists($this->person, $index);
17 function offsetGet($index) {
18 return $this->person[$index];
21 function offsetSet($index, $value) {
22 $this->person[$index] = $value;
25 function offsetUnset($index) {
26 unset($this->person[$index]);
H A Darray_access_001.phpt9 function offsetExists($index) {
10 echo __METHOD__ . "($index)\n";
13 function offsetGet($index) {
14 echo __METHOD__ . "($index)\n";
15 return $this->a[$index];
17 function offsetSet($index, $newval) {
18 echo __METHOD__ . "($index,$newval)\n";
19 return $this->a[$index] = $newval;
21 function offsetUnset($index) {
22 echo __METHOD__ . "($index)\n";
[all …]
H A Darray_access_002.phpt9 function offsetExists($index) {
10 echo __METHOD__ . "($index)\n";
13 function offsetGet($index) {
14 echo __METHOD__ . "($index)\n";
15 return $this->a[$index];
17 function offsetSet($index, $newval) {
18 echo __METHOD__ . "($index,$newval)\n";
19 /*return*/ $this->a[$index] = $newval;
21 function offsetUnset($index) {
22 echo __METHOD__ . "($index)\n";
[all …]
/PHP-7.4/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 …]
/PHP-7.4/ext/standard/tests/strings/
H A Dstripos_variation12.phpt25 for($index = 0; $index < count($haystacks); $index++ ) {
26 var_dump( stripos($haystacks[$index], "\0") );
27 var_dump( stripos($haystacks[$index], "\0", $index) );
H A Dstrrpos_variation13.phpt27 for($index = 0; $index < count($needles); $index++ ) {
28 var_dump( strrpos($haystack, $needles[$index]) );
29 var_dump( strrpos($haystack, $needles[$index], $index) );
H A Dstrrpos_variation12.phpt25 for($index = 0; $index < count($haystacks); $index++ ) {
26 var_dump( strrpos($haystacks[$index], "\0") );
27 var_dump( strrpos($haystacks[$index], "\0", $index) );
H A Dstripos_variation13.phpt27 for($index = 0; $index < count($needles); $index++ ) {
28 var_dump( stripos($haystack, $needles[$index]) );
29 var_dump( stripos($haystack, $needles[$index], $index) );
H A Durl_t.phpt23 'http://www.php.net/index.php',
213 string(10) "/index.php"
258 string(10) "/index.php"
359 string(10) "/index.php"
370 string(10) "/index.php"
442 string(10) "/index.php"
453 string(10) "/index.php"
466 string(10) "/index.php"
477 string(10) "/index.php"
490 string(10) "/index.php"
[all …]
/PHP-7.4/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_bindcolumn.phpt42 $index = 0;
44 if ($row['id'] != $data[$index]['id']) {
46 var_export($data[$index]['id'], true), gettype($data[$index]['id']),
49 if ($row['label'] != $data[$index]['label']) {
51 var_export($data[$index]['label'], true), gettype($data[$index]['label']),
54 $index++;
82 $index = 0;
84 if ($row['id'] != $data[$index]['id']) {
86 var_export($data[$index]['id'], true), gettype($data[$index]['id']),
91 var_export($data[$index]['label'], true), gettype($data[$index]['label']),
[all …]
/PHP-7.4/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-7.4/ext/dom/
H A Dnodelist.c31 ZEND_ARG_INFO(0, index)
133 zend_long index; in PHP_FUNCTION() local
143 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &index) == FAILURE) { in PHP_FUNCTION()
147 if (index >= 0) { in PHP_FUNCTION()
154 itemnode = php_dom_libxml_hash_iter(objmap->ht, index); in PHP_FUNCTION()
156 itemnode = php_dom_libxml_notation_iter(objmap->ht, index); in PHP_FUNCTION()
161 zval *entry = zend_hash_index_find(nodeht, index); in PHP_FUNCTION()
171 while (count < index && curnode != NULL) { in PHP_FUNCTION()
182 …get_elements_by_tag_name_ns_raw(nodep, (char *) objmap->ns, (char *) objmap->local, &count, index); in PHP_FUNCTION()
H A Ddom_iterators.c32 int index; member
39 int index; member
51 if(priv->cur < priv->index) { in itemHashScanner()
85 xmlNode *php_dom_libxml_hash_iter(xmlHashTable *ht, int index) /* {{{ */ in php_dom_libxml_hash_iter() argument
91 if ((htsize = xmlHashSize(ht)) > 0 && index < htsize) { in php_dom_libxml_hash_iter()
94 iter->index = index; in php_dom_libxml_hash_iter()
112 if ((htsize = xmlHashSize(ht)) > 0 && index < htsize) { in php_dom_libxml_notation_iter()
115 iter->index = index; in php_dom_libxml_notation_iter()
163 ZVAL_LONG(key, iter->index); in php_dom_iterator_current_key()
231 curnode = php_dom_libxml_hash_iter(objmap->ht, iter->index); in php_dom_iterator_move_forward()
[all …]
/PHP-7.4/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()
138 entry->next = accel_hash->hash_table[index]; in zend_accel_hash_update()
139 accel_hash->hash_table[index] = entry; in zend_accel_hash_update()
145 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()
232 zend_ulong index; in zend_accel_hash_unlink() local
241 entry = accel_hash->hash_table[index]; in zend_accel_hash_unlink()
[all …]
/PHP-7.4/ext/pcre/tests/
H A Dpreg_grep_basic.phpt9 $array = array('HTTP://WWW.EXAMPLE.COM', '/index.html', '/info/stat/', 'http://test.uk.com/index/ht…
23 string(11) "/index.html"
27 string(29) "http://test.uk.com/index/html"
35 string(29) "http://test.uk.com/index/html"
41 string(11) "/index.html"
45 string(29) "http://test.uk.com/index/html"
51 string(29) "http://test.uk.com/index/html"
57 string(11) "/index.html"
/PHP-7.4/ext/zip/tests/
H A Dutils.inc6 for ($index = 0; $index < $zip->numFiles; $index++) {
7 $stat = $zip->statIndex($index);
/PHP-7.4/ext/hash/
H A Dhash_sha.c343 partLen = 64 - index; in PHP_SHA1Update()
355 index = 0; in PHP_SHA1Update()
388 padLen = (index < 56) ? (56 - index) : (120 - index); in PHP_SHA1Final()
565 index = 0; in PHP_SHA224Update()
597 padLen = (index < 56) ? (56 - index) : (120 - index); in PHP_SHA224Final()
642 index = 0; in PHP_SHA256Update()
674 padLen = (index < 56) ? (56 - index) : (120 - index); in PHP_SHA256Final()
856 index = 0; in PHP_SHA384Update()
894 padLen = (index < 112) ? (112 - index) : (240 - index); in PHP_SHA384Final()
1005 index = 0; in PHP_SHA512Update()
[all …]
H A Dhash_haval.c295 partLen = 128 - index; in PHP_HAVALUpdate()
307 index = 0; in PHP_HAVALUpdate()
324 unsigned int index, padLen; in PHP_HAVAL128Final() local
338 padLen = (index < 118) ? (118 - index) : (246 - index); in PHP_HAVAL128Final()
378 unsigned int index, padLen; in PHP_HAVAL160Final() local
392 padLen = (index < 118) ? (118 - index) : (246 - index); in PHP_HAVAL160Final()
432 unsigned int index, padLen; in PHP_HAVAL192Final() local
446 padLen = (index < 118) ? (118 - index) : (246 - index); in PHP_HAVAL192Final()
472 unsigned int index, padLen; in PHP_HAVAL224Final() local
486 padLen = (index < 118) ? (118 - index) : (246 - index); in PHP_HAVAL224Final()
[all …]
/PHP-7.4/ext/pdo/tests/
H A Dpdo_038.phpt2 PDOStatement::fetchColumn() invalid column index
16 function fetchColumn($stmt, $index) {
18 return $stmt->fetchColumn($index);
40 Warning: PDOStatement::fetchColumn(): SQLSTATE[HY000]: General error: Invalid column index in %s
44 Warning: PDOStatement::fetchColumn(): SQLSTATE[HY000]: General error: Invalid column index in %s
/PHP-7.4/ext/posix/tests/
H A Dposix_getgrgid.phpt16 die('Array index "name" does not exist.');
19 die('Array index "passwd" does not exist.');
22 die('Array index "members" does not exist.');
24 die('Array index "members" must be an array.');
38 die('Array index "gid" does not exist.');

Completed in 53 milliseconds

12345678910>>...23