On Mon, Mar 28, 2011 at 4:11 PM, Michael Rasmussen
<mir@datanom.net> wrote:
On Mon, 28 Mar 2011 16:17:25 -0400
> But, since you're raising the point, I'm curious about that <<< _EOF
> syntax. Is it stock php ? I use it in bash but didn't know you could use
> it in php.
>
Was introduced with PHP 4 ->
http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
> 26 private $vevent = null;
> 27 private $new_vevent = <<<_EOF
> 28 BEGIN:VCALENDAR\r
> 29 VERSION:2.0\r
>
Well, there must be something wrong with your installation because my
code does not contain any \r ?? So these \r can only have enter the
code after unpacking on your side.
Try replacing any MS Window \r\n or any Mac \r with the proper Unix line
delimiter \n
I can confirm seeing the '\r' in the heredoc sections of that file. I've not tested nor installed it, just confirming what Julien is seeing.
Unpacked using plain 'tar' on Ubuntu 10.10. PHP has never touched nor processed the file.
Be security conscious -- National defense is at stake.
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/vS/GC1XnFSS/signature.asc
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/42a65fb4