From 6bd1cef0b300029e371515d2e16bb4ba42bb6ee0 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 5 Apr 2005 12:20:44 +0000 Subject: [PATCH] Heredoc in class members (bug #32554) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@183655 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types.xml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/language/types.xml b/language/types.xml index 6e72546651..e46f86719a 100644 --- a/language/types.xml +++ b/language/types.xml @@ -1,5 +1,5 @@ - + Types @@ -822,6 +822,24 @@ echo 'Variables do not $expand $either'; identifier is not found then a parse error will result with the line number being at the end of the script. + + It is not allowed to use heredoc syntax in initializing class members. + Use other string syntaxes instead. + + Invalid example + + +]]> + + + @@ -829,7 +847,7 @@ echo 'Variables do not $expand $either'; the double-quotes. This means that you do not need to escape quotes in your here docs, but you can still use the escape codes listed above. Variables are expanded, but the same care must be taken - when expressing complex variables inside a here doc as with + when expressing complex variables inside a heredoc as with strings. Heredoc string quoting example