Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101807 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37350 invoked from network); 7 Feb 2018 22:50:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2018 22:50:54 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.21 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.21 mout.gmx.net Received: from [212.227.17.21] ([212.227.17.21:56386] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/A0-49805-CC28B7A5 for ; Wed, 07 Feb 2018 17:50:53 -0500 Received: from [192.168.2.105] ([87.167.204.39]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MLS74-1ej0Jv0MF8-000gND; Wed, 07 Feb 2018 23:50:49 +0100 To: Stanislav Malyshev , PHP Internals References: <12636a53-48a8-9be4-c2cc-a7e4a16a8ba8@gmx.de> Message-ID: <1a4e2cea-3cbd-f330-adda-c7ca67b6ed2d@gmx.de> Date: Wed, 7 Feb 2018 23:50:50 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:wdc4gYEWpzYUQp9iiEwYOm9RYZdD6vaRlvThAXP57hSTGu+7Umi JQWZsKOeZyfsc9V/4jMH6/UmsoABJ0tNGJZnoy5BlzAVd/MyPFdUipnqwRQVaVvXsacHmpa niC3K96/QumNE0OUsfuc5EORuZfn5LkhzP3igXBoaZy8HK/rmXQuCwpHfbAhc1iI9XLQ47i 14M/dMAul/9ieUuZkEdng== X-UI-Out-Filterresults: notjunk:1;V01:K0:eOA1iwrTPC8=:uI95bblIs9LF/g/kIofKIx AKEhAlS72wRlM7J6InpyR/Ep2nVQvJ1EsPEp83Bqia36aaMgKuG6krGiCnHC5TLifvnMRGgNl inn9S6FsYGdmg0IS4LxDGgdKz8fICVyUXKW5vDykkNwwukzKDary5O1OFAazO3Jl81ZnfpGR2 QC/0ZbgfIqRv6PmdQlltsjToysEawW8fM/YHaVIRyl1gE7Hl9z8Gt6RD5XQ7qowVJ3NvFF0JH NOC5gdLWnO9C+fgLqlltuQ1s8RtQeFwYuL3Wt9W9vpiCkqBIO3RatsoBx11ok1s2z2XhsW+0I TsWC5p2bdcnMJF/v0ul6rXSPPm2NItAIihLdbBgxhaWlCZiQBcq9NgmONzOCEQly1k6S10cq3 9kY0TLJRXJA2i+zronCWTMBQLIGA/sFk1iEuhZp7E1r3pwT1t4QeJVFFczQsZFdgWrpRxnCHZ 160y8ebwB6bAnXlH+aG2JuKQI4IvUth9kQR/IaUtvsufOFs+0qxBf5QZAzHraj2Zfn/+i1/Lg BW9YGAoLAQEgp51eP7Q9gvHzQNnYfMZQUxl6BZEgPGSFmiTKRA2SoJDK05+1yc3VBFyYYoQZp hJuvJcyrW5M+uM2UtM9qlL9cC5u4arWKiETWKNNqnwLqjq+/vye28DMTvIyza4NQmM8E7gkbY B0yb7ZxgaNoR7rRkHWLB0d+eFnU5w+GgD2vKedtsZ1nh+qVG5nUZyz0y3/SskjYQP+9UZZsxY pHCyF/UDoMmfwvsumFHkLgp1FcL9EfMjgQ77VGyXOR3rddXodCEZEACq5abhcHFHqzZWnHEuG KY2/Rti9GbTP6C2ktfMueJAJ+VjOeWX0GDr8N6bwwxL5c/eON0= Subject: Re: [PHP-DEV] Replaced the bundled libgd with upstream (aka. system)libgd From: cmbecker69@gmx.de ("Christoph M. Becker") On 07.02.2018 at 21:04, Stanislav Malyshev wrote: >> bundled libgd)[5]. Another important difference is that our bundled >> libgd uses ZendMM, but upstream libgd does not[6]. > > This one we need to find a solution for. GD is often exposed to the > unfiltered user input, has a potential to consume large amounts of > memory and not having ZendMM memory limits in place can be a serious issue. I fully agree. Presumably few users are aware of this, and even if they were, it's not easy to cater to this generally. Until upstream libgd adds an API to attach custom memory allocators, we might have to patch the bundled copy (at least this would be a single, well located modification, instead of the current mess). >> For most Linux environments PHP is built with an upstream (system) >> libgd; on Windows usually the bundled libgd is used. Users targeting > > Windows is another concern - are there viable solutions for non-bundled > GD for Windows that we can recommend to the users? If not, that means we > still have to keep and maintain bundled GD, and if so, there's no point > to spend any time on un-bundling before we find solution to this. I don't see a real issue here. All other external PHP dependencies are provided by windows.php.net (amongst others, all GD dependencies, such as libjpeg), so a libgd.dll could also be provided, especially since upstream already provides a native Windows build "toolchain" which already relies on the dependencies provided by windows.php.net (see ). -- Christoph M. Becker