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

2017-11-03 Thread Scott Arciszewski
On Fri, Nov 3, 2017 at 3:49 PM, Matteo Beccati wrote: > Hi Scott, > > On 03/11/2017 16:33, Scott Arciszewski wrote: > > 1. Which DB drivers (and which versions) support 1RT prepared statements > in > > addition to 2RT prepared statements? > > 2. Is there a better name for this

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

2017-11-03 Thread Matteo Beccati
Hi Scott, On 03/11/2017 16:33, Scott Arciszewski wrote: > 1. Which DB drivers (and which versions) support 1RT prepared statements in > addition to 2RT prepared statements? > 2. Is there a better name for this usage than safeQuery()? > > If this turns out to be a good idea, I'll write up an RFC

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

2017-11-03 Thread Scott Arciszewski
This came up in a discussion on Reddit: https://www.reddit.com/r/PHP/comments/79xgcg/disclosure_wordpress_wpdb_sql_injection_technical/dp7wln0/?context=5 For database drivers that support sending the query and parameters in the same TCP packet (n.b. not in the same query string, though, or we

Re: [PHP-DEV] Inserting string keys in arrays at any position

2017-11-03 Thread Bishop Bettini
On Fri, Nov 3, 2017 at 9:51 AM, Thomas Hruska wrote: > I've been wondering for some time why PHP does not have the ability to > efficiently insert string keys before/after an existing string key. > > Let's say I have an array of 10,000 string key/value pairs and I want

[PHP-DEV] Inserting string keys in arrays at any position

2017-11-03 Thread Thomas Hruska
I've been wondering for some time why PHP does not have the ability to efficiently insert string keys before/after an existing string key. Let's say I have an array of 10,000 string key/value pairs and I want to insert five new string key/value pairs at specific positions in the existing

[PHP-DEV] birgi...@rakkeby.dk

2017-11-03 Thread Mads Lie Jensen
Hej skat :-) -- Mads Lie Jensen m...@gartneriet.dk http://www.gartneriet.dk/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2017-11-03 Thread li...@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 see how it offers "negative benefits to the vast number of programmers who

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

2017-11-03 Thread 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 see how it offers "negative benefits to the vast number of programmers who are happy with the language as it currently