Repository navigation
Commit fc3a703
authored
Remove INET_ATON WordPress dependency (WordPress#485)
## Summary
Removes the driver's dependency on WordPress's `absint()` helper in
`INET_ATON()`. The replacement uses native PHP logic, allowing the
Composer package to run in standalone PHP applications.
A regression test covers the function through the public PDO-compatible
API. The package test suite and coding-standards check pass.
## Why
The standalone Composer package autoloads the driver outside WordPress.
Calling `INET_ATON()` previously failed because `absint()` is not
available in standalone PHP applications.1 parent 189322a commit fc3a703
2 files changed
Lines changed: 7 additions & 1 deletion
File tree
- packages/mysql-on-sqlite
- src/sqlite
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
836 | | - | |
| 836 | + | |
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
408 | 414 | | |
409 | 415 | | |
410 | 416 | | |
| |||
0 commit comments