Re: [PHP-DEV] Anonymous Function

2008-11-21 Thread Kalle Sommer Nielsen
Ho 2008/11/21 Kenan R Sulayman <[EMAIL PROTECTED]>: > Well, then excuse moi! > I did not realize the power of php 5.3, yet. Its still not documented yet, but if you wanna read more about Closoures in PHP then its RFC might be worth reading: http://wiki.php.net/rfc/closures > > Thanks, > -- > (c)

Re: [PHP-DEV] array_key_exists BC break

2008-11-21 Thread Stanislav Malyshev
Hi! . end . prev . next . reset . current . key . array_key_exists . array_unique . array_flip . array_walk_recursive . array_walk . uksort . uasort . usort . natcasesort . natsort Attached is the patch that should restore BC for all those functions except sorts and array_unique/array_flip (t

Re: [PHP-DEV] Anonymous Function

2008-11-21 Thread Kenan R Sulayman
Well, then excuse moi! I did not realize the power of php 5.3, yet. Thanks, -- (c) Kenan Sulayman Freelance Designer and Programmer Life's Live Poetry

Re: [PHP-DEV] Anonymous Function

2008-11-21 Thread James Logsdon
PHP 5.3 has anonymous functions. James Logsdon On Fri, Nov 21, 2008 at 2:27 PM, Kenan R Sulayman <[EMAIL PROTECTED]>wrote: > Hey out there! > I've got a maybe simple question: > Where the point of not implementing anonymous functions in php alike > javascript? > > Par example: > As normally use

[PHP-DEV] Anonymous Function

2008-11-21 Thread Kenan R Sulayman
Hey out there! I've got a maybe simple question: Where the point of not implementing anonymous functions in php alike javascript? Par example: As normally used: Suggestion: > More Simple, have a better point of view and a bit easier. < Your, -- (c) Kenan Sulayman Freelance Designer and Program

Re: [PHP-DEV] array_key_exists BC break

2008-11-21 Thread Stan Vassilev | FM
Hi! As a PHP user who'd want to migrate to 5.3 sooner than later, and uses those heavily, I'd rather not see BC breaks in a point release, even though just like you I see some WTF-s in the old behaviour. You heavily use natsort on objects? What for? If natsort covered the entirety of this B

Re: [PHP-DEV] array_key_exists BC break

2008-11-21 Thread Stanislav Malyshev
Hi! As a PHP user who'd want to migrate to 5.3 sooner than later, and uses those heavily, I'd rather not see BC breaks in a point release, even though just like you I see some WTF-s in the old behaviour. You heavily use natsort on objects? What for? -- Stanislav Malyshev, Zend Software Archit

[PHP-DEV] Proposal for "nameof" functionality without new keyword...

2008-11-21 Thread Stan Vassilev | FM
Hi, Earlier I proposed this construct which fell on deaf ears, maybe since it means a new keyword "nameof": namespace Foo\Bar; class Baz {} $name = nameof Baz; // 'Foo\Bar\Baz' The same expansion to FQN happens for imports/aliases with "use XXX". I want to suggest an alternative approach whic

Re: [PHP-DEV] array_key_exists BC break

2008-11-21 Thread Stan Vassilev | FM
Hi! Hmm, I really think we should simply maintain BC 100% but using the new BC 100% makes little sense - why usort can accept object but sort can't? And functions like next/prev are useless with many types of objects. Especialy think this through for the next bigger release (presumably PHP

Re: [PHP-DEV] array_key_exists BC break

2008-11-21 Thread Sean Coates
Hmm, I really think we should simply maintain BC 100% but using the new parameter parsing API and then really think this through for the next bigger release (presumably PHP 6.0) and come up with a set of interfaces for objects that allow them to more sensibly work with functions. FWIW, I

Re: [PHP-DEV] array_key_exists BC break

2008-11-21 Thread Stanislav Malyshev
Hi! I am just worried that we do not have enough time to really think this through all the way. So in the end we might end up having to break BC once more in PHP 6.0. Also its not like we are fixing these bugs because users were submitting bug tickets about this (or have they?). Well, some o

Re: [PHP-DEV] array_key_exists BC break

2008-11-21 Thread Lukas Kahwe Smith
On 21.11.2008, at 09:54, Stanislav Malyshev wrote: bigger release (presumably PHP 6.0) and come up with a set of interfaces for objects that allow them to more sensibly work with functions. We already have set of interfaces. They aren't just used consistently. And that's a bug. We should

Re: [PHP-DEV] array_key_exists BC break

2008-11-21 Thread Stanislav Malyshev
Hi! Hmm, I really think we should simply maintain BC 100% but using the new BC 100% makes little sense - why usort can accept object but sort can't? And functions like next/prev are useless with many types of objects. Especialy think this through for the next bigger release (presumably PHP

Re: [PHP-DEV] array_key_exists BC break

2008-11-21 Thread Lukas Kahwe Smith
Hi, Hmm, I really think we should simply maintain BC 100% but using the new parameter parsing API and then really think this through for the next bigger release (presumably PHP 6.0) and come up with a set of interfaces for objects that allow them to more sensibly work with functions. re