Commit dd50804
committed
Avoid repeated processing of internal functions
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 8d0cf27 commit dd50804
1 file changed
Lines changed: 8 additions & 2 deletions
| 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