Re: [PHP-DEV] Proposal: Rename image functions

2017-11-04 Thread Stanislav Malyshev
Hi! > Step 1: > I create a patch with the new aliases. I don't see much wrong with old names - nobody remembers those names anyway, and once you use IDE or - for people that still type PHP code by banging two rocks together, like I sometimes do, the manual - it doesn't matter whether there is und

Re: [PHP-DEV] Constants and Access Modifiers

2017-11-04 Thread Stanislav Malyshev
Hi! > My wording was maybe a bit wrong here, and I was biased by the fact that > I would like to see abstract constants. The fact that not everything can What is "abstract constant"? If you need something that can change, just use a method. Constant is meant to be a nice way to write something in

Re: [PHP-DEV] Idea: PDO - Single-round-trip prepared statements

2017-11-04 Thread Johannes Schlüter
On Sa, 2017-11-04 at 08:28 +0100, Matteo Beccati wrote: > Hi, > > On 03/11/2017 21:25, Scott Arciszewski wrote: > > > > MySQL calls it an X Protocol, apparently. > > > > https://dev.mysql.com/doc/internals/en/x-protocol-use-cases-use-cas > > es.html#x-protocol-use-cases-prepared-statements-with-

[PHP-DEV] Re: Proposal: Rename image functions

2017-11-04 Thread Andrea Faulds
Hi Andreas, Andreas Treichel wrote: For a better readability of the gd functions I would like to rename them so that they contain underscores to separate the words. From my perspective, GD's function names are a documentation problem. They're perfectly readable if typed in camelCase, as I do

Re: [PHP-DEV] RFC - Array Of for PHP 7

2017-11-04 Thread Andrea Faulds
Hi Mark, Mark Randall wrote: On 03/11/2017 02:27, Andrea Faulds wrote: Your proposed objects would not be usable everywhere an array is, because they're not arrays, and by converting to an array you lose the type info, so we still have to iterate over the whole thing to type check. This would b

Re: [PHP-DEV] Proposal: Rename image functions

2017-11-04 Thread Christoph M. Becker
On 04.11.2017 at 18:39, Rowan Collins wrote: > On 4 November 2017 16:40:56 GMT+00:00, Andreas Treichel > wrote: > >> The only >> exception is image2wbmp which is renamed to image_to_wbmp. > > What is the difference between imagewbmp and image2wbmp? If we're going to > rename things, shouldn'

[PHP-DEV] Re: Proposal: Rename image functions

2017-11-04 Thread Christoph M. Becker
On 04.11.2017 at 17:40, Andreas Treichel wrote: > For a better readability of the gd functions I would like to rename them > so that they contain underscores to separate the words. The only > exception is image2wbmp which is renamed to image_to_wbmp. The order of > the parameters of all functions

[PHP-DEV] Re: [VOTE] Allow a trailing comma in function calls

2017-11-04 Thread Sammy Kaye Powers
Hello internals! I'm pleased to announce that the two-week voting period for the RFC to allow a trailing comma in function/method calls has officially closed and the RFC has passed 30 to 10. https://wiki.php.net/rfc/trailing-comma-function-calls Thanks to everyone who participated in the process

Re: [PHP-DEV] Proposal: Rename image functions

2017-11-04 Thread Rowan Collins
On 4 November 2017 16:40:56 GMT+00:00, Andreas Treichel wrote: > The only >exception is image2wbmp which is renamed to image_to_wbmp. What is the difference between imagewbmp and image2wbmp? If we're going to rename things, shouldn't that difference be made clearer? Or should we be looking t

Re: [PHP-DEV] Idea: PDO - Single-round-trip prepared statements

2017-11-04 Thread Rowan Collins
On 4 November 2017 16:24:58 GMT+00:00, Stephen Reay wrote: >So while most apps don't need to reuse the prepared statement they >benefit from the more bulletproof parameterization, IMO. I think a lot of unnecessary confusion comes about because people say "prepared statements" when it would be c

[PHP-DEV] Proposal: Rename image functions

2017-11-04 Thread Andreas Treichel
For a better readability of the gd functions I would like to rename them so that they contain underscores to separate the words. The only exception is image2wbmp which is renamed to image_to_wbmp. The order of the parameters of all functions whould be unchanged. Due to the unchanged parameters

Re: [PHP-DEV] Idea: PDO - Single-round-trip prepared statements

2017-11-04 Thread Stephen Reay
> On 4 Nov 2017, at 14:28, Matteo Beccati wrote: > > Hi, > >> On 03/11/2017 21:25, Scott Arciszewski wrote: >> ​MySQL calls it an X Protocol, apparently. >> >> https://dev.mysql.com/doc/internals/en/x-protocol-use-cases-use-cases.html#x-protocol-use-cases-prepared-statements-with-single-round-

Re: [PHP-DEV] Re: RFC - Array Of for PHP 7

2017-11-04 Thread li...@rhsoft.net
Am 04.11.2017 um 10:18 schrieb Tony Marston: wrote in message news:941fd347-4a17-78b6-1bd7-4a5519aa7...@rhsoft.net... Am 03.11.2017 um 11:33 schrieb Tony Marston: wrote in message news:6643d10b-8703-693c-15c2-da338022e...@rhsoft.net... Am 02.11.2017 um 10:55 schrieb Tony Marston: "Kalle S

Re: [PHP-DEV] Re: RFC - Array Of for PHP 7

2017-11-04 Thread Tony Marston
wrote in message news:941fd347-4a17-78b6-1bd7-4a5519aa7...@rhsoft.net... Am 03.11.2017 um 11:33 schrieb Tony Marston: wrote in message news:6643d10b-8703-693c-15c2-da338022e...@rhsoft.net... Am 02.11.2017 um 10:55 schrieb Tony Marston: "Kalle Sommer Nielsen" wrote in message I fail to se

Re: [PHP-DEV] Idea: PDO - Single-round-trip prepared statements

2017-11-04 Thread Matteo Beccati
Hi, On 03/11/2017 21:25, Scott Arciszewski wrote: > ​MySQL calls it an X Protocol, apparently. > > https://dev.mysql.com/doc/internals/en/x-protocol-use-cases-use-cases.html#x-protocol-use-cases-prepared-statements-with-single-round-trip OK, which is something that neither libmysqlclient nor mys