note 90062 added to language.basic-syntax.phpmode

From: Date: Sat, 04 Apr 2009 03:26:03 +0000
Subject: note 90062 added to language.basic-syntax.phpmode
Groups: php.notes 
Request: Send a blank email to php-notes+get-152804@lists.php.net to get a copy of this message
WARNING: there is a potentially *nasty* gotcha here. Consider the following: <html><body><pre> First line <?/* Comment, inside PHP */?> Second line </pre></body></html> If the comment is immediately followed by newline (and most editors will trim spaces at the ends of lines anyway), then you will NOT get what you expect. Expect: First line Second Line Actually get: First line Second line Now, if you are relying on that newline, for example to terminate a line of Javascript, where the trailing semicolon is optional, watch out! ---- Server IP: 87.124.35.190 Probable Submitter: 87.194.171.29 ---- Manual Page -- http://www.php.net/manual/en/language.basic-syntax.phpmode.php Edit -- https://master.php.net/note/edit/90062 Del: integrated -- https://master.php.net/note/delete/90062/integrated Del: useless -- https://master.php.net/note/delete/90062/useless Del: bad code -- https://master.php.net/note/delete/90062/bad+code Del: spam -- https://master.php.net/note/delete/90062/spam Del: non-english -- https://master.php.net/note/delete/90062/non-english Del: in docs -- https://master.php.net/note/delete/90062/in+docs Del: other reasons-- https://master.php.net/note/delete/90062 Reject -- https://master.php.net/note/reject/90062 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#152804) next »