Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103743 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 87066 invoked from network); 15 Jan 2019 14:37:52 -0000 Received: from unknown (HELO mout.gmx.net) (212.227.17.22) by pb1.pair.com with SMTP; 15 Jan 2019 14:37:52 -0000 Received: from [192.168.2.138] ([91.8.162.93]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M6B6s-1hTvwb1GAs-00yAwV for ; Tue, 15 Jan 2019 12:13:43 +0100 To: PHP internals Message-ID: Date: Tue, 15 Jan 2019 12:13:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:brftfgTXKrvZsxzvOSSuensFI8FfRZg4TsoEcL3uWrilYqdTRVz jmZMxbAhp2Qd+wh0mizH2Jys7aN93siYwV0UlppYqIve0luxIYuADpY+ViukmXY6PBBdvpc +PlSP1AmNe/7ZGnFvIaRq+d6Nw8ecUxGu+ETg123i23HU3RPVEVjMUPk2t6npOTJjgflYUp Lz38uXd/JP5PLZvy4wytA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:4TsEUi7+uyc=:8gsz71WPhH1pYi6/7q42Di Bn/xKiWe6/Z1wYDddAIhmYwResq+IuPYYlr0iI3E06RE+M3S9fl2bm0Cj9qSLdlhgkO9tdH/s iFmXGWhawxe0mB7c86JczI+pUAkxRtGkS8DehfNNg7oCKpLWJETgt5GwtA2HX8sg2xPFBoZTW v+te2cZgeWoAN1reQJ3cIg1jrQILCSluK/H1tPSODe10nfHqV+RnS7szHT4BGM13AIxKAL1kP 9ekCZRlHqqUKohUKzuhWSz3SMFWaV7AhDeOHH1meufqQCj5KZ5MBWv+J01eVydoCEzuE0CKMQ Y91/2miL4gWQxSOXa6zkYxbrJNGIflMWV8y1TQjK1+5yAQpcUnmuMoy8XFr/9bqnaxMuFJeTt 0Fhpm34G+t4KN8Ydmh7eCJ5viVrWE9u21xXO2UbFCKvxR/Nud2kTOglHvz1TlxsbgbwrKDWg+ 6qeqRzVfNcXEsAKs9REDTjWBPjDHMnfBd433b4f6mxNKvYAvis7CJ6TUwaNvo/wBzbYMPHJIC GIxQarNmAcOcuSu2x4hd8WsF1TZGZD/o5nALj8r2d7EV4uCz/B18aEn4E+3Hi2pbzjlVE+ng3 MzTzrFE4WWGMCZl+lrtHwKmfBJlX5tQSNtxZOBGRqMB1mhx0/QicU9SA+VCyvVBk4AAgqA7A6 M32IFhdySiOuNmxZHrnvATnNi1BiNScbWh9AQ0FbTuf/RbUv1bhjUvF+77BzWLn9hyqfVNfsM XAohzIsmLMYP2Gt3SBDan96mn7VmEFf9HLfyLq0OC8hAgmT63LTdOmcaz3/qYJINB366zXkFQ 4DR2N88UBoEdC2xt6EbxoobtnpacPI+s4TuUxf9qQCrlsrClt/tK8OrYhVBKGbKTmwoeXkabY SLh/+JyxGUI9cbCvvRVnZQinamCaFnOWhqOE2vR5TT1n/i9CTJzE3sqvYdrO3L Subject: Suggested libgd ABI change leading to ext/gd BC break From: cmbecker69@gmx.de ("Christoph M. Becker") Hi! Most recently, a pull request has been submitted for libgd[1], which suggests to define image IO functions for several image formats unconditionally; if the format is not supported, the IO functions would fail with an error notice. This would break the current ext/gd configuration, since it relies on checks for the existence of these functions[2] to define the respective PHP functions conditionally and for introspection (e.g. gd_info()). In other words, building ext/gd against the PR would define imagecreatefromweb() even if WebP is not supported. This would break code relying on `if (function_exists('imagecreatefromweb'))` or such. We would have to change ext/gd/config.m4 accordingly to keep BC (we could either rely on gdSupportsFileType() or actually call the functions checking for the error message during build-time). However, I wonder about stable PHP versions, and particularly PHP 7.1 which is supposed to receive only security updates. If the libgd PR will be merged and released with libgd 2.3.0 which may well happen during this year, unmodified PHP versions would break BC if built against libgd 2.3.0. Suggestions how to deal with this are welcome! [1] [2] -- Christoph M. Becker