[ 
https://issues.apache.org/jira/browse/THRIFT-4244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18112201#comment-18112201
 ] 

Jens Geyer edited comment on THRIFT-4244 at 9/11/26 7:33 AM:
-------------------------------------------------------------

{code:java}
\\ {code}

works for me

{quote} According to the Thrift IDL only double quotes are forbidden in the 
string. {quote} 

Explanation: The syntax uses in fact standard escapes here. MAybe this is 
simply not clearly enough documented.


was (Author: jensg):
{code:java}
\\ {code}

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
>             Fix For: 0.25.0
>
>          Time Spent: 2h 10m
>  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)

Reply via email to