Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49014 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30204 invoked from network); 8 Jul 2010 20:12:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2010 20:12:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=scott@macvicar.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=scott@macvicar.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain macvicar.net from 97.107.131.220 cause and error) X-PHP-List-Original-Sender: scott@macvicar.net X-Host-Fingerprint: 97.107.131.220 whisky.macvicar.net Linux 2.6 Received: from [97.107.131.220] ([97.107.131.220:55882] helo=whisky.macvicar.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/24-09263-911363C4 for ; Thu, 08 Jul 2010 16:12:10 -0400 Received: from [10.29.127.246] (unknown [166.205.136.112]) by whisky.macvicar.net (Postfix) with ESMTP id 7102D46A51; Thu, 8 Jul 2010 16:12:06 -0400 (EDT) References: <1430e929de312057f8a7788560e7c92f.squirrel@www.l-i-e.com> <4C34AA60.7070707@ingres.com> <41062215-1091-47AA-B431-B33F1823DE2A@macvicar.net> <22.A3.09263.A2C263C4@pb1.pair.com> In-Reply-To: <22.A3.09263.A2C263C4@pb1.pair.com> Mime-Version: 1.0 (iPhone Mail 8A293) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-ID: <19DF4FB6-92CA-4A4C-8703-7042FE5582C5@macvicar.net> Cc: "internals@lists.php.net" X-Mailer: iPhone Mail (8A293) Date: Thu, 8 Jul 2010 13:12:49 -0700 To: jvlad Subject: Re: [PHP-DEV] Single-line comment problem From: scott@macvicar.net (Scott MacVicar) Yeah because /* */ has a clear end where // and # doesn't. - S On 8 Jul 2010, at 12:50, "jvlad" wrote: >> Parsing ends with ?> regardless if its a comment or not but its not=20 >> context sensitive. It can't understand that its within a string. >>=20 >> - S >=20 > Not exactly, it's only // comment style does not comment the tag while /* *= /=20 > does. > The following script outputs its 'afafa': >=20 > if(true){ > /* echo ''; */ > echo 'afafa'; > } > ?> >=20 > -j=20 >=20 >=20 >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20