php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #22664 %> in comment // with asp_tags=on
Submitted: 2003-03-12 14:03 UTC Modified: 2003-12-10 08:00 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: tgsupport at free dot fr Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.0 OS: Windows
Private report: No CVE-ID: None
 [2003-03-12 14:03 UTC] 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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-10 21:32 UTC] hholzgra@php.net
thats why you should always put your html attributes in quotes ;)


 [2003-12-09 14:43 UTC] derek@php.net
?> 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); ?>
 [2003-12-10 08:00 UTC] vrana@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 23:00:03 2025 UTC