Home
last modified time | relevance | path

Searched refs:offset (Results 26 – 50 of 812) sorted by path

12345678910>>...33

/php-src/Zend/tests/
H A Dbug33710.phpt8 function offsetExists($offset): bool { return true;}
9 function offsetGet($offset): mixed { return null; }
10 function offsetSet($offset, $value): void {/*...*/}
11 function offsetUnset($offset): void {/*...*/}
H A Dbug39018.phpt65 Warning: String offset cast occurred in %s on line %d
67 Warning: Uninitialized string offset %d in %s on line %d
69 Warning: Uninitialized string offset 0 in %s on line %d
71 Warning: Uninitialized string offset 0 in %s on line %d
73 Warning: String offset cast occurred in %s on line %d
77 Warning: String offset cast occurred in %s on line %d
81 Warning: Uninitialized string offset 0 in %s on line %d
93 Warning: String offset cast occurred in %s on line %d
97 Warning: String offset cast occurred in %s on line %d
101 Warning: String offset cast occurred in %s on line %d
[all …]
H A Dbug39018_2.phpt2 Bug #39018 [2] (Error control operator '@' fails to suppress "Uninitialized string offset")
H A Dbug39297.phpt13 public function offsetExists($offset): bool {
16 public function offsetUnset($offset): void {
19 public function offsetSet($offset, $value): void {
21 $cannonicalName = strtolower($offset);
26 public function offsetGet($offset): mixed {
28 $cannonicalName = strtolower($offset);
H A Dbug39304.phpt2 Bug #39304 (Segmentation fault with list unpacking of string offset)
10 Warning: Uninitialized string offset 0 in %s on line %d
H A Dbug40833.phpt38 function offsetUnset($offset): void
44 function offsetSet($offset, $value): void
48 function offsetGet($offset): mixed
53 function offsetExists($offset): bool
H A Dbug53432.phpt57 Warning: Illegal string offset -1 in %s on line %d
60 Cannot access offset of type string on string
66 Error: Cannot use string offset as an array
H A Dbug54367.phpt7 public function offsetSet($offset, $value): void { }
8 public function offsetExists($offset): bool { }
9 public function offsetUnset($offset): void { }
11 public function offsetGet($offset): mixed
13 return function ($var) use ($offset) { // here is the problem
14 var_dump($offset, $var);
H A Dbug63217.phpt2 Bug #63217 (Constant numeric strings become integers when used as ArrayAccess offset)
10 public function offsetExists($offset): bool {
12 var_dump($offset);
15 public function offsetUnset($offset): void {
17 var_dump($offset);
19 public function offsetSet($offset, $value): void {
21 var_dump($offset);
23 public function offsetGet($offset): mixed {
25 var_dump($offset);
H A Dbug64417.phpt7 public function offsetSet($offset, $value): void {
8 if (is_null($offset)) {
11 $this->container[$offset] = $value;
14 public function offsetExists($offset): bool {
15 return isset($this->container[$offset]);
17 public function offsetUnset($offset): void {
18 unset($this->container[$offset]);
20 public function &offsetGet($offset): mixed {
22 if (isset($this->container[$offset])) {
23 $result = &$this->container[$offset];
H A Dbug64578.phpt14 string(26) "Illegal string offset "2a""
H A Dbug68896.phpt7 function offsetGet($offset): mixed {
8 return $this->a[$offset];
10 function offsetSet($offset, $value): void {
11 $this->a[$offset] = $value;
13 function offsetExists($offset): bool {
14 isset($this->a[$offset]);
16 function offsetUnset($offset): void {
17 unset($this->a[$offset]);
H A Dbug69955.phpt7 function offsetExists($offset): bool
9 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset);
11 function offsetGet($offset): mixed
13 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); return 100;
15 function offsetSet($offset, $value): void
17 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); var_dump($value);
19 function offsetUnset($offset): void
21 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset);
H A Dbug70089.phpt32 string(36) "Cannot use string offset as an array"
33 string(36) "Cannot use string offset as an array"
H A Dbug70253.phpt8 Warning: unserialize(): Error at offset 33 of 33 bytes in %s on line %d
H A Dbug71359.phpt14 throw new Exception('Unknown offset');
H A Dbug71572.phpt2 Bug #71572: String offset assignment from an empty string inserts null byte
30 Cannot assign an empty string to a string offset
31 Cannot assign an empty string to a string offset
32 Cannot assign an empty string to a string offset
33 Cannot assign an empty string to a string offset
H A Dbug71731.phpt15 throw new Exception('Unknown offset');
H A Dbug72918.phpt2 Bug #72918 (negative offset inside a quoted string leads to parse error)
H A Dbug73792.phpt15 Warning: Illegal string offset "2bbb" in %s on line %d
H A Dbug76534.phpt2 Bug #76534 (PHP hangs on 'illegal string offset on string references with an error handler)
13 Fatal error: Uncaught Exception: Illegal string offset "2bar" in %s:%d
H A Dbug78356.phpt6 public function offsetGet($offset): mixed
10 public function offsetExists($offset): bool
14 public function offsetUnset($offset): void {}
15 public function offsetSet($offset, $value): void {}
H A Dbug79790.phpt2 Bug #79790: "Illegal offset type" exception during AST evaluation not handled properly
11 Fatal error: Uncaught TypeError: Cannot access offset of type array on array in %s:%d
H A Dbug79947.phpt2 Bug #79947: Memory leak on invalid offset type in compound assignment
15 Cannot access offset of type array on array
H A Dbug80781.phpt28 Fatal error: Uncaught TypeError: Cannot access offset of type array in isset or empty in %s:%d

Completed in 31 milliseconds

12345678910>>...33