#22664 [Opn]: %> in comment // with asp_tags=on

From: Date: Tue, 09 Dec 2003 19:43:07 +0000
Subject: #22664 [Opn]: %> in comment // with asp_tags=on
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969357287@lists.php.net to get a copy of this message
ID: 22664 Updated by: derek@php.net Reported By: tgsupport at free dot fr Status: Open Bug Type: Documentation problem Operating System: Windows PHP Version: 4.3.0 Assigned To: hholzgra New Comment: ?> in comments will also cause problems. eg: <?php // this will cause a problem ?> echo 'blarb',chr(10); ?> output will not be "blarb\n" as expected, but rather: echo 'blarb',chr(10); ?> Previous Comments: ------------------------------------------------------------------------ [2003-09-10 21:32:02] hholzgra@php.net thats why you should always put your html attributes in quotes ;) ------------------------------------------------------------------------ [2003-03-12 14:03:43] tgsupport at free dot fr Update doc http://www.php.net/manual/en/language.basic-syntax.comments.php for say when asp_tags is on <? // echo "<td width=74%>mycell</td> ?> display "mycell ?> or global script can produce Parse error: parse error, unexpected $end in xxxx.php on line yyyy (the last line) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22664&edit=1

« previous php.doc (#969357287) next »