RE: [PHP-DEV] [PATCH] getimagesize - return named keys for width, height, type and attributes

2011-07-13 Thread DIXON P.
I hadn’t thought of list(). I've update the patch (attached) so that each value has both an indexed and associative entry in the returned array, so that it will still work with list(). Paul -Original Message- From: Alexey Shein [mailto:con...@gmail.com] Sent: 12 July 2011 10:44 To: Mic

Re: [PHP-DEV] [PATCH] getimagesize - return named keys for width, height, type and attributes

2011-07-13 Thread Arvids Godjuks
This one is quite positive, I'm all +1 on this as a user land developer. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Philip Olson
On Jul 11, 2011, at 5:20 PM, Stas Malyshev wrote: > Hi! > > On 7/11/11 5:09 PM, Philip Olson wrote: >> this previously accepted RFC is not about removing magic quotes. And I'm the >> author of said RFC. It deals with PHP 5.3 which removed get_magic_quotes_*() >> so this old RFC restored them int

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Stas Malyshev
Hi! On 7/13/11 8:55 AM, Philip Olson wrote: But this topic (removing magic quotes from 5.4) was not proposed on this list, so the vote feels premature. The only related RFC on the matter involves PHP 6, and it isn't specific to MQ. Granted we all don't like MQ, but this "security" feature is ena

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Hannes Magnusson
On Tue, Jul 12, 2011 at 20:02, David Soria Parra wrote: > On 2011-07-12, Pierre Joye wrote: >> hi, >> >> As of now I do not think we should allow this change, whether the RFC >> is accepted or not does not matter as it will badly break BC. Unless >> there is a patch allowing this change without a

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Stas Malyshev
Hi! On 7/13/11 9:35 AM, Hannes Magnusson wrote: This thread is an excellent example why attempting to reach consensus by discussing things is important. Voting should be considered as an desperate last resort, not the primary mechanism. http://producingoss.com/en/consensus-democracy.html has se

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Philip Olson
On Jul 13, 2011, at 9:35 AM, Hannes Magnusson wrote: > On Tue, Jul 12, 2011 at 20:02, David Soria Parra wrote: >> On 2011-07-12, Pierre Joye wrote: >>> hi, >>> >>> As of now I do not think we should allow this change, whether the RFC >>> is accepted or not does not matter as it will badly brea

