Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89871 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95490 invoked from network); 22 Dec 2015 16:54:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Dec 2015 16:54:50 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.213.175 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.213.175 mail-ig0-f175.google.com Received: from [209.85.213.175] ([209.85.213.175:34087] helo=mail-ig0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/7E-51216-A5089765 for ; Tue, 22 Dec 2015 11:54:50 -0500 Received: by mail-ig0-f175.google.com with SMTP id m11so53001977igk.1 for ; Tue, 22 Dec 2015 08:54:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zend-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4n2NIUJSm82JeW5VQj4s2094GuZZYaQ5jf3VU6VxINs=; b=G4lrEn+TX/NSZWbTtUflmvtY8SAHDjoqk9vY6QVpPlpHWE7JCgjRWors5wzRUV9pfc U0H6FSYgupO0iEvovMxPwHHi1dDCt/nH3Alc+GCI4/1BeOnePyTxILTWCe4oC+eij0nZ 2qRb8ypaMfcklVAq52jLtY2Sl7F/TF3TjzRfgEY23829iUKbWAWbR9Q2MpfcIeh7gx2C laXc2w93v4CzkprrKqUDq1gsxY8IJlIdLFNvXFX7s9qJe7xR8o3syny+fy5kgVX2Rbag loJm4XS19EO6W9B6MXYPCYGnu6N0yrxutKNPcKk8l0H3nZsBaKunPXTHDz8QKk3lx5As Xkfg== 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=4n2NIUJSm82JeW5VQj4s2094GuZZYaQ5jf3VU6VxINs=; b=ZIqD2N5GIOeleIODy4xJHDBTl0h4eV18Xz/3fXXXG11ahVLWMcpZgvnea/WUPjwvj8 Iwi/DfnlzviDa7/LvpH504iPpThruFGTu0ef24iDWCUVWOzAiRnzK4X/457wiizDB92o fyRZpgvul+S+e/zGk7oJJNjP6B1Bn5DnsjLTdj04uTqamw5JPTNAyvxRMXUtDxzoQ0cT 2JI4sUEde9uZM8Q5WGS1PVpVzvdxyuXIVhMd89k55bsRmysH47fOxk+wekHRx35gNLPJ D6MYJUCPIxEeBcFQCV8Kcn98L7Xj7d3tbDSuR3VQxAv59hbkrNVi4zYU6endfK9RLp7j pMqg== X-Gm-Message-State: ALoCoQkiaYAmJajyqrebDZ3BTfVizs8roDbhrUEyFanZkNup65h1wQrDC2FMTYs+oaFp77V9WwjdSnUeGkw03zXGeBkt5KeqZRNse3pI1F9EMBX10JQqX+lB/beGMHjZpgQbTXgFzgQpLYPG9H/1CXmk14CzA4PzEqqlw8bZ6JtTCw1+OpJI6fjeaScscolidqzFNRXts7NnK8b0cMdW3V7QNr1+htxZuw== MIME-Version: 1.0 X-Received: by 10.50.141.131 with SMTP id ro3mr25376812igb.74.1450803285963; Tue, 22 Dec 2015 08:54:45 -0800 (PST) Received: by 10.50.210.10 with HTTP; Tue, 22 Dec 2015 08:54:45 -0800 (PST) In-Reply-To: References: Date: Tue, 22 Dec 2015 19:54:45 +0300 Message-ID: To: Nikita Popov , Bob Weinand , Xinchen Hui , Anatol Belski , Julien Pauli , Rasmus Lerdorf Cc: PHP Internals Content-Type: multipart/alternative; boundary=089e0149d05e7fd70605277f7640 Subject: Re: Removing weird error message From: dmitry@zend.com (Dmitry Stogov) --089e0149d05e7fd70605277f7640 Content-Type: text/plain; charset=UTF-8 It looks like the problem is a bit more complex. The messed test Zend/tests/bug70083.phpt shows it. My patch removes the error message, and it starts to work without errors and warnings (I suppose we should have a warning) Please ignore the patch before we found a consistent solution. Thanks. Dmitry. On Tue, Dec 22, 2015 at 7:16 PM, Dmitry Stogov wrote: > Hi, > > Please take a look into the patch (for master) > > https://gist.github.com/dstogov/44a3f2df71de31986d4c > > It removes weird error message and replaces it with silent handling after > warning message. This makes engine behavior more consistent. Engine uses > this "silent handling after warning" for many other different errors. e.g. > - Attempt to modify property of non-object > - Illegal offset type > - Cannot add element to the array as the next element is already occupied > - Cannot use a scalar value as an array > - This object doesn't support property references > > This error message was introduced by Bob by > f57cb13c566613eec0e1c2f6d96d18565436a9b7 commit. > > Do anybody object against removing this error message in master? > > Should it be removed in PHP-5.6 and PHP-7.0 as well? > > Thanks. Dmitry. > --089e0149d05e7fd70605277f7640--