Commit Graph

3 Commits

Author SHA1 Message Date
Olly Betts 2c4ff2f4d6 [php] Fix warning from string_constants testcase 2024-09-22 08:12:45 +12:00
Olly Betts 4299e893da Fix parsing of octal string escapes
We now stop when the next character is digit 8 or 9, and stop after 3
octal digits even if the next character is an octal digit.
2024-08-15 14:38:52 +12:00
Olly Betts 8d1ac40dc6 Fix wrapping of string with control characters
Fix wrapping of string constants containing bytes 0-8, 11, 12 or 14-31
followed by a digit '0' to '7'.  We were emitting these bytes as a one
or two character octal escape sequence which when interpreted would
include the following character.
2024-08-01 14:36:43 +12:00