Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107261 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9665 invoked from network); 20 Sep 2019 12:24:56 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 20 Sep 2019 12:24:56 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id D871F2D20F4 for ; Fri, 20 Sep 2019 03:02:44 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8560 212.227.0.0/16 X-Spam-Virus: No Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Fri, 20 Sep 2019 03:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1568973762; bh=nVEpRaSpcjl4Axar7+hAEVKENM0GqBPMUbOSvy1H5QI=; h=X-UI-Sender-Class:To:From:Subject:Date; b=Sb7NA2O55S1vfsqgF9B5EwKSzI8rQEaGzw+VOfdz2NzB/QHMzZ9Uxqgp3R1Qbau65 5+4VkI9tsupuTsMdVCULc37VOimjNE6UK/Z7HtzoGy5eQcnmvUWMd6tg57xRGmy85y TVXYWkkkxuaydJTYOY0KKh8KLpwn5bgB+itg579w= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.144] ([84.179.236.50]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N4z6k-1i1Fos3B7U-010u3D for ; Fri, 20 Sep 2019 12:02:42 +0200 To: PHP internals Message-ID: Date: Fri, 20 Sep 2019 12:02:42 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:2QUjpvJtZoDpBc/uTfwwbDMA96BfjQlgW81HtnJAjtBA8SGzoHn BsOVG4oE6ZUyqv2s7zP1IBJVjstS6axmRclDph9WKdnA/zK7evnxeaCJoKG7BdGU4cu6zN+ 8B9qmzothl3zbPJ5HuB2/QNyKbOSiJr3kPzMD5+wlTqR/be1b1e/FziIvNIN72gay/Kkjki wRTMhJf8KmL7ImP4khQYA== X-UI-Out-Filterresults: notjunk:1;V03:K0:95C+msf/yCA=:udHp9A2GBCfP1osOHkHIge YkRLKv82IEDuZ/MCnnaVXeIL30HRG/zUDbkFecxvggcPiuspZCyaBhaYJRZMjtQnqX7Z25/Gn Xj6eaOeC35WrQuDeXolTMnG4Dlb8j3IGNWLYiL0ZN9Ld/yxSreCX/5+a1YlxbE/MRqLajR+GB WQLwRqC3UqOrOIZEFe0BiNkjCms/YemTN4AndhqxcbJqxOxl47RS8fXOBoaxPaS6zRcrZXVf9 tDsW9ZEwkXs5td6tNubKI4VX/Df1x6CGQ9CEjlT7sS0LUuT1wiMgJDJDXKmevmQdP5S92OmIJ ArSnS1U6SUJ3kNfAPwjgRpKrDyKnAJ3gpM2D3nXuaoPS+7QiPDYo4EmvZxjqNH2Lcwu9MstWR 9n+oaDMAaiU6uLQ73/j6QjudHB5c7hRCUGs/TwB7hpgBAPDPI1UPBj0dLKGkyJ1mi4uRzNP6b 1E17B0m097CYRJnbFMqQ/X6y69ghbeDosgywRfRiy8gr33niAArn1GBUJPoZ5+1w7H++hnAHR ASphP/NERZiyFShJNHuF5IC+pOSUe9v+dcF06TIPoR2I/3E43PbUuOyLtzF4uC9vEM7SjgG5b gk237DT4EDpjmroxxAcPMJlM/ZZwUQApfmPFS6Y4klmwe0dgCHHwrBswN0mP8krMMRQiwj66b xRM1p3ruK1vzVdL0lfVS2nGAxQidZ01sf+jhsFX3TpYqIlbyKpPLSHqQoPtH0teI295lOvQJz T/Hgzp2cbqciRoHBpKitsSQyGbpmqCvAQZhx+8gb4bDX8h3I303E7LgKYXIBuiDUPVoLqouIV 7TaEqkMYZg8f1rNS9BlzbQ0aYkK9kJoom/L4PC/kb54pq2o0nE77ltgDbpXjFKpcd61kRJEmd 9VjqQerMe7kjg3D0FuoxfsboUwBYgNsNbx3vq2xwIDPzbEwAURZr3yQBFSnHgCmULiLcEUKrJ 6MmT1X/Xy7UaZQIJ8tE2BCMBAuSTPjOye/fM+KBYJgtVUrBqjrYeiYdtOS6T4FrTMfB2WnXI1 v3Wy7RRlmI1840BUBU8vMpHSEx+IhnppLHVDJ4Oseke1kZHBY7+qO5kZbgeUo7Gd4+wJW7Rq8 YM4yAkGtJi4WM2khuXJcUkQR48aIn4AV9QziE5sM0mBWSPddci2R9JlXSICIwnNwv+3YLyZPS 9Mwn10BAdys89XTrV3cDSsphlLJ1hgejvTWGU0LdQEPYJEBwj/viRY9INUyabxCrYJ02g0LXH Tm4QJ1IRd3+UTXA7EncgpSMZzyjyyT+Uc5My4W53GkekgmJzuigayURO/+4k= X-Envelope-From: Subject: Unify mail related tests for *nix and Windows From: cmbecker69@gmx.de ("Christoph M. Becker") Hi all! Currently our mail related tests (in ext/standard/tests/mail/ and maybe other locations) are split for *nix and Windows (if there are even Windows versions). The basic difference is that the *nix variants set the INI directive sendmail_path to just write the email to disk (some variations exist), while the Windows tests use ext/imap. The latter tests are way more verbose, and such duplicated tests are generally a pain point. Therefore I suggest to unify these tests. Basically, setting the sendmail_path works for Windows as well; we only have to offer a binary that writes the mail to disk (`tee` and non-binaries don't appear to work). A rudimentary implementation is trivial[1]. The then missing part would be to actually make the ini setting portable, which might be done by introducing a new placeholder for PHPT INI sections, similar to {TMP} and {PWD}. The new placeholder would likely have to accept a filename, so it could be something like {MAIL:}. Any ideas and suggestions for improvements, or potential caveats welcome! [1] =2D- Christoph M. Becker