Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33406 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38647 invoked by uid 1010); 24 Nov 2007 03:15:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38632 invoked from network); 24 Nov 2007 03:15:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2007 03:15:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=dagdamor@simps.ru; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dagdamor@simps.ru; sender-id=pass Received-SPF: pass (pb1.pair.com: domain simps.ru designates 87.245.154.216 as permitted sender) X-PHP-List-Original-Sender: dagdamor@simps.ru X-Host-Fingerprint: 87.245.154.216 mail.hostimsya.ru Linux 2.4/2.6 Received: from [87.245.154.216] ([87.245.154.216:44860] helo=mail.hostimsya.ru) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/25-30382-16797474 for ; Fri, 23 Nov 2007 22:15:46 -0500 Received: from 87.103.192-198.xdsl.ab.ru ([87.103.192.198]) by mail.hostimsya.ru with esmtpa (Exim 4.50) id 1IvlUY-0001vn-4Q for internals@lists.php.net; Sat, 24 Nov 2007 06:15:42 +0300 Date: Sat, 24 Nov 2007 09:15:35 +0600 X-Mailer: The Bat! (v1.61) Reply-To: Dagdamor X-Priority: 3 (Normal) Message-ID: <113985055.20071124091535@simps.ru> To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: 4.1 (++++) X-Spam-Report: Spam detection software, running on the system "hostimsya.ru", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello. I am reporting about the changes that were made in the string parser in 5.2.5. From this version, sequences "\f" and "\v" are special and are parsed as FF and VT symbols. IMHO that doesn't make sense because the behavior was different in the older versions of PHP, and will affect many existing scripts. Those two symbols are also very rarely used and I don't think this feature will be very useful for the developers. [...] Content analysis details: (4.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.8 HELO_DYNAMIC_SPLIT_IP Relay HELO'd using suspicious hostname (Split IP) 3.5 HELO_DYNAMIC_IPADDR2 Relay HELO'd using suspicious hostname (IP addr 2) -0.4 BAYES_05 BODY: Bayesian spam probability is 1 to 5% [score: 0.0481] 0.2 AWL AWL: From: address is in the auto white-list Subject: 5.2.5 - changes in the string parser From: dagdamor@simps.ru (Dagdamor) Hello. I am reporting about the changes that were made in the string parser in 5.2.5. From this version, sequences "\f" and "\v" are special and are parsed as FF and VT symbols. IMHO that doesn't make sense because the behavior was different in the older versions of PHP, and will affect many existing scripts. Those two symbols are also very rarely used and I don't think this feature will be very useful for the developers. I checked the documentation. It says that only "\n", "\r" and "\t" sequences (I count only alphanumeric ones) are special, there is nothing about \f or \v. The documentation clearly says that all other sequences are not special and the backslash becomes part of the string. It also says: "usually, there is no need to escape the backslash itself", in other words, escaping the backslash only when necessary is allowed and encouraged. I ask for rolling that change back because it's a serious BC break. Regards, Serge