Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84002 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60313 invoked from network); 27 Feb 2015 13:45:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2015 13:45:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 209.85.212.179 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:38989] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/FF-32582-9F470F45 for ; Fri, 27 Feb 2015 08:45:34 -0500 Received: by widex7 with SMTP id ex7so310216wid.4 for ; Fri, 27 Feb 2015 05:45:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=bSFWHzxnYFclUZ5fIsP/KgENstq6mhxXlb4MM80xCM8=; b=doje5RRnxUQOdnU5RSrckxws2AdCBpk38eKHNnTHpjKmJ8wewGyNBP/KTxNi2PO3M/ STeLFjn9cRUCgUwtJM9JUMjb0MFe+l1K53Fnl3S0LeCEtglhtioy3fI1Qfzym2Cw75Ft 7MKcjdYpJUZmbADDGLr1N9ggjWwHEYQwwBgC+wblL1cZ3/NULkaAQIxNs7zM0HKon9Kd 1aRxoSFbHlY1aIhkhWNg5nr1FKbqY40eDh/7Lwyl0GvLheRm98fM0eGMBBB46cgBGB1T BkYg0GKvtmiUOzCkoRyhpO4ovKMXLHA53FxMl/aLd15IGsDZACXkKTRPAiW4o1K6Bqjo pU0A== X-Gm-Message-State: ALoCoQn27m3D5UcagyK1Cke51fHiI2zM+tXW2x2Rh4LwrKiHrqbQRa6aGRFaR8Oj/XTBsFKRedDD MIME-Version: 1.0 X-Received: by 10.194.179.194 with SMTP id di2mr27833749wjc.4.1425044723681; Fri, 27 Feb 2015 05:45:23 -0800 (PST) Received: by 10.194.192.202 with HTTP; Fri, 27 Feb 2015 05:45:23 -0800 (PST) X-Originating-IP: [87.139.115.236] In-Reply-To: References: Date: Fri, 27 Feb 2015 14:45:23 +0100 Message-ID: To: Damien Tournoud Cc: Zeev Suraski , PHP internals Content-Type: multipart/alternative; boundary=089e01419d1c8b662105101214b4 Subject: Re: [PHP-DEV] Coercive STH - some real world tests and updated RFC From: kontakt@beberlei.de (Benjamin Eberlei) --089e01419d1c8b662105101214b4 Content-Type: text/plain; charset=UTF-8 On Fri, Feb 27, 2015 at 2:37 PM, Damien Tournoud wrote: > Hi Zeev, > > On Fri, Feb 27, 2015 at 12:57 AM, Zeev Suraski wrote: > > > Drupal homepage: One new E_DEPRECATED warning, which seems to catch a > > real bug, or at least faulty looking code: > > $path = trim($path, '/'); // raises E_DEPRECATED, as $path is boolean > > false. > > return $path; > > > > Drupal admin interface (across the all pages): One new E_DEPRECATED > > warning, which again seems to catch a real bug - stripslsahes() operating > > on a boolean. > > > > All those are due to a bug in substr(), that we see now only thanks to > proper type identification. There is no reason for substr() to ever return > a boolean. It really needs to be fix to always return a string. > Yes, weird behavior that substr("", 2, 2); for example returns false. But changing that is just another evil BC break. > > Damien > --089e01419d1c8b662105101214b4--