Re: [PHP-DEV] Autoboxing in PHP

2010-05-04 Thread Nate Gordon
On Tue, May 4, 2010 at 9:12 AM, Etienne Kneuss wrote: > Hi, > > On Tue, May 4, 2010 at 5:48 AM, Moriyoshi Koizumi wrote: > > Hey, > > > > Just to let you know about a new RFC for adding autoboxing feature in > PHP. > > Look at http://wiki.php.net/rfc/autoboxing . > > > It looks like a very inter

Re: [PHP-DEV] Serializing Closures

2010-04-01 Thread Nate Gordon
On Wed, Mar 31, 2010 at 10:25 PM, Stanislav Malyshev wrote: > Hi! > > > prevented. The short background of what I'm doing is serializing >> backtraces >> when errors occur so that I can better diagnose bugs my clients report. >> But >> when a closure is passed as a function parameter somewhere

[PHP-DEV] Serializing Closures

2010-03-31 Thread Nate Gordon
Firstly, I'm not here to debate the merits or the how-to of serializing closures. I'm here to address the current usability issues with how it is prevented. The short background of what I'm doing is serializing backtraces when errors occur so that I can better diagnose bugs my clients report. Bu

Re: [PHP-DEV] PHP 5.4 branch and trunk

2010-03-19 Thread Nate Gordon
On Fri, Mar 19, 2010 at 3:31 AM, Ferenc Kovacs wrote: > On Fri, Mar 19, 2010 at 4:20 AM, Larry Garfield > wrote: > > On Thursday 18 March 2010 10:05:39 pm Eric Stewart wrote: > > > >> +1 For shorter release cycles. Shorter release cycles could also allow > us > >> to move major releases immedia

Re: [PHP-DEV] Re: [fw-webservices] Re: [PHP-DEV] RFC - "class underloading" -or- "ancestor overloading"

2010-03-15 Thread Nate Gordon
On Mon, Mar 15, 2010 at 2:14 PM, Larry Garfield wrote: > The challenge of "never use extend" is that simply wrapping classes in > decorators only goes so far. You can't always maintain interface > compliance > if you're nesting decorators, and if you're overriding only one out of a > dozen > or t

Re: [PHP-DEV] Supporting ArrayObject in array_* functions

2009-07-30 Thread Nate Gordon
2009/7/30 Alexey Zakhlestin > 2009/7/30 Johannes Schlüter : > > On Thu, 2009-07-30 at 00:08 -0300, Guilherme Blanco wrote: > >> What do you think about the possibility to support ArrayObject > >> instances in array_* functions? > >> If you all agreed on this, I can definately help to complete the

Re: [PHP-DEV] New function proposal: spl_class_vars / params / contents

2009-01-21 Thread Nate Gordon
My personal favorite use of Reflection is Class Factories. While this could be done with: It seems a little blunt to me, it also doesn't support having a variable number of arguments to the constructor. I've seen some pretty egregious hacks to make the above code work with a variable number of

Re: [PHP-DEV] Namespaces and \t, \r, \n, \0 etc.

2008-10-28 Thread Nate Gordon
On Tue, Oct 28, 2008 at 2:30 PM, Josh <[EMAIL PROTECTED]> wrote: > What about just silently converting newline to '\n' and tab to '\t', > etc. I mean if you cant put those characters in a string, who will > notice? or better, just use a single-quoted string. > Random programmer here, but I really

Re: [PHP-DEV] RFC: Dropping Namespace

2007-12-05 Thread Nate Gordon
On Dec 5, 2007 12:04 PM, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > collision problems that class naming and function naming have. Only > > Only if you insist on *not* using the namespaces to solve collision > problems. For the 1001th time - you can not expect to put all names into > global

Re: [PHP-DEV] RFC: Dropping Namespace

2007-12-04 Thread Nate Gordon
On Dec 4, 2007 10:36 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-12-04 at 22:26 -0600, Larry Garfield wrote: > > On Tuesday 04 December 2007, Derick Rethans wrote: > > > > > 4. What is wrong with simple prefixes in the first place? Both PEAR_*, > > >Zend_*, ezc*, and ezp* ar

Re: [PHP-DEV] Safe mode being removed in PHP6?

2007-11-05 Thread Nate Gordon
> > > Unless there is some other way in PHP of restricting where you can run > > programs from (can't find any), > > Why PHP needs to do that ? isnt that part of OS level security ? There are those of us in shared environments where scripts can't be run as a single user because the content is ow

Re: [PHP-DEV] Safe mode being removed in PHP6?

2007-08-26 Thread Nate Gordon
On 8/26/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > First make sure you understand what safe_mode does, and doesn't do, > and just how lame it is at what it tried to do, and fails to do, and > simply cannot do. I am all for the removal of safe mode in php. I use safe_mode now, but I patch it