[PHP-DEV] Re: RFC array functions

2006-05-27 Thread Greg Beaver
Marcus Boerger wrote: > Hello internals, > > i'd like to add two array functions: > > - bool array_has_more(array $array) I don't like "array_has_more" array_at_end() would work better for me since the function that makes it evaluate as true is: end($array); Greg P.S. sorry if this double

[PHP-DEV] Re: RFC array functions

2006-05-27 Thread Greg Beaver
Marcus Boerger wrote: > Hello internals, > > i'd like to add two array functions: > > - bool array_has_more(array $array) I don't like "array_has_more" array_at_end() would work better for me since the function that makes it evaluate as true is: end($array); Greg -- PHP Internals - PHP R

Re: [PHP-DEV] RFC array functions

2006-05-27 Thread bertrand Gugger
Matthew C. Kavanagh wrote: Pierre wrote: On 5/27/06, Marcus Boerger <[EMAIL PROTECTED]> wrote: - bool array(array $array) cehcks whether arra position is valid (e.g. like "key($array) !== NULL") I don't understand this one. I think you have to listen to psychedelic music and take a

Re: [PHP-DEV] tsrm_shutdown() and the CLI SAPI

2006-05-27 Thread Steph Fox
Thanks Xuefer... This bug's been extant for a long time, and I only found out why when I spent two days/nights trying to track down its history and mechanics. It's a pig. - Steph - Original Message - From: "Xuefer" <[EMAIL PROTECTED]> To: "Steph Fox" <[EMAIL PROTECTED]> Cc: "intern

Re: [PHP-DEV] tsrm_shutdown() and the CLI SAPI

