Searched refs:offsetGet (Results 1 – 25 of 112) sorted by relevance
12345
/php-src/ext/spl/tests/ |
H A D | bug74058.phpt | 19 public function offsetGet($x): mixed 21 echo "offsetGet('{$x}')\n"; 22 return parent::offsetGet($x); 41 echo "offsetGet('{$x}')\n"; 42 return parent::offsetGet($x); 63 offsetGet('a1') 66 offsetGet('a1') 67 offsetGet('a1') 73 offsetGet('a2') 76 offsetGet('a2') [all …]
|
H A D | bug62059.phpt | 7 public function offsetGet($name): mixed { 8 echo "offsetGet($name)\n"; 9 return parent::offsetGet($name); 17 public function offsetGet($name): mixed { 18 echo "offsetGet($name)\n"; 19 return parent::offsetGet($name); 55 offsetGet(1) 58 offsetGet(1) 61 offsetGet(1) 63 offsetGet(1)
|
H A D | bug74478.phpt | 12 public function offsetGet($name): mixed { 13 echo "offsetGet($name)\n"; 14 return parent::offsetGet($name); 49 offsetGet(0) 52 offsetGet(0) 54 offsetGet(1) 58 offsetGet(0) 60 offsetGet(1)
|
H A D | bug66834.phpt | 6 // overrides both offsetExists and offsetGet 14 public function offsetGet($offset): mixed { 16 return parent::offsetGet($offset); 29 // overrides only offsetGet 32 public function offsetGet($offset): mixed { 34 return parent::offsetGet($offset); 38 // overrides only offsetGet and offsetSet 41 public function offsetGet($offset): mixed 68 echo "==== class with offsetGet() ====\n"; 135 ==== class with offsetGet() ==== [all …]
|
H A D | bug32134.phpt | 2 Bug #32134 (Overloading offsetGet/offsetSet) 14 public function offsetGet($index): mixed 19 return parent::offsetGet($index); 33 var_dump($myArray->offsetGet('one')); 41 myArray::offsetGet(one) 44 myArray::offsetGet(two)
|
H A D | bug33136.phpt | 16 function offsetGet($index): mixed 19 return parent::offsetGet($index); 53 Collection::offsetGet(0) 56 Collection::offsetGet(0) 58 Collection::offsetGet(1) 61 Collection::offsetGet(foo)
|
H A D | fixedarray_002.phpt | 13 public function offsetGet($n): mixed { 14 echo "A::offsetGet\n"; 15 return parent::offsetGet($n); 73 A::offsetGet 91 A::offsetGet 92 A::offsetGet 93 A::offsetGet 94 A::offsetGet
|
H A D | SplFixedArray_override_offsetGet_only.phpt | 2 Overriding SplFixedArray::offsetGet() only 7 public function offsetGet($key): mixed { 8 return "prefix_" . parent::offsetGet($key);
|
H A D | bug36825.phpt | 2 Bug #36825 (Exceptions thrown in ArrayObject::offsetGet cause segfault) 8 public function offsetGet($key): mixed 28 foo::offsetGet(bar)
|
H A D | SplDoublyLinkedList_offsetGet_param_array.phpt | 2 SplDoublyLinkedList::offsetGet() with 1st parameter passed as array. 10 $get = $array->offsetGet( array( 'fail' ) ); 14 Fatal error: Uncaught TypeError: SplDoublyLinkedList::offsetGet(): Argument #1 ($index) must be of …
|
H A D | SplDoublyLinkedList_offsetGet_param_string.phpt | 2 SplDoublyLinkedList::offsetGet() with 1st parameter passed as string. 10 $get = $array->offsetGet( 'fail' ); 14 Fatal error: Uncaught TypeError: SplDoublyLinkedList::offsetGet(): Argument #1 ($index) must be of …
|
/php-src/tests/classes/ |
H A D | array_access_001.phpt | 47 echo "===offsetGet===\n"; 98 ObjectOne::offsetGet(0) 101 ObjectOne::offsetGet(1) 104 ObjectOne::offsetGet(2) 126 ===offsetGet=== 127 ObjectOne::offsetGet(0) 129 ObjectOne::offsetGet(1) 131 ObjectOne::offsetGet(2) 139 ObjectOne::offsetGet(6) 146 ObjectOne::offsetGet(1) [all …]
|
H A D | array_access_002.phpt | 47 echo "===offsetGet===\n"; 98 ObjectOne::offsetGet(0) 101 ObjectOne::offsetGet(1) 104 ObjectOne::offsetGet(2) 126 ===offsetGet=== 127 ObjectOne::offsetGet(0) 129 ObjectOne::offsetGet(1) 131 ObjectOne::offsetGet(2) 139 ObjectOne::offsetGet(6) 146 ObjectOne::offsetGet(1) [all …]
|
H A D | array_access_003.phpt | 2 ZE2 ArrayAccess::offsetGet ambiguities 15 function offsetGet($index): mixed { 49 ObjectOne::offsetGet(1) 51 ObjectOne::offsetGet(2) 53 ObjectOne::offsetGet(2) 56 ObjectOne::offsetGet(2)
|
H A D | array_access_004.phpt | 2 ZE2 ArrayAccess::offsetGet ambiguities 13 function offsetGet($index): mixed { 47 ObjectOne::offsetGet(1) 49 ObjectOne::offsetGet(2) 51 ObjectOne::offsetGet(2) 54 ObjectOne::offsetGet(2)
|
H A D | array_access_010.phpt | 25 function offsetGet($index): mixed { 55 function offsetGet($index): mixed 123 ArrayReferenceProxy::offsetGet(Array, name) 128 ArrayReferenceProxy::offsetGet(Array, name) 133 ArrayReferenceProxy::offsetGet(Array, name) 136 ArrayReferenceProxy::offsetGet(Array, name) 139 ArrayReferenceProxy::offsetGet(Array, name) 159 ArrayReferenceProxy::offsetGet(Array, name) 164 ArrayReferenceProxy::offsetGet(Array, name)
|
H A D | array_access_009.phpt | 36 function offsetGet($index): mixed { 67 function offsetGet($index): mixed 147 ArrayProxy::offsetGet(0, name) 152 ArrayProxy::offsetGet(0, name) 157 ArrayProxy::offsetGet(0, name) 160 ArrayProxy::offsetGet(0, name) 163 ArrayProxy::offsetGet(0, name) 182 ArrayProxy::offsetGet(0, name) 187 ArrayProxy::offsetGet(0, name)
|
H A D | array_access_011.phpt | 27 function offsetGet($index): mixed { 57 function offsetGet($index): mixed 137 ArrayAccessReferenceProxy::offsetGet(0, name) 142 ArrayAccessReferenceProxy::offsetGet(0, name) 147 ArrayAccessReferenceProxy::offsetGet(0, name) 150 ArrayAccessReferenceProxy::offsetGet(0, name) 153 ArrayAccessReferenceProxy::offsetGet(0, name) 178 ArrayAccessReferenceProxy::offsetGet(0, name) 183 ArrayAccessReferenceProxy::offsetGet(0, name)
|
/php-src/Zend/tests/ |
H A D | assign_coalesce_003.phpt | 16 public function &offsetGet($k): mixed { 17 echo "offsetGet($k)\n"; 52 offsetGet(foo) 58 offsetGet(null) 62 offsetGet(foo) 64 offsetGet(foo) 68 offsetGet(foo) 70 offsetGet(bar)
|
H A D | bug71731.phpt | 12 public function &offsetGet($name): mixed { 13 echo "offsetGet($name)\n"; 51 offsetGet(0) 54 offsetGet(0) 56 offsetGet(1) 60 offsetGet(0) 62 offsetGet(1)
|
H A D | bug63217.phpt | 23 public function offsetGet($offset): mixed { 24 echo "offsetGet given "; 99 offsetGet given string(1) "0" 100 offsetGet given string(3) "123" 107 offsetGet given string(1) "0" 108 offsetGet given string(3) "123"
|
H A D | bug39297.phpt | 26 public function offsetGet($offset): mixed { 27 echo "offsetGet()\n"; 44 offsetGet()
|
/php-src/Zend/tests/offsets/ |
H A D | ArrayAccess_container_offset_behaviour.phpt | 10 string(12) "CLASS_NAME::offsetGet" 18 string(12) "CLASS_NAME::offsetGet" 22 string(12) "CLASS_NAME::offsetGet" 34 string(12) "CLASS_NAME::offsetGet" 40 string(12) "CLASS_NAME::offsetGet" 44 string(12) "CLASS_NAME::offsetGet" 51 string(12) "CLASS_NAME::offsetGet" 58 string(12) "CLASS_NAME::offsetGet" 64 string(12) "CLASS_NAME::offsetGet" 70 string(12) "CLASS_NAME::offsetGet" [all …]
|
/php-src/Zend/tests/new_without_parentheses/ |
H A D | anonymous_class_access.phpt | 37 public function offsetGet(mixed $offset): mixed { echo 'offsetGet' . PHP_EOL; return null; } 47 public function offsetGet(mixed $offset): mixed { return null; } 63 offsetGet
|
H A D | new_with_ctor_arguments_parentheses.phpt | 34 public function offsetGet(mixed $offset): mixed 36 echo 'offsetGet' . PHP_EOL; 106 offsetGet 107 offsetGet 108 offsetGet
|
Completed in 25 milliseconds
12345