-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit 9e6a5bf
Fix caching arg by name
Non-persistent arg infos allocated by pdo_hash_methods() break
zend_get_arg_offset_by_name() again.
Fix zend_get_arg_offset_by_name() by excluding ZEND_ACC_NEVER_CACHE instead of
ZEND_ACC_USER_ARG_INFO. Also flag Closure::__invoke() with ZEND_ACC_NEVER_CACHE
(It was already flagged with ZEND_ACC_CALL_VIA_HANDLER, which is synonymous of
ZEND_ACC_NEVER_CACHE WRT caching).
This would allow to remove ZEND_ACC_USER_ARG_INFO later.1 parent bb512d0 commit 9e6a5bf
File tree
3 files changed
+24
-3
lines changed- Zend
- tests/closures
3 files changed
+24
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
497 | 497 |
| |
498 | 498 |
| |
499 | 499 |
| |
500 | - | ||
500 | + | ||
501 | 501 |
| |
502 | 502 |
| |
503 | 503 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5478 | 5478 |
| |
5479 | 5479 |
| |
5480 | 5480 |
| |
5481 | - | ||
5481 | + | ||
5482 | 5482 |
| |
5483 | 5483 |
| |
5484 | 5484 |
| |
| |||
5490 | 5490 |
| |
5491 | 5491 |
| |
5492 | 5492 |
| |
5493 | - | ||
5493 | + | ||
5494 | 5494 |
| |
5495 | 5495 |
| |
5496 | 5496 |
| |
|
0 commit comments