Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103891 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 70364 invoked from network); 30 Jan 2019 14:46:23 -0000 Received: from unknown (HELO mail-wm1-f42.google.com) (209.85.128.42) by pb1.pair.com with SMTP; 30 Jan 2019 14:46:23 -0000 Received: by mail-wm1-f42.google.com with SMTP id b11so21252417wmj.1 for ; Wed, 30 Jan 2019 03:26:00 -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=j2BcO0xq91AgALmQvoTZf9iRC8zXtAXcjxe1K/HUraE=; b=kGYW5Z8wREar/zm4U2UI5Jo0HeUQVN04ya1IFztyQXJ+7KC8B66mPJZFX1kQBFizZm JfRyu4J0aFLrtJhfbqRBIaPWAW2kC0mLpV9+FbziLCN4iYDywn5daCp0OTJ5aGmiXDZV qBXKnz12CeEoXP3gPmxMNVcSrCAaheEJeatzNGXGtahZfZgngqU+PugfoisZSiwtChUW HvO5V5uYwqFqvDf7OUQgO7Q3FDB2p/ASOFjde5B6wPGwE4YIxXWnTAtwqc6Z+HklKyaG uIBmwHFICnOvQeckX2uk7GgpR84VsbjLibV9s6CZkWDHa1i2qiHak93xXACdt75mTEME 1YQQ== 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=j2BcO0xq91AgALmQvoTZf9iRC8zXtAXcjxe1K/HUraE=; b=jSfoKbtKserRIxEdNIA3B02epnZQ7U/L05YL64kuvNtOX9zP3QkhR/pZItBC3ZdsI9 AgdVgMaZw7mzs0uT8CYzv5T9DjjFUG7ekQN2BfAJCHxcZjtGLNfk+FlUyGQ2BKgH5prN AHyNyiVszvSmV3GcgyDXyGV5GDjE9ZD02wU5CIP4BgNXcnC912zLv7Q2Bj/rrTew+P0T x/LAefUmS9KY60U/TLCtdXSAksljVMLZqbjQUugw8TCzOCZ/w+6yXHlpeC5eyoMN36rf uRh3IAucpEbVs6Lzb74vhjQYZ7kYSot4iPyvBs3RGVHfiFZ3+cTr17LW97foPTa+2ZbV zj/w== X-Gm-Message-State: AHQUAua2EGd2lSGsKXDqIxJJ2Ao8hpcivwH1UbNniF0HujkQG5iwG6xQ vR6jp0pwoUmA+pAmVHaKVeoUYJySvd4vILSix4c= X-Google-Smtp-Source: AHgI3IYMU2vQTeA9O11pdS27I4Ihhz/gs6Lcs+7RHCFWn01LVHuri8cq6pxnz/ge19+nl58EQ6xtiknWup6dRzFNVAA= X-Received: by 2002:a1c:d14d:: with SMTP id i74mr5797425wmg.100.1548847559837; Wed, 30 Jan 2019 03:25:59 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 30 Jan 2019 09:25:47 -0200 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000009d924d0580ab2c1c" Subject: Re: [PHP-DEV] Remove zpp variation tests From: carusogabriel34@gmail.com (Gabriel Caruso) --0000000000009d924d0580ab2c1c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Em qua, 30 de jan de 2019 =C3=A0s 07:46, Nikita Popov escreveu: > Hi internals, > > We currently have a large number of zpp "variation" tests, which > essentially only test the behavior of zend_parse_parameters plugged into > different functions. A random example of such a test: > > > https://github.com/php/php-src/blob/master/ext/standard/tests/strings/add= slashes_variation1.phpt > > 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 zp= p > and the behavior is always going to be the same. > > Based on a quick grep I would estimate that we have around 700 of these > tests. We have a hard policy against adding new tests for zpp behavior, b= ut > I would like to get rid of the existing ones as well. They provide > essentially no value, but are a major chore to update for even for minor > changes. > > Regards, > Nikita > Yes, yes, yes! When I was implementing the https://github.com/php/php-src/pull/3429, was a pain fixing all those tests. --=20 Gabriel Caruso --0000000000009d924d0580ab2c1c--