/php-src/tests/classes/ |
H A D | array_access_003.phpt | 11 function offsetExists($index): bool { 12 echo __METHOD__ . "($index)\n"; 15 function offsetGet($index): mixed { 16 echo __METHOD__ . "($index)\n"; 17 switch($index) { 25 return $this->a[$index]; 29 if ($index==3) { 32 $this->a[$index] = $newval; 34 function offsetUnset($index): void { 35 echo __METHOD__ . "($index)\n"; [all …]
|
H A D | array_access_004.phpt | 9 function offsetExists($index): bool { 10 echo __METHOD__ . "($index)\n"; 13 function offsetGet($index): mixed { 14 echo __METHOD__ . "($index)\n"; 15 switch($index) { 23 return $this->a[$index]; 27 if ($index==3) { 30 $this->a[$index] = $newval; 32 function offsetUnset($index): void { 33 echo __METHOD__ . "($index)\n"; [all …]
|
H A D | array_access_009.phpt | 11 function proxySet($element, $index, $value); 12 function proxyUnset($element, $index); 31 function offsetExists($index): bool { 36 function offsetGet($index): mixed { 39 return isset($tmp[$index]) ? $tmp[$index] : NULL; 47 function offsetUnset($index): void { 62 function offsetExists($index): bool 67 function offsetGet($index): mixed 74 $this->person[$index] = $value; 77 function offsetUnset($index): void [all …]
|
H A D | array_access_007.phpt | 13 function offsetExists($index): bool { 14 return array_key_exists($this->realArray, $index); 17 function offsetGet($index): mixed { 18 return $this->realArray[$index]; 21 function offsetSet($index, $value): void { 22 if (is_null($index)) { 25 $this->realArray[$index] = $value; 29 function offsetUnset($index): void { 30 unset($this->realArray[$index]);
|
H A D | array_access_006.phpt | 13 function offsetExists($index): bool { 14 return array_key_exists($this->realArray, $index); 17 function offsetGet($index): mixed { 18 return $this->realArray[$index]; 21 function offsetSet($index, $value): void { 22 $this->realArray[$index] = $value; 25 function offsetUnset($index): void { 26 unset($this->realArray[$index]);
|
H A D | array_access_011.phpt | 22 function offsetExists($index): bool { 27 function offsetGet($index): mixed { 29 …return isset($this->oarray[$this->element][$index]) ? $this->oarray[$this->element][$index] : NULL; 37 function offsetUnset($index): void { 52 function offsetExists($index): bool 57 function offsetGet($index): mixed 59 if (is_array($this->person[$index])) 65 return $this->person[$index]; 71 $this->person[$index] = $value; 74 function offsetUnset($index): void [all …]
|
H A D | array_access_010.phpt | 20 function offsetExists($index): bool { 25 function offsetGet($index): mixed { 27 return isset($this->element[$index]) ? $this->element[$index] : NULL; 32 $this->element[$index] = $value; 35 function offsetUnset($index): void { 37 unset($this->element[$index]); 50 function offsetExists($index): bool 55 function offsetGet($index): mixed 62 $this->person[$index] = $value; 65 function offsetUnset($index): void [all …]
|
H A D | array_access_012.phpt | 9 public function offsetUnset($index): void {} 11 public function offsetSet($index, $value): void { 12 $this->data[$index] = $value; 15 public function offsetGet($index): mixed { 16 return $this->data[$index]; 19 public function offsetExists($index): bool { 20 return isset($this->data[$index]);
|
/php-src/ext/spl/ |
H A D | spl_fixedarray.stub.php | 33 * @param int $index 36 public function offsetExists($index): bool {} argument 39 * @param int $index 42 public function offsetGet($index): mixed {} argument 45 * @param int $index 48 public function offsetSet($index, mixed $value): void {} argument 51 * @param int $index 54 public function offsetUnset($index): void {} argument
|
H A D | spl_dllist.stub.php | 17 public function add(int $index, mixed $value): void {} argument 53 * @param int $index 56 public function offsetExists($index): bool {} argument 59 * @param int $index 62 public function offsetGet($index): mixed {} argument 65 * @param int|null $index 68 public function offsetSet($index, mixed $value): void {} argument 71 * @param int $index 74 public function offsetUnset($index): void {} argument
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_ps_select_union.phpt | 34 $index = 0; 38 $index + 1, gettype($data[$index]), $data[$index], gettype($column1), $column1); 59 $index = 0; 63 $index + 1, gettype($data[$index]), $data[$index], gettype($column1), $column1); 88 $index = 0; 92 $index + 1, gettype($data[$index]), $data[$index], gettype($column1), $column1); 111 $index + 1, gettype($data[$index]), $data[$index], gettype($column1), $column1); 139 $index + 1, gettype($data[$index]), $data[$index], gettype($column1), $column1); 158 $index + 1, gettype($data[$index]), $data[$index], gettype($column1), $column1); 196 $index + 1, gettype($data[$index]), $data[$index], gettype($column1), $column1); [all …]
|
H A D | mysqli_pconnect.phpt | 29 $index = mt_rand(0, $num); 30 } while (!isset($connections[$index])); 31 mysqli_close($connections[$index]); 32 unset($connections[$index]); 47 $index = mt_rand(0, $num); 51 mysqli_close($connections[$index]); 52 unset($connections[$index]); 63 $index = mt_rand(0, $num); 64 } while (!isset($connections[$index])); 65 mysqli_close($connections[$index]); [all …]
|
/php-src/ext/phar/tests/ |
H A D | frontcontroller21.phpt | 10 REQUEST_URI=/frontcontroller21.php/index.php?test=hi 11 PATH_INFO=/index.php 18 string(10) "/index.php" 19 string(10) "/index.php" 20 string(%d) "phar://%sfrontcontroller21.php/index.php" 21 string(18) "/index.php?test=hi" 22 string(32) "/frontcontroller21.php/index.php" 25 string(40) "/frontcontroller21.php/index.php?test=hi"
|
/php-src/ext/spl/tests/ |
H A D | bug31185.phpt | 9 public function offsetExists($index): bool { 10 return isset($this->array[$index]); 13 public function offsetGet($index): mixed { 14 return $this->array[$index]; 17 public function offsetSet($index, $value): void { 18 echo __METHOD__ . "($index, $value)\n"; 19 $this->array[$index] = $value; 22 public function offsetUnset($index): void { 24 unset($this->array[$index]);
|
H A D | bug32134.phpt | 14 public function offsetGet($index): mixed 17 echo __METHOD__ . "($index)\n"; 19 return parent::offsetGet($index); 22 public function offsetSet($index, $newval): void 24 echo __METHOD__ . "($index,$newval)\n"; 25 parent::offsetSet($index, $newval);
|
/php-src/ext/phar/tests/zip/ |
H A D | frontcontroller21.phar.phpt | 11 REQUEST_URI=/frontcontroller21.phar.php/index.php?test=hi 12 PATH_INFO=/index.php 19 string(10) "/index.php" 20 string(10) "/index.php" 21 string(%d) "phar://%sfrontcontroller21.phar.php/index.php" 22 string(18) "/index.php?test=hi" 23 string(37) "/frontcontroller21.phar.php/index.php" 26 string(45) "/frontcontroller21.phar.php/index.php?test=hi"
|
/php-src/ext/phar/tests/tar/ |
H A D | frontcontroller21.phar.phpt | 10 REQUEST_URI=/frontcontroller21.phar.php/index.php?test=hi 11 PATH_INFO=/index.php 18 string(10) "/index.php" 19 string(10) "/index.php" 20 string(%d) "phar://%sfrontcontroller21.phar.php/index.php" 21 string(18) "/index.php?test=hi" 22 string(37) "/frontcontroller21.phar.php/index.php" 25 string(45) "/frontcontroller21.phar.php/index.php?test=hi"
|
/php-src/sapi/fpm/fpm/events/ |
H A D | poll.c | 154 …if (q->ev && q->ev->index >= 0 && q->ev->index < npollfds && q->ev->fd == active_pollfds[q->ev->in… in fpm_event_poll_wait() 157 if (active_pollfds[q->ev->index].revents & POLLIN) { in fpm_event_poll_wait() 190 ev->index = next_free_slot++; in fpm_event_poll_add() 209 ev->index = next_free_slot++; in fpm_event_poll_add() 229 if (ev->index >= 0 && ev->index < npollfds && pollfds[ev->index].fd == ev->fd) { in fpm_event_poll_remove() 231 next_free_slot = ev->index; in fpm_event_poll_remove() 234 pollfds[ev->index].fd = -1; in fpm_event_poll_remove() 235 pollfds[ev->index].events = 0; in fpm_event_poll_remove() 238 ev->index = -1; in fpm_event_poll_remove() 259 ev->index = -1; in fpm_event_poll_remove() [all …]
|
/php-src/ext/phar/tests/cache_list/ |
H A D | frontcontroller21.phpt | 15 REQUEST_URI=/frontcontroller21.php/index.php?test=hi 16 PATH_INFO=/index.php 23 string(10) "/index.php" 24 string(10) "/index.php" 25 string(%d) "phar://%sfrontcontroller21.php/index.php" 26 string(18) "/index.php?test=hi" 27 string(32) "/frontcontroller21.php/index.php" 30 string(40) "/frontcontroller21.php/index.php?test=hi"
|
/php-src/ext/dom/ |
H A D | html_collection.c | 108 dom_nodelist_dimension_index index = dom_modern_nodelist_get_index(offset); in dom_html_collection_read_dimension() local 109 if (UNEXPECTED(index.type == DOM_NODELIST_DIM_ILLEGAL)) { in dom_html_collection_read_dimension() 114 if (index.type == DOM_NODELIST_DIM_STRING) { in dom_html_collection_read_dimension() 115 dom_html_collection_named_item_into_zval(rv, index.str, object); in dom_html_collection_read_dimension() 117 ZEND_ASSERT(index.type == DOM_NODELIST_DIM_LONG); in dom_html_collection_read_dimension() 129 dom_nodelist_dimension_index index = dom_modern_nodelist_get_index(member); in dom_html_collection_has_dimension() local 130 if (UNEXPECTED(index.type == DOM_NODELIST_DIM_ILLEGAL)) { in dom_html_collection_has_dimension() 135 if (index.type == DOM_NODELIST_DIM_STRING) { in dom_html_collection_has_dimension() 136 return dom_html_collection_named_item(index.str, object).node != NULL; in dom_html_collection_has_dimension() 138 ZEND_ASSERT(index.type == DOM_NODELIST_DIM_LONG); in dom_html_collection_has_dimension() [all …]
|
H A D | nodelist.c | 142 if (index >= 0) { in php_dom_nodelist_get_item_into_zval() 145 itemnode = php_dom_libxml_hash_iter(objmap, index); in php_dom_nodelist_get_item_into_zval() 149 zval *entry = zend_hash_index_find(nodeht, index); in php_dom_nodelist_get_item_into_zval() 162 zend_long relative_index = index; in php_dom_nodelist_get_item_into_zval() 220 objmap->cached_obj_index = index; in php_dom_nodelist_get_item_into_zval() 235 zend_long index; in PHP_METHOD() local 237 Z_PARAM_LONG(index) in PHP_METHOD() 243 php_dom_nodelist_get_item_into_zval(objmap, index, return_value); in PHP_METHOD() 289 if (UNEXPECTED(index.type == DOM_NODELIST_DIM_ILLEGAL || index.type == DOM_NODELIST_DIM_STRING)) { in dom_modern_nodelist_read_dimension() 304 if (UNEXPECTED(index.type == DOM_NODELIST_DIM_ILLEGAL || index.type == DOM_NODELIST_DIM_STRING)) { in dom_modern_nodelist_has_dimension() [all …]
|
/php-src/win32/ |
H A D | readdir.c | 30 size_t resolvedw_len, filespecw_len, index; in opendir() local 57 index = resolvedw_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW - 1; in opendir() 60 index = resolvedw_len - 1; in opendir() 62 if (index >= 0 && filespecw[index] == L'/' || index == 0 && filespecw[index] == L'\\') in opendir() 63 filespecw[index] = L'\0'; in opendir() 156 size_t dirw_len, filespecw_len, index; in rewinddir() local 182 index = dirw_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW - 1; in rewinddir() 185 index = dirw_len - 1; in rewinddir() 188 if (index >= 0 && (filespecw[index] == L'/' || in rewinddir() 189 (filespecw[index] == L'\\' && index == 0))) in rewinddir() [all …]
|
/php-src/sapi/cli/ |
H A D | php_http_parser.c | 268 uint32_t index = parser->index; in php_http_parser_execute() local 348 index = 2; in php_http_parser_execute() 513 index = 1; in php_http_parser_execute() 585 ++index; in php_http_parser_execute() 985 index = 0; in php_http_parser_execute() 1148 index = 0; in php_http_parser_execute() 1237 index++; in php_http_parser_execute() 1248 index++; in php_http_parser_execute() 1259 index++; in php_http_parser_execute() 1260 if (index > sizeof(CLOSE)-1 || c != CLOSE[index]) { in php_http_parser_execute() [all …]
|
/php-src/ext/standard/tests/url/ |
H A D | parse_url_basic_007.phpt | 34 --> http://www.php.net/index.php : string(10) "/index.php" 39 --> http://www.php.net:80/index.php : string(10) "/index.php" 40 --> http://www.php.net:80/foo/bar/index.php : string(18) "/foo/bar/index.php" 48 --> http://www.php.net:80/index.php : string(10) "/index.php" 49 --> http://www.php.net:80/index.php? : string(10) "/index.php" 55 --> http://www.php.net:80/index.php?test=1& : string(10) "/index.php" 56 --> http://www.php.net/index.php?& : string(10) "/index.php" 57 --> http://www.php.net:80/index.php?foo& : string(10) "/index.php" 58 --> http://www.php.net/index.php?&foo : string(10) "/index.php" 59 --> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : string(10) "/index.php" [all …]
|
/php-src/ext/dom/tests/ |
H A D | DOMNode_removeChild_basic.phpt | 41 for ($index = $children->length - 1; $index >=0; $index--) { 42 echo "node $index\n"; 43 $current = $children->item($index); 52 for ($index = 0; $index < $children->length; $index++) { 53 echo "node $index\n"; 54 $current = $children->item($index);
|