Lines Matching refs:function

8         function __toString() { return "a"; }
9 function __destruct() { throw new Exception; }
15 function __destruct() { throw new Exception; }
22 function __destruct() { throw new Exception; }
29 function __destruct() { throw new Exception; }
35 function __get($x) { return [0]; }
36 function __set($x, $y) {}
39 function __destruct() { throw new Exception; }
46 function &__get($x) { return $this->bar; }
49 function __destruct() { throw new Exception; }
55 function offsetGet($x): mixed { return [0]; }
56 function offsetSet($x, $y): void {}
57 function offsetExists($x): bool { return true; }
58 function offsetUnset($x): void {}
61 function __destruct() { throw new Exception; }
68 function &offsetGet($x): bool { return $this->foo; }
69 function offsetSet($x, $y): void {}
70 function offsetExists($x): bool { return true; }
71 function offsetUnset($x): void {}
74 function __destruct() { throw new Exception; }
79 var_dump((function() { return new class {
81 function __construct() { $this->foo = new stdClass; }
82 function __destruct() { throw new Exception; }
87 var_dump((function() { return new class {
88 function __get($x) { return new stdClass; }
89 function __set($x, $y) {}
90 function __destruct() { throw new Exception; }
95 var_dump((function() { return new class {
97 function __construct() { $this->bar = new stdClass; }
98 function &__get($x) { return $this->bar; }
99 function __destruct() { throw new Exception; }
104 var_dump(++(function() { return new class {
105 function __construct() { $this->foo = new stdClass; }
106 function __destruct() { throw new Exception; }
111 var_dump(++(function() { return new class {
112 function __get($x) { return new stdClass; }
113 function __set($x, $y) {}
114 function __destruct() { throw new Exception; }
119 var_dump(++(function() { return new class {
121 function __construct() { $this->bar = new stdClass; }
122 function &__get($x) { return $this->bar; }
123 function __destruct() { throw new Exception; }
128 var_dump((function() { return new class implements ArrayAccess {
129 function offsetGet($x): mixed { return [new stdClass]; }
130 function offsetSet($x, $y): void {}
131 function offsetExists($x): bool { return true; }
132 function offsetUnset($x): void {}
133 function __destruct() { throw new Exception; }
138 var_dump(++(function() { return new class implements ArrayAccess {
139 function offsetGet($x): mixed { return [new stdClass]; }
140 function offsetSet($x, $y): void {}
141 function offsetExists($x): bool { return true; }
142 function offsetUnset($x): void {}
143 function __destruct() { throw new Exception; }
150 function __construct() { $this->foo = new stdClass; }
151 function __destruct() { throw new Exception; }
157 function __get($x) { return new stdClass; }
158 function __set($x, $y) {}
159 function __destruct() { throw new Exception; }
165 function offsetGet($x): mixed { return [new stdClass]; }
166 function offsetSet($x, $y): void {}
167 function offsetExists($x): bool { return true; }
168 function offsetUnset($x): void {}
169 function __destruct() { throw new Exception; }
176 function __construct() { $this->foo = new stdClass; }
177 function __destruct() { throw new Exception; }
183 function __get($x) { return new stdClass; }
184 function __set($x, $y) {}
185 function __destruct() { throw new Exception; }
191 function offsetGet($x): mixed { return [new stdClass]; }
192 function offsetSet($x, $y): void {}
193 function offsetExists($x): bool { return true; }
194 function offsetUnset($x): void {}
195 function __destruct() { throw new Exception; }
201 function __destruct() { throw new Exception; }
208 function __destruct() { throw new Exception; }
215 function __destruct() { throw new Exception; }
222 function __get($x) {}
223 function __set($x, $y) { throw new Exception; }
230 function offsetGet($x): mixed {}
231 function offsetSet($x, $y): void { throw new Exception; }
232 function offsetExists($x): bool { return true; }
233 function offsetUnset($x): void {}
240 function __destruct() { throw new Exception; }
247 $f = function() {
249 function __toString() { return "a"; }
250 function __destruct() { throw new Exception; }
257 $f = function() {
259 function __toString() { return "a"; }
260 function __destruct() { throw new Exception; }
268 function __toString() { $x = "Z"; return ++$x; }
269 function __destruct() { throw new Exception; }
275 function __clone() { throw new Exception; }