Repository navigation
Commit 6fb5349
Build ClassReflection's member keys and messages binary safe
The native ClassReflection built the scope-qualified member cache key
("%s-%s"), the display name with template types and the missing enum
case message with zend_strpprintf(), whose %s stops at a NUL byte. A
member name with a NUL byte in a class scope then shared the cache key
of its prefix (getMethod("area\0x") answered area()), and the message
lost the rest of the name. Build them length-aware, like the twin's
sprintf() and concatenation.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Fdg8n3eEi4ZoXa4dA2k4A1 parent c1a8fd5 commit 6fb5349
2 files changed
Lines changed: 20 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1142 | 1142 | | |
1143 | 1143 | | |
1144 | 1144 | | |
1145 | | - | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1146 | 1152 | | |
1147 | 1153 | | |
1148 | 1154 | | |
| |||
1604 | 1610 | | |
1605 | 1611 | | |
1606 | 1612 | | |
1607 | | - | |
| 1613 | + | |
| 1614 | + | |
1608 | 1615 | | |
1609 | 1616 | | |
1610 | 1617 | | |
| |||
2191 | 2198 | | |
2192 | 2199 | | |
2193 | 2200 | | |
2194 | | - | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
2195 | 2209 | | |
2196 | 2210 | | |
2197 | 2211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
581 | | - | |
| 580 | + | |
| 581 | + | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
| 584 | + | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| |||
0 commit comments