Commit a1cbd3c
committed
Zend/JIT: fix undefined function suggestion under opcache JIT
The JIT compiler had its own hand-written stub for raising "Call to
undefined function" errors that bypassed the new Levenshtein
suggestion logic, since it duplicated the error message instead of
reusing the interpreter's helper. Extract the shared logic into
zend_undefined_function_error() and call it from both the VM helper
and the JIT stub.1 parent 11e41df commit a1cbd3c
5 files changed
Lines changed: 20 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2607 | 2607 | | |
2608 | 2608 | | |
2609 | 2609 | | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
| 2622 | + | |
2610 | 2623 | | |
2611 | 2624 | | |
2612 | 2625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
| 516 | + | |
516 | 517 | | |
517 | 518 | | |
518 | 519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1000 | 1000 | | |
1001 | 1001 | | |
1002 | 1002 | | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
| 1003 | + | |
1011 | 1004 | | |
1012 | 1005 | | |
1013 | 1006 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2168 | 2168 | | |
2169 | 2169 | | |
2170 | 2170 | | |
2171 | | - | |
| 2171 | + | |
2172 | 2172 | | |
2173 | 2173 | | |
2174 | | - | |
2175 | | - | |
2176 | | - | |
| 2174 | + | |
2177 | 2175 | | |
2178 | | - | |
2179 | 2176 | | |
2180 | | - | |
2181 | | - | |
2182 | | - | |
2183 | | - | |
2184 | | - | |
2185 | | - | |
| 2177 | + | |
2186 | 2178 | | |
2187 | 2179 | | |
2188 | 2180 | | |
| |||
0 commit comments