Re: [PHP-DEV] Re: Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Derick Rethans
On Sun, 10 Jul 2011, Stas Malyshev wrote: > Hi! > > On 7/10/11 9:41 AM, Patrick ALLAERT wrote: > > I'm sure some projects have defined classes with those keywords in > > some namespace (to ensure they wouldn't conflict with possible PHP > > built-in stuff) like in: > > > > namespace \Types { > >

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Pierre Joye
hi Hannes, On Wed, Jul 13, 2011 at 6:35 PM, Hannes Magnusson wrote: > On Tue, Jul 12, 2011 at 20:02, David Soria Parra wrote: >> On 2011-07-12, Pierre Joye wrote: >>> hi, >>> >>> As of now I do not think we should allow this change, whether the RFC >>> is accepted or not does not matter as it w

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Rasmus Lerdorf
On 07/13/2011 10:30 AM, Pierre Joye wrote: > I disagree and this exact issue shows that the voting and controlling > is actually working well, very well. As it is covered by the two > recently adopted RFCs. I'm not sure how you come to the conclusion that it is working well. This particular change

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Ferenc Kovacs
On Wed, Jul 13, 2011 at 5:57 PM, Stas Malyshev wrote: > Hi! > > On 7/13/11 8:55 AM, Philip Olson wrote: >> >> But this topic (removing magic quotes from 5.4) was not proposed on >> this list, so the vote feels premature. The only related RFC on the >> matter involves PHP 6, and it isn't specific t

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Pierre Joye
On Wed, Jul 13, 2011 at 7:53 PM, Rasmus Lerdorf wrote: > On 07/13/2011 10:30 AM, Pierre Joye wrote: >> I disagree and this exact issue shows that the voting and controlling >> is actually working well, very well. As it is covered by the two >> recently adopted RFCs. > > I'm not sure how you come t

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Stas Malyshev
Hi! On 7/13/11 11:11 AM, Ferenc Kovacs wrote: I would also change my vote, I would go with keeping it deprecated, but turning it off by default (currently it isn't done, but the suggested development/production inis have this turned off), and remove it with the next minor version bump. Which b

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Rasmus Lerdorf
On 07/13/2011 11:17 AM, Pierre Joye wrote: > On Wed, Jul 13, 2011 at 7:53 PM, Rasmus Lerdorf wrote: >> On 07/13/2011 10:30 AM, Pierre Joye wrote: >>> I disagree and this exact issue shows that the voting and controlling >>> is actually working well, very well. As it is covered by the two >>> recen

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Ferenc Kovacs
On Wed, Jul 13, 2011 at 8:21 PM, Stas Malyshev wrote: > Hi! > > On 7/13/11 11:11 AM, Ferenc Kovacs wrote: >> >> I would also change my vote, I would go with keeping it deprecated, >> but turning it off by default (currently it isn't done, but the >> suggested development/production inis have this

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Pierre Joye
On Wed, Jul 13, 2011 at 8:36 PM, Rasmus Lerdorf wrote: > On 07/13/2011 11:17 AM, Pierre Joye wrote: >> On Wed, Jul 13, 2011 at 7:53 PM, Rasmus Lerdorf wrote: >>> On 07/13/2011 10:30 AM, Pierre Joye wrote: I disagree and this exact issue shows that the voting and controlling is actually

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Stas Malyshev
Hi! On 7/13/11 11:35 AM, Ferenc Kovacs wrote: tyrael@thor:~/checkouts$ php -n -r 'echo PHP_VERSION."\n";echo ini_get("magic_quotes_gpc")."\n";' 5.3.6-6~dotdeb.1 1 Nobody runs PHP with -n, who would you do that? INIs are the recommended setting, if you ignore that, you do it at your own peril.

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Rasmus Lerdorf
On 07/13/2011 11:50 AM, Pierre Joye wrote: > Are you saying that widely approved thing are pointless or we could > have foreseen the results for each of them? Better to have a vote and > got a massive support than nothing and sit in the middle of nowhere > forever. I'm saying that many of these in

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Pierre Joye
On Wed, Jul 13, 2011 at 9:19 PM, Rasmus Lerdorf wrote: > On 07/13/2011 11:50 AM, Pierre Joye wrote: >> Are you saying that widely approved thing are pointless or we could >> have foreseen the results for each of them? Better to have a vote and >> got a massive support than nothing and sit in the m

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Pierre Joye
ah forgot to mention that indeed not all todos should have be done via a RFC, that would not help us, not at all. But the primitive one, for example, must have one. On Wed, Jul 13, 2011 at 9:19 PM, Rasmus Lerdorf wrote: > On 07/13/2011 11:50 AM, Pierre Joye wrote: >> Are you saying that widely ap

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Rasmus Lerdorf
On 07/13/2011 12:23 PM, Pierre Joye wrote: > On Wed, Jul 13, 2011 at 9:19 PM, Rasmus Lerdorf wrote: >> On 07/13/2011 11:50 AM, Pierre Joye wrote: >>> Are you saying that widely approved thing are pointless or we could >>> have foreseen the results for each of them? Better to have a vote and >>> go

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Pierre Joye
On Wed, Jul 13, 2011 at 9:14 PM, Stas Malyshev wrote: > Hi! > > On 7/13/11 11:35 AM, Ferenc Kovacs wrote: >> >> tyrael@thor:~/checkouts$ php -n -r 'echo PHP_VERSION."\n";echo >> ini_get("magic_quotes_gpc")."\n";' >> 5.3.6-6~dotdeb.1 >> 1 > > Nobody runs PHP with -n, who would you do that? INIs are

Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long))

2011-07-13 Thread Pierre Joye
On Wed, Jul 13, 2011 at 9:28 PM, Rasmus Lerdorf wrote: > Right, but these folks that don't follow the discussions are the same 37 > people who voted for the Primitives change. How is that helpful? Many of the votes there are not from developers. We have explained what happened earlier this week.

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Stas Malyshev
Hi! On 7/13/11 12:28 PM, Pierre Joye wrote: I do in many situations while testing and debugging and that's why the default values exist. Can't we keep it on topic? Do you need magic quotes when you're debugging? Do you expect it to have the same value with and without -n? Does your code rely

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Ferenc Kovacs
On Wed, Jul 13, 2011 at 9:28 PM, Pierre Joye wrote: > On Wed, Jul 13, 2011 at 9:14 PM, Stas Malyshev wrote: >> Hi! >> >> On 7/13/11 11:35 AM, Ferenc Kovacs wrote: >>> >>> tyrael@thor:~/checkouts$ php -n -r 'echo PHP_VERSION."\n";echo >>> ini_get("magic_quotes_gpc")."\n";' >>> 5.3.6-6~dotdeb.1 >>>

RE: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Moshe, Sam
I'm sure this has been discussed, but I'm new here, and uncertain as to where to go to get caught up. What's so wrong with magic quotes that they need to be removed from the language entirely? Links of advice would be helpful. Thanks. -Original Message- From: Stas Malyshev [mailto:smalys.

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Ferenc Kovacs
On Wed, Jul 13, 2011 at 9:39 PM, Stas Malyshev wrote: > Hi! > > On 7/13/11 12:28 PM, Pierre Joye wrote: >> >> I do in many situations while testing and debugging and that's why the >> default values exist. > > Can't we keep it on topic? Do you need magic quotes when you're debugging? > Do you expe

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Ferenc Kovacs
On Wed, Jul 13, 2011 at 9:50 PM, Moshe, Sam wrote: > I'm sure this has been discussed, but I'm new here, and uncertain as to > where to go to get caught up. > What's so wrong with magic quotes that they need to be removed from the > language entirely? > > Links of advice would be helpful. > Thanks

Re: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Reindl Harald
Am 13.07.2011 21:50, schrieb Moshe, Sam: > What's so wrong with magic quotes that they need to be removed from the > language entirely? they are idiotic because useless for escaping database inputs and you need to find out this setting to remove them by stripslashes() if enabled from some dumb adm

RE: [PHP-DEV] [VOTE] 5.4 features vote

2011-07-13 Thread Moshe, Sam
Great responses, all of them. Thanks everybody for the insight. Apologies if I veered off topic. -Original Message- From: Reindl Harald [mailto:h.rei...@thelounge.net] Sent: Wednesday, July 13, 2011 2:56 PM To: internals@lists.php.net Subject: Re: [PHP-DEV] [VOTE] 5.4 features vote Am 1