Re: [PHP-DEV] Re: create_function (was: Re: regex operators)

2003-10-15 Thread George Schlossnagle
On Wednesday, October 15, 2003, at 07:32 AM, netcat wrote: I hope one of you have some suggestion that will make create_function more usable. Brought up and shot down historically (check the archives). George -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://w

Re: [PHP-DEV] regex operators

2003-10-15 Thread Kouber Saparev
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote David Sklar ([EMAIL PROTECTED]): > > I was thinking about adding one or two regex-related features to the engine: > > > > 1. "preg_case": this would behave just like case but instead of doing an > > equality c

[PHP-DEV] Re: create_function (was: Re: regex operators)

2003-10-15 Thread netcat
Hartmut Holzgraefe wrote: netcat wrote: i've started to play with a more general way to handle this: switch(mixed data [, callback compare_function]) seems the sanest thing up until now. slighly O.T.: would be and even better if lambda functions were available here http://php.net/create

Re: [PHP-DEV] regex operators

2003-10-15 Thread Stefan Walk
On Tue, Oct 14, 2003 at 11:44:07AM -0700, Rasmus Lerdorf wrote: > We have enough operators folks. Regular expressions, especially since we > have two different varieties of them, are confusing enough as they are. > let's not add to the confusion by obfuscating the syntax around them. Some of t

Re: [PHP-DEV] regex operators

2003-10-15 Thread Andi Gutmans
I suggest we wrap up this topic. As Rasmus said, I don't think there's a chance we'd agree to implement such regex operators (wether the singular or plural versions :) Except for it pushing PHP in Perl's direction of being unreadable it doesn't really give any added value. I don't see how it is

Re: [PHP-DEV] regex operators

2003-10-15 Thread Zeev Suraski
At 20:58 14/10/2003, George Schlossnagle wrote: On Tuesday, October 14, 2003, at 02:44 PM, Rasmus Lerdorf wrote: For example, what would =~ do when you build PHP without PCRE support? Would it simply not work? Would it fall back to Posix-style regex? Why should PCRE-regex get an operator and Pos

[PHP-DEV] CVS Account Request: lyonnet

2003-10-15 Thread Leonard Tache
- php programing - help me to start learn MySQL -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] regex operators

2003-10-15 Thread Hartmut Holzgraefe
netcat wrote: i've started to play with a more general way to handle this: switch(mixed data [, callback compare_function]) seems the sanest thing up until now. slighly O.T.: would be and even better if lambda functions were available here http://php.net/create-function -- Hartmut Holzgr