You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows 7, PHP 7.1.0, PsySH v0.8.1
Since \ character is not escaped properly, it creates ambiguity whether "\n" is a new line character or a backslash followed by a n.
>>> "\n"
=> "\n"
>>> "\\n"
=> "\n"
Other strings containing backslash also exhibit weird behavior:
For the \\n issue, it should be using color to disambiguate. Does it show the \ and \n in different colors for you?
Some backslash issues are fixed with #359, but the ones with \< (and all sorts of variants around it) persist because that's how symphony console escapes their color tags, and IIRC they have some logic in there to prevent double escaping… I'll keep this issue around and try to make some more progress on a fix for this.
Windows 7, PHP 7.1.0, PsySH v0.8.1
Since
\
character is not escaped properly, it creates ambiguity whether"\n"
is a new line character or a backslash followed by an
.Other strings containing backslash also exhibit weird behavior:
The text was updated successfully, but these errors were encountered: