RE: [PHP-DEV] PHP 6

2010-03-17 Thread Andi Gutmans
> -Original Message- > From: Olivier Hill [mailto:olivier.h...@gmail.com] > Sent: Saturday, March 13, 2010 10:15 AM > To: Derick Rethans > Cc: PHP Developers Mailing List > Subject: Re: [PHP-DEV] PHP 6 > > We need to focus on Unicode more than what some says, whether this > means descoping

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

2010-03-17 Thread Andi Gutmans
> -Original Message- > From: Antony Dovgal [mailto:t...@daylessday.org] > Sent: Wednesday, March 17, 2010 2:25 AM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] PHP 5.4 branch and trunk > > On 03/16/2010 07:13 PM, Derick Rethans wrote: > >> + merge php-fpm branch? > > > > Can't see

Re: [PHP-DEV] Bug # 50755

2010-03-17 Thread Stanley Sufficool
On Mon, Mar 15, 2010 at 8:45 AM, Christopher Jones wrote: > > > Stanley Sufficool wrote: >> I have attached patches for bug # 50755 on bugs.php.net. These also >> cleanup to PDO DBLIB code to have less of a memory footprint and to >> prepare for other feature additions such as multiple rowset supp

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

2010-03-17 Thread Hannes Magnusson
On Tue, Mar 16, 2010 at 22:12, Lukas Kahwe Smith wrote: > > On 16.03.2010, at 19:23, Hannes Magnusson wrote: > >> You didn't even list the mbstring patch.. that was discussed and as >> far as I remember everyone thought it was great idea, just not in a >> stable branch. > > > Is this tone really n

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

2010-03-17 Thread Stefan Marr
Hi: On 13 Mar 2010, at 00:37, Chris Trahey wrote: > Perhaps a new concept in class-based OO programming, I'm not sure. > Depending on your perspective you could call it ancestor overloading (or > upstream overloading) or class underloading. Haven't read the term in this thread yet, so I felt obli

Re: [PHP-DEV] Assign array with __get

2010-03-17 Thread Etienne Kneuss
Hello, On Wed, Mar 17, 2010 at 3:40 PM, mathieu.suen wrote: > Ionut G. Stan wrote: >> >> Hi, >> >> This is interesting and it appears the following change makes the snippet >> work as expected: >> >>    public function &__get($name); > > > I think is that the $this->anArray['bar'] = 4; > > Genera

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

2010-03-17 Thread Chris Trahey
Sorry for duplicate message- mail server fail. Chris Trahey Web Applications Developer Database Administrator College Station I.S.D. On Mar 12, 2010, at 5:37 PM, "Chris Trahey" wrote: Perhaps a new concept in class-based OO programming, I'm not sure. Depending on your perspective you could ca

[PHP-DEV] RFC - "class underloading" -or- "ancestor overloading"

2010-03-17 Thread Chris Trahey
Perhaps a new concept in class-based OO programming, I'm not sure. Depending on your perspective you could call it ancestor overloading (or upstream overloading) or class underloading. We are increasingly developing with the aid of frameworks & libraries. In fact, this idea came from my current pr

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Brian Moon
Update: http://phpbenelux.eu/array_seek-return.patch.txt I've kept the fseek()-style return values (0 when fine, -1 when seek fails) Any reason why you picked that over the (IMO more logical) true/false approach? No, just to keep it similar to fseek(). Either way works for me. I would expect

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Felix De Vliegher
On 17-mrt-2010, at 19:09, Derick Rethans wrote: > On Wed, 17 Mar 2010, Felix De Vliegher wrote: > >> On 17-mrt-2010, at 17:52, Derick Rethans wrote: >> >>> On Wed, 17 Mar 2010, Felix De Vliegher wrote: >>> On 17-mrt-2010, at 17:27, Frederic Hardy wrote: > > Why not use arrayIterat

Re: [PHP-DEV] PHP 6

2010-03-17 Thread Ferenc Kovacs
On Wed, Mar 17, 2010 at 12:23 AM, Geoffrey Sneddon wrote: > > On 12 Mar 2010, at 20:15, Philip Olson wrote: > >> >> On Mar 12, 2010, at 10:46 AM, Stanislav Malyshev wrote: >> >>> Hi! >>> Yeah. We tried it, and it simply didn't pan out (performance, bc, lost interest, ..). >>> >>> I

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Derick Rethans
On Wed, 17 Mar 2010, Felix De Vliegher wrote: > On 17-mrt-2010, at 17:52, Derick Rethans wrote: > > > On Wed, 17 Mar 2010, Felix De Vliegher wrote: > > > >> On 17-mrt-2010, at 17:27, Frederic Hardy wrote: > >>> > >>> Why not use arrayIterator::seek() ? > >> > >> Because the functionality isn't

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Felix De Vliegher
On 17-mrt-2010, at 17:52, Derick Rethans wrote: > On Wed, 17 Mar 2010, Felix De Vliegher wrote: > >> On 17-mrt-2010, at 17:27, Frederic Hardy wrote: >>> >>> Why not use arrayIterator::seek() ? >> >> Because the functionality isn't exactly the same. >> ArrayIterator::seek() only sets the array

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Derick Rethans
On Wed, 17 Mar 2010, Felix De Vliegher wrote: > On 17-mrt-2010, at 17:27, Frederic Hardy wrote: > > > > Why not use arrayIterator::seek() ? > > Because the functionality isn't exactly the same. > ArrayIterator::seek() only sets the array pointer, array_seek would > also return the value + have

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Felix De Vliegher
On 17-mrt-2010, at 17:27, Frederic Hardy wrote: > > Hello Felix ! > > Why not use arrayIterator::seek() ? > > Best regards, > Fred Because the functionality isn't exactly the same. ArrayIterator::seek() only sets the array pointer, array_seek would also return the value + have fseek()-like fu

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Patrick ALLAERT
> Hi Patrick > > That's of course possible, but that would only allow seeking to a relative > position to where the array pointer is at that moment. The functionality also > gets a bit ambiguous by adding an optional parameter. You're not going to the > next or prev position of the array anymore

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Frederic Hardy
2010/3/16 Felix De Vliegher : Hi all I recently needed seek functionality in arrays, and couldn't find it in the regular set of array functions, so I wrote a function for it. (Seek = getting an array value based on the position (or offset, if you want to call it like that), and not the key of

Re: [PHP-DEV] PHP 6

2010-03-17 Thread Geoffrey Sneddon
On 12 Mar 2010, at 20:15, Philip Olson wrote: On Mar 12, 2010, at 10:46 AM, Stanislav Malyshev wrote: Hi! Yeah. We tried it, and it simply didn't pan out (performance, bc, lost interest, ..). I think it is a bit premature to declare the death of Unicode in PHP. Yes, we know there are

Re: [PHP-DEV] Tests repository

2010-03-17 Thread Geoffrey Sneddon
On 12 Mar 2010, at 12:37, Jani Taskinen wrote: On 03/12/2010 12:29 PM, Hannes Magnusson wrote: On Fri, Mar 12, 2010 at 11:18, Jani Taskinen wrote: Having tests in multiple branches is PITA. Hasn't anyone considered that the best way would be to move all tests into their own repository (di

Re: [PHP-DEV] Tests repository

2010-03-17 Thread Geoffrey Sneddon
On 12 Mar 2010, at 20:23, Pierre Joye wrote: On Fri, Mar 12, 2010 at 8:10 PM, Alexey Zakhlestin wrote: On 12.03.2010, at 22:06, Pierre Joye wrote: Many tests fail because they are written for a given platform, or even worst (from a portability point of view), only for a given configurat

Re: [PHP-DEV] Tests repository

2010-03-17 Thread Geoffrey Sneddon
On 12 Mar 2010, at 23:33, Jani Taskinen wrote: 13.3.2010 0:18, Stanislav Malyshev wrote: Hi! There are going to be some technical challenges. Some (maybe a lot) of test will need updates or rewriting. run-tests.php may need more improvements than what is already planned. Knowing this, I

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Felix De Vliegher
On 17-mrt-2010, at 17:00, Patrick ALLAERT wrote: > 2010/3/16 Felix De Vliegher : >> Hi all >> >> I recently needed seek functionality in arrays, and couldn't find it in the >> regular set of array functions, so I wrote a function for it. (Seek = >> getting an array value based on the position (

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Patrick ALLAERT
2010/3/16 Felix De Vliegher : > Hi all > > I recently needed seek functionality in arrays, and couldn't find it in the > regular set of array functions, so I wrote a function for it. (Seek = getting > an array value based on the position (or offset, if you want to call it like > that), and not t

Re: [PHP-DEV] Where are we ACTUALLY on Unicode?

2010-03-17 Thread Lukas Kahwe Smith
Hi, I do not claim to be able to add anything to the discussion content-wise, but organizational-wise (just invented this word for no good reason), it seems that while the brainstorming is useful, I urge people to start structuring their ideas and proposals so that they can reference it later a

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Daniel Convissor
On Wed, Mar 17, 2010 at 04:07:36PM +0100, Pierre Joye wrote: > > Please double check what the patch does, test it, and think again > about this question (hint: pos != key) :) And once again, skimming emails (can you say ADD? I knew you could.) bites me in the tush. :) I just looked at the first

Re: [PHP-DEV] Tests repository

