Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103989 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 66692 invoked from network); 1 Feb 2019 19:20:22 -0000 Received: from unknown (HELO mail-io1-f43.google.com) (209.85.166.43) by pb1.pair.com with SMTP; 1 Feb 2019 19:20:22 -0000 Received: by mail-io1-f43.google.com with SMTP id x6so6051890ioa.9 for ; Fri, 01 Feb 2019 08:00:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KECtd6HOm+Sk4jPDiXYZ5psEyQ4fcPOAoNacjPlhL78=; b=b8U9jegOEITiNwF8cAGIFIIxYL09LyyC1KeDCBREnMS8wm+0jJvb+Gbh2AuZ6Mz/Kz nsd9XcRxHMEA/I8SySrGRQcSrwOv9zEYGGlpqOcvDdeSv39qlJVVXbQzSPXKBpCXLEvv n2O55GFLlXYJ+tqPixwUSvFSTaxHMWEavGTGSEcOvOlB43tmu29poZlso4lgMKsry4ht T4D0Tx57VpIKsXnQf3+Xl/fbiRpuwlQK7rEJAc2DrF8reJzveezzM7F+mKZ7y8XbmW+d QrqthQMAx/y9UafG1hylvW7oqCIKSZPdmeAFMuOZaP4v65R2ROiIuVlv24eabc1c9XEQ 10mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KECtd6HOm+Sk4jPDiXYZ5psEyQ4fcPOAoNacjPlhL78=; b=ntKK1P4dua+5y/yYzHrcgj1bIpUkb5IqHtgvGUvJ7ZZ1CPpqv0IkMZENpZ6Zq2TNfm xJUL92ciHbUi+vZ/xeHi5++vGMLO+nDAdDLh30rtbU+/N0/WdnNRcNelKgt7hvTaR3gE Ni1AAsYBowpsTbo15r7Da3Ts39PfGqj8ZQ7ma+oHiKBTgq2jqC5OnZqS9hFU1a+Cf3aP fiu8l8BfmTFGX65je/6+wPRAX+omgdE7rYDzQ3ynAWov4LAW3PGtUFpfPDEdIFxjIms5 3qXTYny0qtjXA+0vgen57m7yabnH6F56s2xz+uwxWgzV95m3feJ2xZ3IX0kd1PkF78a+ G9sA== X-Gm-Message-State: AHQUAuYiO0M7FDTnqyn9WK9JEFfrSnr18HdN+mMxvQkRAwlYw4YMLi8F UHSKcD7Po4G8+Is2blV5vocDUr9v4BUx3VhbSjAZYkcZDLQ= X-Google-Smtp-Source: AHgI3IY7q25+VjUSU30oE2ewZlirHhXY4OaWijtTB8YYEEvYNQYdtRZ2B4R1vWxaz7zrWphetXNVHe5MSMP4vVXL2Q4= X-Received: by 2002:a5e:aa06:: with SMTP id s6mr23313902ioe.187.1549036831825; Fri, 01 Feb 2019 08:00:31 -0800 (PST) MIME-Version: 1.0 References: <04acea66-d42c-7352-85fa-738ea2519ede@gmail.com> In-Reply-To: <04acea66-d42c-7352-85fa-738ea2519ede@gmail.com> Date: Fri, 1 Feb 2019 17:00:14 +0100 Message-ID: To: Stanislav Malyshev Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000001ae4280580d73e5b" Subject: Re: [PHP-DEV] Remove zpp variation tests From: nikita.ppv@gmail.com (Nikita Popov) --0000000000001ae4280580d73e5b Content-Type: text/plain; charset="UTF-8" On Wed, Jan 30, 2019 at 7:39 PM Stanislav Malyshev wrote: > Hi! > > > This test passes a certain set of input values of different types to a > > function with a zpp string argument and observes the behavior. Of course, > > there are also hundreds of other functions that accept strings through > zpp > > and the behavior is always going to be the same. > > This is true for functions that use standard zpp handling, but there are > a number of them that use custom zpp handling, and for those there could > be corner cases which aren't handled properly. In fact, I've seen some > zpp-using functions that so not properly handle nulls, empty strings, > etc. as arguments (zpp works fine, it's the part past zpp that fails). > So we need to be careful and remove only those tests that are indeed > handled by zpp and not the code beyond it that does need to be tested, > and not remove tests which cover custom argument handling. > Yes, we shouldn't remove tests for custom argument handling. I've started working on this in https://github.com/php/php-src/pull/3783 and try to check for all tests whether this is a simple zpp argument or not. I'm also switching some cases to use zpp on the PHP 8 branch, where functions had some custom argument handling for no good reason. Nikita --0000000000001ae4280580d73e5b--