Repository navigation
Commit 463f26b
committed
Reject unknown escapes in REGEXP patterns on PHP 7
PHP 7.3 and 7.4 read unknown escapes as literal text. '\u0041'
silently matched "u0041", and '\p{Foo}' matched nothing instead of
failing. PHP 7.2 did the same for escapes like '\y'. PHP 8 reports
them as errors, as the known differences say.
The "X" modifier makes them errors on PHP 7, too, and does nothing on
PHP 8. MySQL reads unknown escapes like '\y' as literals, so document
that difference as well.1 parent 7ed6ba1 commit 463f26b
2 files changed
Lines changed: 11 additions & 1 deletion
File tree
- packages/mysql-on-sqlite
- src/sqlite
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1205 | 1205 | | |
1206 | 1206 | | |
1207 | 1207 | | |
| 1208 | + | |
1208 | 1209 | | |
1209 | 1210 | | |
1210 | 1211 | | |
| |||
1276 | 1277 | | |
1277 | 1278 | | |
1278 | 1279 | | |
1279 | | - | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
1280 | 1285 | | |
1281 | 1286 | | |
1282 | 1287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
391 | 396 | | |
392 | 397 | | |
393 | 398 | | |
| |||
0 commit comments