Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25819 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17225 invoked by uid 1010); 25 Sep 2006 14:15:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 17210 invoked from network); 25 Sep 2006 14:15:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Sep 2006 14:15:21 -0000 Authentication-Results: pb1.pair.com header.from=php_lists@realplain.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php_lists@realplain.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain realplain.com from 69.179.208.43 cause and error) X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 69.179.208.43 msa3-mx.centurytel.net Linux 2.4/2.6 Received: from [69.179.208.43] ([69.179.208.43:35252] helo=msa3-mx.centurytel.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/F2-24622-874E7154 for ; Mon, 25 Sep 2006 10:15:20 -0400 Received: from pc1 (d34-22.rt-bras.wnvl.centurytel.net [69.179.161.22]) by msa3-mx.centurytel.net (8.13.6/8.13.6) with SMTP id k8PEFFOM000716; Mon, 25 Sep 2006 09:15:16 -0500 Message-ID: <015101c6e0ad$06c537b0$0201a8c0@pc1> To: , References: <012c01c6e0a0$f7cf1250$0201a8c0@pc1> <10845a340609250625y252b6c32wdc5c9c3f63e369df@mail.gmail.com> Date: Mon, 25 Sep 2006 09:15:07 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Subject: Re: [PHP-DEV] [PATCH] Error message cleanup From: php_lists@realplain.com ("Matt W") Hi Richard, ----- Original Message ----- From: "Richard Quadling" Sent: Monday, September 25, 2006 > On 25/09/06, Matt W wrote: > > [...] > > > > I don't know if my regex search found all occurrences, but I fixed up the > > files I found. The only changes were removing a trailing period (or a space > > in a few places), and a couple typos I noticed in the ones I changed -- > > "interger", "can not" -> "cannot", I think that's about all. Also updated > > the necessary test files I found, to reflect the changes. I think (hope) > > everything's OK, but haven't tested it! > > > > [...] > > What's your regex? What files do you examine. > > I've found some error messages ending in ! and some ending with \n. Using my editor's (NoteTab) Search in Files tool, I searched all files, but then just *.c since only they had what I was looking for (AFAIK). The regex was php_error_docref\(.+\".+[. ]\" which does match incorrectly in some places, but I just skip ahead. :-) I looked at each one, so as to not do something wrong trying to do a blind "Replace All." (OT: I just now realized that I don't think I need to escape the regex's double quotes...? It works, but I must be too used to writing them only in quoted strings (PHP...). ;-)) I know some of the messages end with "!" (some "?" also), but I figure they should stay. The only place I found a \n (\ and n in the file) is in 6's main/streams/filter.c. That's kinda weird, though it would just appear as a space in the browser with HTML (e.g. should prob be changed too). There was another typo I wasn't sure about in ext/fbsql/php_fbsql.c: "FrontBase link is not connected, ty to reconnect" -- is it supposed to be "trying" or what? Matt