On Mon, Mar 28, 2011 at 4:11 PM, Michael Rasmussen <[email protected]> wrote:
> On Mon, 28 Mar 2011 16:17:25 -0400 > Julien Vehent <[email protected]> wrote: > > > > > 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. > -- > Hilsen/Regards > Michael Rasmussen > > Get my public GnuPG keys: > michael <at> rasmussen <dot> cc > http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E > mir <at> datanom <dot> net > http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C > mir <at> miras <dot> org > http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917 > -------------------------------------------------------------- > 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 > >
_______________________________________________ List info: http://lists.roundcube.net/dev/ BT/8f4f07cd
