[
https://issues.apache.org/jira/browse/THRIFT-4244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18112201#comment-18112201
]
Jens Geyer commented on THRIFT-4244:
------------------------------------
{{\\}} works for me
> PHP compiler errors out if escape character is part in string constant
> ----------------------------------------------------------------------
>
> Key: THRIFT-4244
> URL: https://issues.apache.org/jira/browse/THRIFT-4244
> Project: Thrift
> Issue Type: Bug
> Components: PHP - Compiler
> Affects Versions: 0.10.0
> Environment: official thrift docker image
> https://hub.docker.com/_/thrift/
> Reporter: Pascal von Rickenbach
> Assignee: Volodymyr Panivko
> Priority: Minor
> Time Spent: 40m
> Remaining Estimate: 0h
>
> The compiler throws an error when defining a string constant that contains an
> escape character. E.g a backslash like in this definition:
> const string ISO8601U = "Y-m-d\TH:i:s.uP";
> According to the Thrift IDL only double quotes are forbidden in the string.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)