2006-05-27 Thread Xuefer
i can confirm this on other extension. something like this grep free_id */*.c -B1 -A3 mbstring/mbstring.c-#ifdef ZTS mbstring/mbstring.c:ts_free_id(mbstring_globals_id); mbstring/mbstring.c-#else mbstring/mbstring.c-_php_mb_globals_dtor(&mbstring_globals TSRMLS_CC); mbstring/mbstring.c-#en

Re: [PHP-DEV] RFC array functions

2006-05-27 Thread Pierre
On Sat, 27 May 2006 23:52:41 +0200 [EMAIL PROTECTED] (Marcus Boerger) wrote: > Hello Matthew, > > Saturday, May 27, 2006, 11:36:16 PM, you wrote: > > > Pierre wrote: > >> On 5/27/06, Marcus Boerger <[EMAIL PROTECTED]> wrote: > >>> - bool array(array $array) > >>> > >>> cehcks whether arra posi

Re: [PHP-DEV] planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0?

2006-05-27 Thread Marcus Boerger
Hello Andi, i for one think it might be a solution to at least lower the pain of version differences. Which is the reason why i liked the proposal from the beginning and took mentorship. best regards marcus Sunday, May 28, 2006, 2:39:21 AM, you wrote: > I think a preprocessor is one of the wo

Re: [PHP-DEV] planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0?

2006-05-27 Thread Andi Gutmans
I think a preprocessor is one of the worst things that can ever happen to PHP. It can be done as a Summer of Code project for academic reasons but I would never be in favor of adding it to PHP. I think there's very little use in a language like PHP and it will lead to the same maintenance/debug

Re: [PHP-DEV] fatal static call in php 6.0?

2006-05-27 Thread Marcus Boerger
Hello Todd, code like this is actually exactly what i mean. It is completley broken design, maybe not for you of course. But according to any oo guideline. But that's a different story. The real problem is that this behavior is based on or worked around some behavior in the engine that is sooner

Re: [PHP-DEV] fatal static call in php 6.0?

2006-05-27 Thread Daniel Convissor
On Wed, May 24, 2006 at 11:56:06AM -0700, Todd Ruth wrote: > class TheParent { > public $x = 3; > } > class UglyUncle { > function f() { > $this->x = 5; > } > } > class Child extends TheParent { > function f() { > UglyUncle::f(); > } > } > $c = new Child(); > v

Re: [PHP-DEV] RFC array functions

2006-05-27 Thread Marcus Boerger
Hello Jared, UPS i see my failure in writing. I meant array_valid($array) of course :-) i have always been better in writing patches then telling tales. best regards marcus >> - bool array(array $array) >> >> cehcks whether arra position is valid (e.g. like >> "key($array) !== NULL") >

Re: [PHP-DEV] RFC array functions

2006-05-27 Thread Marcus Boerger
Hello Matthew, Saturday, May 27, 2006, 11:36:16 PM, you wrote: > Pierre wrote: >> On 5/27/06, Marcus Boerger <[EMAIL PROTECTED]> wrote: >>> - bool array(array $array) >>> >>> cehcks whether arra position is valid (e.g. like "key($array) !== >>> NULL") >> >> I don't understand this one. >> >

RE: [PHP-DEV] RFC array functions

2006-05-27 Thread Jared Williams
> -Original Message- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: 27 May 2006 22:28 > To: internals@lists.php.net > Subject: [PHP-DEV] RFC array functions > > Hello internals, > > i'd like to add two array functions: > > - bool array_has_more(array $array) > > checks

Re: [PHP-DEV] RFC array functions

2006-05-27 Thread Michael Wallner
Pierre wrote: On 5/27/06, Marcus Boerger <[EMAIL PROTECTED]> wrote: - bool array(array $array) cehcks whether arra position is valid (e.g. like "key($array) !== NULL") I don't understand this one. I think he meant valid() or array_valid(). -- Michael -- PHP Internals - PHP Runtime D

Re: [PHP-DEV] RFC array functions

2006-05-27 Thread Matthew C. Kavanagh
Pierre wrote: On 5/27/06, Marcus Boerger <[EMAIL PROTECTED]> wrote: - bool array(array $array) cehcks whether arra position is valid (e.g. like "key($array) !== NULL") I don't understand this one. I think you have to listen to psychedelic music and take a hit of LSD first. -- PHP Inter

Re: [PHP-DEV] RFC array functions

2006-05-27 Thread Pierre
On 5/27/06, Marcus Boerger <[EMAIL PROTECTED]> wrote: Hello internals, i'd like to add two array functions: - bool array_has_more(array $array) checks whether $array has more elements after current position or if array is at last position, preferable working inside foreach a big +1 :)

[PHP-DEV] RFC array functions

2006-05-27 Thread Marcus Boerger
Hello internals, i'd like to add two array functions: - bool array_has_more(array $array) checks whether $array has more elements after current position or if array is at last position, preferable working inside foreach - bool array(array $array) cehcks whether arra position is valid (

[PHP-DEV] MFHing zend_fcall_info_*() to 5.2

2006-05-27 Thread Marcus Boerger
Hello Andi, Zeev, Ilia, the attached patch adds three new functions that make calling functions a lot easier - at least for me in SPL. And it also does a few things correct which are probably overseen easily. The addition works in HEAD already and paases all memcheck tests idid so far. Best reg

[PHP-DEV] tsrm_shutdown() and the CLI SAPI

2006-05-27 Thread Steph Fox
Under CLI ZTS build, when loading a PHP-GTK 2 .dll built against anything this side of PHP 5.1.2 release, I'm seeing an 'access violation' crash on reaching: if (resource_types_table && !resource_types_table[j].done && resource_types_table[j].dtor) { resource_types_table[j].dtor

Re: [PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Marcus Boerger
Hello Pierre, everything will be only. At least on code.google.com in a bit if you don't let me continue to do th eadminstration part... Saturday, May 27, 2006, 6:01:11 PM, you wrote: > On 5/27/06, Wez Furlong <[EMAIL PROTECTED]> wrote: >> The whole point of the mentor is to streamline the pro

Re: [PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Pierre
On 5/27/06, Wez Furlong <[EMAIL PROTECTED]> wrote: The mentors have already volunteered their time to guide the SoC folks through the process; we should back them up and let them get on with it; there is little point in wasting our collective time in bickering over the fine print. Excuse me to

Re: [PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Wez Furlong
The mentors have already volunteered their time to guide the SoC folks through the process; we should back them up and let them get on with it; there is little point in wasting our collective time in bickering over the fine print. --Wez On 5/27/06, Pierre <[EMAIL PROTECTED]> wrote: On 5/27/06,

Re: [PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Pierre
On 5/27/06, Wez Furlong <[EMAIL PROTECTED]> wrote: The whole point of the mentor is to streamline the process of getting new blood into a project; I see no reason to make it more difficult by being too rigid. It is not being rigid to ask some more transparency. We had reasons to define these si

Re: [PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Wez Furlong
The whole point of the mentor is to streamline the process of getting new blood into a project; I see no reason to make it more difficult by being too rigid. --Wez. On 5/27/06, Pierre <[EMAIL PROTECTED]> wrote: On 5/27/06, Wez Furlong <[EMAIL PROTECTED]> wrote: > Of course, if a upstanding memb

Re: [PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Pierre
On 5/27/06, Wez Furlong <[EMAIL PROTECTED]> wrote: Of course, if a upstanding member of our community can vouch for someone then we have no problem with opening up an account. This is precisely what the mentor is doing here. I've opened up PECL and CVS accounts for Pavlo, but granted no karma y

Re: [PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Marcus Boerger
Hello Wez, thanks a lot. Special access has to be discussed separately of course as with any body else. best regards marcus Saturday, May 27, 2006, 5:39:59 PM, you wrote: > Of course, if a upstanding member of our community can vouch for > someone then we have no problem with opening up an ac

Re: [PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Wez Furlong
Of course, if a upstanding member of our community can vouch for someone then we have no problem with opening up an account. This is precisely what the mentor is doing here. I've opened up PECL and CVS accounts for Pavlo, but granted no karma yet. Marcus (and other mentors): where CVS access is

Re: [PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Antony Dovgal
On 27.05.2006 19:16, Pierre wrote: On 5/27/06, Marcus Boerger <[EMAIL PROTECTED]> wrote: Hello Pierre, you don't mind if the Mentors take care of their students do you? Let me rephrase. SoC or not, Mr. Boerger or not, it does not matter. The base principle to get a PECL/PEAR/PHP.net accoun

Re: [PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Pierre
On 5/27/06, Marcus Boerger <[EMAIL PROTECTED]> wrote: Hello Pierre, you don't mind if the Mentors take care of their students do you? Let me rephrase. SoC or not, Mr. Boerger or not, it does not matter. The base principle to get a PECL/PEAR/PHP.net account and cvs access is to: - Introduce

Re: [PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Marcus Boerger
Hello Pierre, you don't mind if the Mentors take care of their students do you? Saturday, May 27, 2006, 5:12:00 PM, you wrote: > On 5/27/06, Pavlo Shelyazhenko <[EMAIL PROTECTED]> wrote: >> To develop the Summer of Code project - PHP Macro Preprocessor > Once there is some code to see, we wil

Re: [PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Pierre
On 5/27/06, Pavlo Shelyazhenko <[EMAIL PROTECTED]> wrote: To develop the Summer of Code project - PHP Macro Preprocessor Once there is some code to see, we will create your accounts and give you CVS access. Also we should name your project before the first commit. --Pierre -- PHP Internals -

[PHP-DEV] CVS Account Request: merlin

2006-05-27 Thread Pavlo Shelyazhenko
To develop the Summer of Code project - PHP Macro Preprocessor -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0?

2006-05-27 Thread Marcus Boerger
Hello guys, just a short notice from google. There is a rule that disallows students from working together. I didn't remember having seen it or heared of it on the administrators list but if google Chris or Greg from Google say so we can only respect that rule. In fact Chris said that the work o