|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-04 03:59 UTC] sander@php.net
[2002-09-15 18:02 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Jun 09 21:00:01 2026 UTC |
The php -w option also strips comments outside of the PHP tags. Thus, a program like: #!/usr/bin/php -q <?php // Bye-Bye comment print "hello world\n"; ?> Would end up like: <?php print "hello world\n"; ?> But, this is incorrect. It should be: #!/usr/bin/php -q <?php print "hello world\n"; ?> It appears this only happens if the first line in the file is formatted like a PHP comment. Thus, # This is not a PHP comment!!!! <?php print "hello world\n"; ?> Also strips the "# This is not a PHP comment!!!!". Regards, Patrick O'Lone INN/TownNews.com polone@townnews.com