Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84000 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57781 invoked from network); 27 Feb 2015 13:37:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2015 13:37:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=damz@damz.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=damz@damz.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain damz.org designates 209.85.212.175 as permitted sender) X-PHP-List-Original-Sender: damz@damz.org X-Host-Fingerprint: 209.85.212.175 mail-wi0-f175.google.com Received: from [209.85.212.175] ([209.85.212.175:46425] helo=mail-wi0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/7F-32582-33370F45 for ; Fri, 27 Feb 2015 08:37:55 -0500 Received: by widem10 with SMTP id em10so261001wid.5 for ; Fri, 27 Feb 2015 05:37:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=damz.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zuNZZsKnASgc49XZhX6adg8QrUF0rCb+tUnkdSsb/eg=; b=GaZuNdVMUTebMoBaQTMGKa9aMr8bp/xzs/f+pTGWnKLR6jV0bdrNZmgWRBlGupM4id SLYMdPyAsqDIkCnQz7Dk+uD442I9MXRGQFhBr94Hi5Pf2R03c8HVQifBOZxS6GuqgJhP mDu38LMyf/hdQFZyPM/T3GKykqfyq78sW8QXY= 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=zuNZZsKnASgc49XZhX6adg8QrUF0rCb+tUnkdSsb/eg=; b=PFSP88H+mmz8SExIN2HTQ2H8Zd4HZQSN8V+0e39FaG41Re//iUWSV71qD91fSBwHO/ ZcUKlHNrnQPuTh1A3kBW/xFZ+J1Fn9PPtB4LmDHZ14l761sSnKBveEKekJmgPVdk0Gf7 2iXHWTVfsKJhr2urpMSCmS1AlBI7k7/Xkkkrwz23oGRw85dGBlrFmW1vAx+zeTD9hUUn PRr+IqZ7XSSEbBLT2UkZu60E55M1tYU+aUva4uUwoj7r3/jQfJqdVmKEiHAb8aIfKZhM 4ubp5AVpk9fvoNhq5yeVTkbZxe/FNdBSZ8pbq7aj2wrr/2UgTuSJhzoTWlnJCz/RHbQF bjjw== X-Gm-Message-State: ALoCoQlpi9lVE3aRDILLi/N6q2Oni1V8SLQlPoh5MI8uiYNxfoFEP2FntA/j5xIQqxQgK57iHZ4M MIME-Version: 1.0 X-Received: by 10.194.158.234 with SMTP id wx10mr28271529wjb.23.1425044271070; Fri, 27 Feb 2015 05:37:51 -0800 (PST) Received: by 10.28.181.131 with HTTP; Fri, 27 Feb 2015 05:37:50 -0800 (PST) X-Originating-IP: [78.126.234.166] In-Reply-To: References: Date: Fri, 27 Feb 2015 14:37:50 +0100 Message-ID: To: Zeev Suraski Cc: PHP internals Content-Type: multipart/alternative; boundary=089e013c625c911866051011f95f Subject: Re: [PHP-DEV] Coercive STH - some real world tests and updated RFC From: damz@damz.org (Damien Tournoud) --089e013c625c911866051011f95f Content-Type: text/plain; charset=UTF-8 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. Damien --089e013c625c911866051011f95f--