#18892 [Fbk->Opn]: heredoc crashes php

From: Date: Wed, 14 Aug 2002 21:36:43 +0000
Subject: #18892 [Fbk->Opn]: heredoc crashes php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16834@lists.php.net to get a copy of this message
ID: 18892 User updated by: barrett.harber@verizon.net Reported By: barrett.harber@verizon.net -Status: Feedback +Status: Open Bug Type: Strings related Operating System: Windows XP PHP Version: 4.2.2 New Comment: maybe its just an xp thing... look at this file the source is below http://barrett.servebeer.com/test/heredoc_test.php /*-----------source------------// <pre> <a href="http://barrett.servebeer.com/test/heredoc_test.php?template=1">template</a> <a href="http://barrett.servebeer.com/test/heredoc_test.php?template=0">no template</a> <?php if ($template = "1") { echo <<<END <a name="template"></a> <P></P> <UL> <LI><A HREF="http://www.blank.com/" TARGET="_blank">1</A> - blah</LI> <LI><A HREF="http://www.blank.com/" TARGET="_blank">2</A> - blah</LI> <LI><A HREF="http://www.blank.com/" TARGET="_blank">3</A> - blah</LI> </UL> END; } if ($template = "0") { echo "click template";}; ?> </pre> //-----------source------------*/ Previous Comments: ------------------------------------------------------------------------ [2002-08-13 19:29:46] edink@php.net Just tested all of your examples on a Windows 2000 machine, and on command line, and cannot reproduce your problem. What do you mean by "crash" exactly? Do you get any error messages? ------------------------------------------------------------------------ [2002-08-13 18:39:56] barrett.harber@verizon.net I am running Apache 1.3.24. This works: <? echo <<<END abcdefg END; ?> This does not work <? echo <<<END 123456 END; ?> <? echo <<<END abcdefg END; ?> There are no white spaces after <<<END btw. Please resolve this i sort of need to use it. It worked on my linux box just fine with a slightly older version of php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18892&edit=1

« previous php.bugs (#16834) next »