Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-19 Thread troels knak-nielsen
On Thu, Jun 19, 2008 at 8:44 AM, Andi Gutmans <[EMAIL PROTECTED]> wrote: >> >> - In PHP 5, object storage is resources done right. I don't think >> >> we should be using the resource infrastructure for this >> >> implementation and would prefer to use the object one. It's better. >> >> I suggest to

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-19 Thread Dmitry Stogov
Hi Christian, I took a look into your patch and found it too difficult. So I implemented another patch (attached) which is based on your ideas. >From user's level of view it does exactly the same except for "lexical" variables definition. I don't use any new reserver word because every new reserv

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Steph Fox
I'd prefer a run-tests.php option that sets the timeout limit in seconds. Nice idea, but I'm not sure it's achievable under CLI. - Steph -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Steph Fox
Hi Travis, All it does is adds another option, -x, to run-tests.php. This sets an environmental variable which can then be checked for in the SKIPIF section of very slow-running tests. How do you specify that "test A is slow"? Is there a certain skipif message you include, or...? Yep.

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Steph Fox
Hey Stas, +$environment['EXEMPT_SLOW_TESTS'] = 1; Maybe "SKIP_SLOW_TESTS"? If it's checked in skip section... :) Otherwise - good idea! You can tell I'm reading my mail backwards today... I used 'EXEMPT' because the option is 'x' and I wanted it to be easy to remember.

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Nuno Lopes
I'd prefer a run-tests.php option that sets the timeout limit in seconds. Nice idea, but I'm not sure it's achievable under CLI. Yes, it is. Check the system_with_timeout() function in the run-tests.php script. There you've the timeout hardcoded ('$leak_check ? 300 : 60'). You would just nee

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Steph Fox
Yes, it is. Check the system_with_timeout() function in the run-tests.php script. There you've the timeout hardcoded ('$leak_check ? 300 : 60'). You would just need to make it configurable by some environment var. I already tried hard-coding both tv_sec and tv_usec to 0 and it makes no diffe

[PHP-DEV] Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Lester Caine
Just trying to work out why my footprint was bigger than I expected running the windows 5.3.0-dev and I've got mysqlnd installed when I don't need it. How do I get rid of it or am I going have to compile my own builds in future? -- Lester Caine - G8HFL - Contact - ht

[PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Elizabeth M Smith
Lester Caine wrote: > Just trying to work out why my footprint was bigger than I expected > running the windows 5.3.0-dev and I've got mysqlnd installed when I > don't need it. How do I get rid of it or am I going have to compile my > own builds in future? > It's on by default on windows, so you'l

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Lester Caine
Elizabeth M Smith wrote: Lester Caine wrote: Just trying to work out why my footprint was bigger than I expected running the windows 5.3.0-dev and I've got mysqlnd installed when I don't need it. How do I get rid of it or am I going have to compile my own builds in future? It's on by default o

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Pierre Joye
On Thu, Jun 19, 2008 at 2:39 PM, Lester Caine <[EMAIL PROTECTED]> wrote: > Elizabeth M Smith wrote: >> >> Lester Caine wrote: >>> >>> Just trying to work out why my footprint was bigger than I expected >>> running the windows 5.3.0-dev and I've got mysqlnd installed when I >>> don't need it. How do

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Steph Fox
Any particular reason why it's been changed - I can't see anything I need it for. The other million or so who do. - Steph -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Lester Caine
Pierre Joye wrote: On Thu, Jun 19, 2008 at 2:39 PM, Lester Caine <[EMAIL PROTECTED]> wrote: Elizabeth M Smith wrote: Lester Caine wrote: Just trying to work out why my footprint was bigger than I expected running the windows 5.3.0-dev and I've got mysqlnd installed when I don't need it. How do

[PHP-DEV] Overloading

2008-06-19 Thread Tinsley, Mark
What about the addition of overloading for PHP 6? I am not totally up to date on the developments of the parameter type hints. I briefly read the meeting minutes for PHP 6. What about with the type hints we have now? class moo { public static function foo(FooClass $FooVar) { //

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Travis Swicegood
On Jun 19, 2008, at 7:07 AM, Steph Fox wrote: Yes, it is. Check the system_with_timeout() function in the run- tests.php script. There you've the timeout hardcoded ('$leak_check ? 300 : 60'). You would just need to make it configurable by some environment var. I already tried hard-coding b

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Steph Fox
Come on. Mysql has been always been enabled by default. *NO* Mysql was REMOVED as the default in 5.0.0 after lots of requests from those of us who don't want it loaded. There was a democratic decision to remove it. *NO*. MySQL was no longer bundled from 5.0.0 because MySQL AB went GPL on

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Nuno Lopes
Yes, it is. Check the system_with_timeout() function in the run-tests.php script. There you've the timeout hardcoded ('$leak_check ? 300 : 60'). You would just need to make it configurable by some environment var. I already tried hard-coding both tv_sec and tv_usec to 0 and it makes no differe

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Steph Fox
I can add this to PHPT - it uses a timeout based on reading the open proc. That's what the current run-tests does too. The problem is it isn't reliable cross-platform - we don't have any control over the select() function used by stream_select() except under Windows, where it doesn't work (I

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Steph Fox
uhm, file a bug report then. It was supposed to work.. There are some open on this already. Also - Windows is the only environment where we actually have control over whether it works or not. Everything else relies on a system call. - Steph -- PHP Internals - PHP Runtime Development Ma

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Lester Caine
Steph Fox wrote: Come on. Mysql has been always been enabled by default. *NO* Mysql was REMOVED as the default in 5.0.0 after lots of requests from those of us who don't want it loaded. There was a democratic decision to remove it. *NO*. MySQL was no longer bundled from 5.0.0 because MySQ

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Travis Swicegood
On Jun 19, 2008, at 8:26 AM, Steph Fox wrote: I can add this to PHPT - it uses a timeout based on reading the open proc. That's what the current run-tests does too. The problem is it isn't reliable cross-platform - we don't have any control over the select () function used by stream_select(

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-19 Thread Federico Lebron
Hi Dmitry, As a lowly userspace developer, the | syntax is a bit confusing. If I see $x, $y | $a, $b, $c, my brain parses it as ($a, ($y | $a), $b, $c), since , has lower precedence than |. I'd think "syntax error", then "logical OR", but never "this refers to the variables I want imported to

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Steph Fox
There's nothing wrong with that approach. I'm trying to find something that addresses the problem (i.e., "how can I not run tests that are going to take a long time to run?"), while providing enough flexibility to answer other problems (i.e., "how can I skip X tests that I don't care abo

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Steph Fox
MySQL was replaced by SQLite as the default database in the very first release of 5.0.0 http://www.php.net/ChangeLog-5.php#5.0.0b1 Yes. The PRIMARY reason was because of the number of non MySQL users who requested that. No. Will you please stop trying to rewrite history. There was an outcr

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Christopher Jones
Steph Fox wrote: > So what was wrong with the simple skipif and env var approach again? The problem is it only skips the test! I'd like my slow tests to run (this generally occurs when I use a very remote DB). I end up manually increasing the timeout in stream_select() in run-tests.sh. This

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Pierre Joye
On Thu, Jun 19, 2008 at 2:49 PM, Lester Caine <[EMAIL PROTECTED]> wrote: > Pierre Joye wrote: >> >> On Thu, Jun 19, 2008 at 2:39 PM, Lester Caine <[EMAIL PROTECTED]> wrote: >>> >>> Elizabeth M Smith wrote: Lester Caine wrote: > > Just trying to work out why my footprint was bigger

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-19 Thread Dmitry Stogov
I don't like "lexical" keyword, because it can be used anywhere in function (e.q. inside "if" or loop statement), however lexical variables must be the part of lambda function definition. We can think about some better syntax, like function ($x, $y) ($a, $b, $c) {}; function ($x, $y) [$a, $b,

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Steph Fox
Hi Chris, If we make the timeout value adjustable, you can set it to a low value so your slow tests are quickly aborted, and I can set it to a high value so my tests are run. It's easily enough done, it's just a separate issue. I can easily put a workaround in the Windows version of select.c

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Steph Fox
I was not clear. Mysql has been (and still is) always enabled and available by default in our Windows binaries. Not now, and not for a very long time. Agreed, but I do not maintain mysqlnd (and not willing to :), can you open a bug about that please? It's not a bug. It was a democratic dec

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Lester Caine
Steph Fox wrote: MySQL was replaced by SQLite as the default database in the very first release of 5.0.0 http://www.php.net/ChangeLog-5.php#5.0.0b1 Yes. The PRIMARY reason was because of the number of non MySQL users who requested that. No. Will you please stop trying to rewrite history.

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Travis Swicegood
On Jun 19, 2008, at 9:03 AM, Steph Fox wrote: There's nothing wrong with that approach. I'm trying to find something that addresses the problem (i.e., "how can I not run tests that are going to take a long time to run?"), while providing enough flexibility to answer other problems (i.

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Lester Caine
Steph Fox wrote: I was not clear. Mysql has been (and still is) always enabled and available by default in our Windows binaries. Not now, and not for a very long time. Agreed, but I do not maintain mysqlnd (and not willing to :), can you open a bug about that please? It's not a bug. It wa

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-19 Thread troels knak-nielsen
On Thu, Jun 19, 2008 at 4:37 PM, Dmitry Stogov <[EMAIL PROTECTED]> wrote: > I don't like "lexical" keyword, because it can be used anywhere in function > (e.q. inside "if" or loop statement), however lexical variables must be the That does sound wtf-y, indeed. Is that allowed with the global keyw

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Steph Fox
In fact I can see YOU commenting that it should not be enabled by default! But that was 2007 - I see no agreement that it should be later ? mysqlnd needs to be built-in statically. I will be opening a bug - if only to flag the need for a switch to disable it if it's not required. We have t

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-19 Thread Rodrigo Saboya
Dmitry Stogov escreveu: I don't like "lexical" keyword, because it can be used anywhere in function (e.q. inside "if" or loop statement), however lexical variables must be the part of lambda function definition. I agree with Dmitry: Lexical variables belong to lambda function definition. It

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Pierre Joye
On Thu, Jun 19, 2008 at 4:55 PM, Steph Fox <[EMAIL PROTECTED]> wrote: > >> I was not clear. Mysql has been (and still is) always enabled and >> available by default in our Windows binaries. > > Not now, and not for a very long time. Can we stop with the nitpicking? mysql has been available. >> Ag

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Christopher Jones
Steph Fox wrote: So 'skipif' suits my needs better, but not yours. I'll add both. Thanks Steph. Chris -- Christopher Jones, Oracle Email: [EMAIL PROTECTED]Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/ Free PHP Book: http://tinyurl.com/f8jad -- PHP Internals - PHP Runtime

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Steph Fox
I was not clear. Mysql has been (and still is) always enabled and available by default in our Windows binaries. Not now, and not for a very long time. Can we stop with the nitpicking? mysql has been available. To paraphrase Meatloaf, one out of three ain't bad :) Agreed, but I do not mai

Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value)

2008-06-19 Thread Saulo Vallory
What if by type hint a parameter, php automatically tries to convert the argument into that type and throws an exception ONLY if it couldn't be done? for example: function concat(string $a, string $b) { return $a.$b; } I can do: concat(1,'1'); concat(2.5,' pigs'); concat(new ConvertibleToS

Re: [PHP-DEV] Overloading

2008-06-19 Thread Saulo Vallory
I'm developing a PHP framework and had the same issue sometimes... I think it was already discussed in the list, did you searched the archives? Saulo On Thu, Jun 19, 2008 at 9:58 AM, Tinsley, Mark <[EMAIL PROTECTED]> wrote: > What about the addition of overloading for PHP 6? > > I am not totally

Re: [PHP-DEV] Re: Disable mysqlnd in PHP5.3.0

2008-06-19 Thread Elizabeth M Smith
Steph Fox wrote: > > Can you build it as shared? I can't actually get --disable-all to work > here, it keeps shouting about objects-out-dir being 'no'. > > - Steph > Ah, shoot, the disable-all thing... that's a configure bug steph, and I have a patch to fix it sitting around here somewhere

Re: [PHP-DEV] [PATCH] make it possible to skip very slow tests

2008-06-19 Thread Greg Beaver
Travis Swicegood wrote: On Jun 19, 2008, at 9:03 AM, Steph Fox wrote: There's nothing wrong with that approach. I'm trying to find something that addresses the problem (i.e., "how can I not run tests that are going to take a long time to run?"), while providing enough flexibility to ans

[PHP-DEV] Fw: [PHP-CVS] cvs: php-src(PHP_5_3) /win32/build confutils.js

2008-06-19 Thread Steph Fox
Hey Jani, You can run but you can't hide ;) I'm assuming this is down to you, since you moved ereg. I won't even pretend to understand browscap. Please remember to kill this build exclusion if/when you fix it? Thanks, - Steph - Original Message - From: "Steph Fox" <[EMAIL PROTE

Re: [PHP-DEV] [PATCH] unix path separators in spl

2008-06-19 Thread Stanislav Malyshev
Hi! The attached patch implements spl_unixify_path_separators(). If it's I'm afraid that automatically applying slash conversions to all results returned by SPL file functions - if that's what this patch does - may be unwanted. This way SPL functions and regular file functions would return

Re: [PHP-DEV] deprecation status of $str{42} versus $str[42]

2008-06-19 Thread Andrei Zmievski
That's why there is TextIterator. And it's also much faster (in PHP 6) than iterating through string using indexes. -Andrei Stefan Walk wrote: On Tuesday 17 June 2008 08:27:37 Arvids Godjuks wrote: 2008/6/16 Edward Z. Yang <[EMAIL PROTECTED]>: PHP userland code may not treat strings as first

Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value)

2008-06-19 Thread Timm Friebe
Hi, I like this generally, but cannot live with the BC issues raised. Introducing all type names as keywords will make "class Object", "class Integer" and so on give a syntax error. That's actually not true, the patch does not introduce new keywords. Hrm, the Wiki states it does: http://w

Re: [PHP-DEV] extensions status, to move to pecl or to drop

2008-06-19 Thread Timm Friebe
Hi, been busy again at work, sorry for the late answer. I can look into setting up a "cruise-control"-like infrastructure on our dev-machines that'll run these periodically. Thanks for the offer, that would be very helpful. Is it possible to have it for windows as well? It could also help if

Re: [PHP-DEV] [PATCH] unix path separators in spl

2008-06-19 Thread Stanislav Malyshev
Hi! On the other hand, the only code likely to be broken would be platform-specific code written for Windows boxes - how much of that is likely to be out there? Another point is that, although Windows *writes* Any amount, but I don't see why it would break only windows-specific code. If I u

Re: [PHP-DEV] [PATCH] unix path separators in spl

2008-06-19 Thread Steph Fox
Any amount, but I don't see why it would break only windows-specific code. If I use any other function to get filenames, and/or use PATH_SEPARATOR to compose names, and then use these names in the same context as those converting SPL function, I'd get different names on Windows even if my app

Re: [PHP-DEV] [PATCH] unix path separators in spl

2008-06-19 Thread Steph Fox
The attached patch implements spl_unixify_path_separators(). If it's I'm afraid that automatically applying slash conversions to all results returned by SPL file functions - if that's what this patch does - may be unwanted. This way SPL functions and regular file functions would return diff

Re: [PHP-DEV] Selectable error messages

2008-06-19 Thread Marcus Boerger
Hello Lester, Wednesday, June 18, 2008, 9:14:52 AM, you wrote: > OK - I've got PHP5.3.0-dev up at the moment in order to test the Firebird > stuff, so display_errors is on. I need it on anyway while testing code. > The 'problem' I am having is that of cause none of the other PHP stuff I'm > us

Re: [PHP-DEV] [PATCH] unix path separators in spl

2008-06-19 Thread Stanislav Malyshev
Hi! Windows even if my application was written in most generic way. Do I miss something? Doesn't PATH_SEPARATOR use DEFAULT_SLASH? Should be DIRECTORY_SEPARATOR and it's "\" on windows (PATH_SEPARATOR is ";" ). Do you propose to change it to "/"? Path comparison is important. I thought

Re: [PHP-DEV] [PATCH] unix path separators in spl

2008-06-19 Thread Marcus Boerger
Hello Steph, how about having this as an option inside the SPL classes that gets turned on by Phar automatically? Inside SPL we could have it as a user set-only flag. marcus Wednesday, June 18, 2008, 10:28:40 PM, you wrote: > Index: ext/spl/spl_directory.c > ==

Re: [PHP-DEV] Selectable error messages

2008-06-19 Thread Pierre Joye
Hi Marcus, On Thu, Jun 19, 2008 at 8:57 PM, Marcus Boerger <[EMAIL PROTECTED]> wrote: > Hello Lester, > > Wednesday, June 18, 2008, 9:14:52 AM, you wrote: > >> OK - I've got PHP5.3.0-dev up at the moment in order to test the Firebird >> stuff, so display_errors is on. I need it on anyway while tes

Re: [PHP-DEV] [PATCH] unix path separators in spl

2008-06-19 Thread Steph Fox
Hi Marcus, how about having this as an option inside the SPL classes that gets turned on by Phar automatically? Inside SPL we could have it as a user set-only flag. You are brilliant. I owe you a beer :) - Steph -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] [PATCH] unix path separators in spl

2008-06-19 Thread Steph Fox
Hi Stas, Doesn't PATH_SEPARATOR use DEFAULT_SLASH? Should be DIRECTORY_SEPARATOR Bleh, must be nearly switching-off time and it's "\" on windows (PATH_SEPARATOR is ";" ). Do you propose to change it to "/"? dirsep_str[0] = DEFAULT_SLASH; dirsep_str[1] = '\0'; REGISTER_STRING_CONSTANT("D

Re: [PHP-DEV] [PATCH] unix path separators in spl

2008-06-19 Thread Stanislav Malyshev
Hi! Fair point. I like Marcus' idea tho'. As long as the default stays the same and doesn't hurt anybody not touching the option - go for it. -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals - PHP

Re: [PHP-DEV] Algorithm Optimizations - string search

2008-06-19 Thread Michal Dziemianko
Hi, I am also sorry for delay - got ill recently and spend a day in bed after night at emergency. I am working on other things now, and hope to post some patches soon. I will create patch for zend_memnstr as you suggest and post it here probably tomorrow. I have some ideas/ implementations/

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-19 Thread Andrei Zmievski
Yes, I would rather put it in 5.4 (or whatever the next version) is and make sure that along with lambdas/closures we have a way of referring to functions/methods as first-class objects. -Andrei Marcus Boerger wrote: Hello Stanislav, nicely put but not in agreement with the PHP world. Firs

[PHP-DEV] cleaning up the functions - any volunteers?

2008-06-19 Thread Stanislav Malyshev
Hi! While we nearing the release of 5.3 (hopefully?), there are many functions in the PHP code which still use old parameter parsing API (zend_get_parameters_ex) instead of the new one (zend_parse_parameters). I have cleaned up Zend engine functions, converting them to the new API, but there

Re: [PHP-DEV] cleaning up the functions - any volunteers?

2008-06-19 Thread Felipe Pena
Hello Em Qui, 2008-06-19 às 16:06 -0700, Stanislav Malyshev escreveu: > Hi! > > While we nearing the release of 5.3 (hopefully?), there are many > functions in the PHP code which still use old parameter parsing API > (zend_get_parameters_ex) instead of the new one (zend_parse_parameters). > Y

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-19 Thread Christian Seiler
Hi Dmitry, First of all: Your patch does really simplify things internally quite a bit - I like it. I have a few issues though: The patch shouldn't affect opcode caches and other extensions as it doesn't change any structures. I don't see a problem in changing structures for either extensions

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-19 Thread Alexander Wagner
First, a comment from haskell-land: http://www.haskell.org/pipermail/haskell-cafe/2008-June/044533.html http://www.haskell.org/pipermail/haskell-cafe/2008-June/thread.html#44379 On Wednesday 18 June 2008, Christian Seiler wrote: > Frankly, I don't really see a problem with using references. It fit

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-19 Thread Stanislav Malyshev
Hi! First, a comment from haskell-land: http://www.haskell.org/pipermail/haskell-cafe/2008-June/044533.html http://www.haskell.org/pipermail/haskell-cafe/2008-June/thread.html#44379 Thanks for the links, very interesting. Even a couple of comments in the thread going beyond "PHP sucks" and re

Re: [PHP-DEV] cleaning up the functions - any volunteers?

2008-06-19 Thread Philip Olson
While we nearing the release of 5.3 (hopefully?), there are many functions in the PHP code which still use old parameter parsing API (zend_get_parameters_ex) instead of the new one (zend_parse_parameters). Yeah, I have noticed... That's also in my TODO. Where is the Felipe fan club signup

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-19 Thread Alexander Wagner
On Friday 20 June 2008, Stanislav Malyshev wrote: > * A closure must be able to call itself recursively (via a > higher-order function typically) > [Check, since you can use variable you assigned closure to inside the > closure, if I understand correctly] This is a matter of implementation rather

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-19 Thread Stanislav Malyshev
Hi! Yes, I would rather put it in 5.4 (or whatever the next version) is and make sure that along with lambdas/closures we have a way of referring to functions/methods as first-class objects. Maybe we could make some object handler so that $object($foo) would work and treat object as "functio