Commit b61f192
authored
Avoid repeated processing of internal functions (#3022)
Internal functions, when inherited, may (on PHP 8.1 with opcache at least) have pointers which are into heap memory which is local to a given process (e.g. attributes), not present on the target process. Thus accessing the attributes of a duplicated internal functions will crash there.
And on top of that, we anyway don't want to process these twice.
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>1 parent 0496cc2 commit b61f192
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
| 819 | + | |
| 820 | + | |
819 | 821 | | |
| 822 | + | |
820 | 823 | | |
821 | | - | |
822 | 824 | | |
| 825 | + | |
823 | 826 | | |
824 | 827 | | |
825 | 828 | | |
| |||
840 | 843 | | |
841 | 844 | | |
842 | 845 | | |
| 846 | + | |
| 847 | + | |
843 | 848 | | |
| 849 | + | |
844 | 850 | | |
845 | | - | |
846 | 851 | | |
| 852 | + | |
847 | 853 | | |
848 | 854 | | |
849 | 855 | | |
| |||
0 commit comments