Repository navigation
Commit c19a42d
authored
Add optional native parser routing (#385)
## Summary
- add fallback `WP_MySQL_Native_*` classes that extend the PHP polyfills
- route public MySQL lexer/parser classes through native classes when
the extension preloads them
- add the minimal PHP bridge that exports grammar data for native parser
setup
## Testing
- `php -l` on changed PHP files
- parser smoke: lex and parse `SELECT 1` through `WP_MySQL_Lexer` and
`WP_MySQL_Parser`
This PR is intentionally stacked after the polyfill extraction PR so the
native routing diff is small and reviewable.1 parent 97c3ebd commit c19a42d
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original 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 | + | |
| 22 | + | |
0 commit comments