2010-03-17 Thread Derick Rethans
On Fri, 12 Mar 2010, Daniel Convissor wrote: > On Fri, Mar 12, 2010 at 06:53:49PM -0500, Eric Stewart wrote: > > > > If I'm given the choice of those differences being in one file or in three > > different files (5.2, 5.3, 6.0)? I choose one file. Even if that files is > > more complex. It's stil

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

2010-03-17 Thread Derick Rethans
On Tue, 16 Mar 2010, Stanislav Malyshev wrote: > > Does that mean you want to take up a > > - strict RFC-and-after-3months-discussion-before-commit policy > >(i.e. killing the scratching-an-itch spirit of PHP) > > - "I'm going to commit this patch tomorrow" mail to internals@ > >(i.e.

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Derick Rethans
On Wed, 17 Mar 2010, Daniel Convissor wrote: > > $input = array(3, 'bar', 'baz'); > > echo array_seek($input, 2); // returns 'baz' > > echo array_seek($input, 0); // returns 3 > > echo array_seek($input, 5); // returns NULL, emits an out of range warning > > Why waste time calling a function when

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Pierre Joye
On Wed, Mar 17, 2010 at 4:02 PM, Daniel Convissor wrote: > Hi: > >> $input = array(3, 'bar', 'baz'); >> echo array_seek($input, 2); // returns 'baz' >> echo array_seek($input, 0); // returns 3 >> echo array_seek($input, 5); // returns NULL, emits an out of range warning > > Why waste time calling

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Daniel Convissor
Hi: > $input = array(3, 'bar', 'baz'); > echo array_seek($input, 2); // returns 'baz' > echo array_seek($input, 0); // returns 3 > echo array_seek($input, 5); // returns NULL, emits an out of range warning Why waste time calling a function when this can be done right now by acting on the array i

Re: [PHP-DEV] Assign array with __get

2010-03-17 Thread mathieu.suen
Ionut G. Stan wrote: Hi, This is interesting and it appears the following change makes the snippet work as expected: public function &__get($name); I think is that the $this->anArray['bar'] = 4; Generate the following bytcode: 0 FETCH_OBJ_W $0

Re: [PHP-DEV] Assign array with __get

2010-03-17 Thread Ionut G. Stan
Hi, This is interesting and it appears the following change makes the snippet work as expected: public function &__get($name); On 3/17/10 3:55 PM, mathieu.suen wrote: Hi, I came across a strange behavior when using the magic method __get and some instance variable that should be an ar

[PHP-DEV] Assign array with __get

2010-03-17 Thread mathieu.suen
Hi, I came across a strange behavior when using the magic method __get and some instance variable that should be an array. Consider the following example: class A { public function __get($name) { $this->$name = array(); return $this->$name; } public function test(

Re: [PHP-DEV] XML binding & mapping library

2010-03-17 Thread Ян Программист
2010/3/16 Alexey Zakhlestin > you missed it again, because THIS message is directed only to you :-) > make sure proper CC header is set before clicking "Send" > > 2010/3/16 Ян Программист : > > It is a PHP 5 library. In most cases it could be based on simplexml. > > But for better architecture -

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

2010-03-17 Thread Pierre Joye
On Wed, Mar 17, 2010 at 10:25 AM, Antony Dovgal wrote: > On 03/16/2010 07:13 PM, Derick Rethans wrote: >>> + merge php-fpm branch? >> >> Can't see why not. Is there an RFC for this? > > No, there are no RFCs on that. > Just copy sapi/fpm to 5_4 and you've merged it. There is no 5.4 either, trunk

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

2010-03-17 Thread Antony Dovgal
On 03/16/2010 07:13 PM, Derick Rethans wrote: >> + merge php-fpm branch? > > Can't see why not. Is there an RFC for this? No, there are no RFCs on that. Just copy sapi/fpm to 5_4 and you've merged it. -- Wbr, Antony Dovgal --- http://pinba.org - realtime statistics for PHP -- PHP Internals -

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

2010-03-17 Thread Adam Harvey
On 17 March 2010 16:50, Jan Schneider wrote: > How about 5.3.99? A lot of projects use this for pre-releases, but it still > might make sense. I'm wary of sticking with anything starting with 5.3 if we're going to break binary compatibility on the new trunk (which we presumably are) — it undermin

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

2010-03-17 Thread Jan Schneider
Zitat von Johannes Schlüter : On Tue, 2010-03-16 at 22:13 +0100, Lukas Kahwe Smith wrote: On 16.03.2010, at 16:58, Derick Rethans wrote: > Before we add features, they need to be discussed whether we want to > have them. As version name for it I would like to use "trunk-dev" (and > not 5.4-dev