Commit 0eaae1f
committed
test(pdo): cover non-ASCII sequence names and injection-payload regression for lastInsertId
Add coverage to pdo_278_lastinsertid_seq.phpt for the parameterized
sequence-name lookup: a sequence whose name contains non-ASCII (Unicode)
characters now resolves correctly via lastInsertId(), and an injection-style
name is treated as a literal value that matches no sequence (returns an empty
string) rather than altering the query.1 parent 1d6279b commit 0eaae1f
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
59 | 74 | | |
60 | 75 | | |
61 | 76 | | |
62 | 77 | | |
63 | 78 | | |
64 | 79 | | |
65 | 80 | | |
| 81 | + | |
66 | 82 | | |
67 | 83 | | |
68 | 84 | | |
| |||
0 commit comments