Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22747 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16662 invoked by uid 1010); 14 Apr 2006 03:49:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16647 invoked from network); 14 Apr 2006 03:49:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Apr 2006 03:49:32 -0000 X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([67.139.134.202:3530] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D1/3C-19715-BCB1F344 for ; Thu, 13 Apr 2006 23:49:31 -0400 Received: (qmail 32384 invoked by uid 98); 14 Apr 2006 03:49:33 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-1.25 ( Clear:RC:1(127.0.0.1):. Processed in 0.06752 secs); 14 Apr 2006 03:49:33 -0000 X-Qmail-Scanner-Mail-From: ceo@l-i-e.com via o2.hostbaby.com X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.06752 secs) Received: from unknown (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 14 Apr 2006 03:49:33 -0000 Received: from 67.108.68.36 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Thu, 13 Apr 2006 22:49:33 -0500 (CDT) Message-ID: <47939.67.108.68.36.1144986573.squirrel@www.l-i-e.com> Date: Thu, 13 Apr 2006 22:49:33 -0500 (CDT) To: internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: CLI php -r requires final ; From: ceo@l-i-e.com ("Richard Lynch") This is such minutiae, but I needed a break... The docs say final ?> is not needed, and final ; is not needed: http://php.net/manual/en/language.basic-syntax.instruction-separation.php It does not address what happens if BOTH are missing, however. It would seem that with both missing... -bash-2.05b$ cat temp.php It's not like I'm relying on the optional ?> at the end of a file feature. It's a different animal. php -r is "adding in" both for me, in my mind, at least. I just sort of expected that the -r getting rid of didn't "count" against the ?> OR ; being optional, and I figured the ; was still optional. Am I being too petty? :-^ I'm not filing this as bug report without some feedback, that's for sure! Actually, I'm just interested to see how others think about this. I don't even like leaving off ?> nor ; in PHP source code. I think it's just a sign of sloppy coding -- even if it does mean that I can't get that perfectly-align HTML coming out. -- Like Music? http://l-i-e.com/artists.htm