Re: [PHP-DEV] ArrayPath

2014-10-07 Thread Matthew Fonda
On Tue, Oct 7, 2014 at 9:05 AM, Mathias Grimm mathiasgr...@gmail.com wrote: Hi, I would like to suggest something for php like a class I am using https://github.com/mathiasgrimm/arraypath The reason is to access arrays like this: $idx3 = ArrayPath::get('idx1/idx2/idx3', $_POST,

Re: [PHP-DEV] [RFC] Implicit isset() in Shorthand Ternary Operator

2014-09-17 Thread Matthew Fonda
Hi Andrea, This is great -- thanks to you and Nikita for the work here. Syntax wise, I would prefer a function-like syntax, e.g. coalesce($a, $b, 'c') or ifsetor() instead of $a ?? $b ?? 'c'. I find this more readable, and it avoids any possible confusion about precedence within the expressions.

Re: [PHP-DEV] [RFC] Disallow multiple default blocks in a single switch statement

2014-08-13 Thread Matthew Fonda
On Wed, Aug 13, 2014 at 3:24 AM, Peter Cowburn petercowb...@gmail.com wrote: My thoughts on the topic? I think we're in danger of letting process get in our way here. It's a bug fix which IMHO should even be thrown into 5.6 (this is a bug fix!). Going through the RFC process, being forced to

Re: [PHP-DEV] camelCase on Exception methods?

2012-12-06 Thread Matthew Fonda
On Thu, Dec 6, 2012 at 4:34 PM, Kris Craig kris.cr...@gmail.com wrote: Hey guys, Please forgive me if this has already been addressed, but could somebody tell me why all the methods for the Exception class are in camelCase? I don't want to wade too deeply into the consistency vs. BC rabbit

Re: [PHP-DEV] Change bug tracker bogus to not-bug?

2012-01-24 Thread Matthew Fonda
On Tue, Jan 24, 2012 at 3:16 PM, Paul Dragoonis dragoo...@gmail.com wrote: On Tue, Jan 24, 2012 at 11:12 PM, Christopher Jones christopher.jo...@oracle.com wrote: On 01/24/2012 03:11 PM, Justin Martin wrote: Hello, With some frequency, I find bugs which are not bogus, so much as they are

Re: [PHP-DEV] Support negative indexes for arrays and strings

2011-01-14 Thread Matthew Fonda
On Fri, Jan 14, 2011 at 10:21 AM, Marc Easen m...@easen.co.uk wrote: Hello everyone, I would like to open the discussion around the support of negative indexes, as I feel a lot of developers will benefit from this syntactical sugar. It would be convenient, but PHP already allows arrays to

Re: [PHP-DEV] Supporting Binary Notation for Integers

2010-11-10 Thread Matthew Fonda
On Wed, Nov 10, 2010 at 2:51 PM, Gustavo Lopes glo...@nebm.ist.utl.pt wrote: On Wed, 10 Nov 2010 21:31:19 -, Jonah H. Harris jonah.har...@gmail.com wrote: Hey all, I was recently working on some code which made use of bit arrays and I came across feature request 50648: Format for binary

[PHP-DEV] [patch] Allow array_change_key_case to support ucfirst and lcfirst

2009-09-22 Thread Matthew Fonda
Hi All, I came across a situation where I had to make the first character of an arrays keys uppercase, and found the array_change_key_case function, but noticed it only supported CASE_UPPER and CASE_LOWER. Attached is a patch to also add support for CASE_LCFIRST and CASE_UCFIRST. The patch is

Re: [PHP-DEV] Type hinting/casting request for vote

2009-07-07 Thread Matthew Fonda
On Monday, July 6, 2009, Ilia Alshanetsky i...@prohost.org wrote: Last week or so there was a fairly detailed discussion on the internals list regarding type hinting based on my original patch. Since then the patch has been revised to address the major concerns that were identified (breakage

Re: [PHP-DEV] PHP 5.0.4 PEAR issue

2005-04-01 Thread Matthew Fonda
Option [a] seems like the most logical thing to do, would probably work the best. It might be nice to note on php.net somewhere right now before this is fixed that PEAR will not install. The options we have, as far as I can tell, are: [a] Re-release 5.0.4 with that file [b] Release 5.0.5 with