Re: [PHP-DEV] POSIX regex [PATCH]

2007-08-06 Thread Richard Lynch
On Mon, July 30, 2007 2:22 am, Richard Lynch wrote: > On Mon, July 16, 2007 7:47 am, Jani Taskinen wrote: >> Now only places using the POSIX regex functions (ext/ereg/ excluded) >> are >> ext/standard/browscap.c and ext/pgsql/pgsql.c. > > For your review, my first patch (!) along with a php test ca

Re: [PHP-DEV] POSIX regex [PATCH]

2007-07-30 Thread Richard Lynch
On Mon, July 16, 2007 7:47 am, Jani Taskinen wrote: > Now only places using the POSIX regex functions (ext/ereg/ excluded) > are > ext/standard/browscap.c and ext/pgsql/pgsql.c. For your review, my first patch (!) along with a php test case, of course, in a URL/directory structure that should be f

Re: [PHP-DEV] POSIX regex

2007-07-29 Thread Richard Lynch
On Mon, July 16, 2007 7:47 am, Jani Taskinen wrote: > Now only places using the POSIX regex functions (ext/ereg/ excluded) > are > ext/standard/browscap.c and ext/pgsql/pgsql.c. As you may know, I'm working on converting ext/pgsql/pgsql.c to use PCRE instead of POSIX regex. It's actually going f

Re: [PHP-DEV] POSIX regex

2007-07-25 Thread Philip Olson
Also I wonder how a unicode on/off switch will be handled on the documentation side. It would add more permutations in the documentation to have the switch. From my understanding the situation is fairly non trivial already in how to handle all the version dependent differences. Philipp, w

RE: [PHP-DEV] POSIX regex

2007-07-20 Thread Mike Robinson
Jani Taskinen writes: > On Thu, 2007-07-19 at 15:39 -0700, Andrei Zmievski wrote: > > Python did go down that road, but take a look at Python 3000 effort > > and you will see that what they are trying to do is exactly what we > > have: native Unicode strings, without prefixes. > > So maybe we sh

Re: [PHP-DEV] POSIX regex

2007-07-20 Thread Johannes Schlüter
On Fri, 2007-07-20 at 15:46 -0500, Richard Lynch wrote: > u"stuff typed in unicode" to allow creation of Unicode strings in PHP5 > seems like a Good Idea to this naive reader, if it's easy enough to > code that. No, we can't introduce a unicode string type in PHP 5. johannes -- PHP Internals -

Re: [PHP-DEV] POSIX regex

2007-07-20 Thread Richard Lynch
On Thu, July 19, 2007 8:29 am, Jani Taskinen wrote: > On Thu, 2007-07-19 at 15:47 +0300, Tomas Kuliavas wrote: >> > From the low end user perspective I think this would be great >> from >> > another POV. Let's imagine for a second that Wordpress will only >> work >> > with unicode semantics off

Re: [PHP-DEV] POSIX regex

2007-07-20 Thread Richard Lynch
On Fri, July 20, 2007 3:07 am, Alexey Zakhlestin wrote: > On 7/20/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: >> I think on Windows you can do something with the registry per-dir >> too. >> On unix there's no registry though. Maybe we need some generic >> solution >> to this (like for FastCGI

Re: [PHP-DEV] POSIX regex

2007-07-20 Thread Richard Lynch
On Thu, July 19, 2007 7:52 pm, Stanislav Malyshev wrote: >> Yeah I also like that casting better than the "u" > > It's different things. Casting means "create string as binary, then in > runtime cast it to unicode", u"" means "this string is unicode". Oh. I think we're going to have to write some

Re: [PHP-DEV] POSIX regex

2007-07-20 Thread Jani Taskinen
On Thu, 2007-07-19 at 15:39 -0700, Andrei Zmievski wrote: > Python did go down that road, but take a look at Python 3000 effort > and you will see that what they are trying to do is exactly what we > have: native Unicode strings, without prefixes. So maybe we should learn from mistakes other h

Re: [PHP-DEV] POSIX regex

2007-07-20 Thread Pierre
On 7/20/07, Alexey Zakhlestin <[EMAIL PROTECTED]> wrote: On 7/20/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > I think on Windows you can do something with the registry per-dir too. > On unix there's no registry though. Maybe we need some generic solution > to this (like for FastCGI users)?

Re: [PHP-DEV] POSIX regex

2007-07-20 Thread Alexey Zakhlestin
On 7/20/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: I think on Windows you can do something with the registry per-dir too. On unix there's no registry though. Maybe we need some generic solution to this (like for FastCGI users)? Anybody has good ideas? FastCGI users already can have their

RE: [PHP-DEV] POSIX regex

2007-07-20 Thread Derick Rethans
On Wed, 18 Jul 2007, Andi Gutmans wrote: > Functions would work properly with Unicode, but you would explicitly > create Unicode strings e.g. u"foobar". This is not uncommon practice and > many other languages actually go down this route incl. Python and > various versions of C++ frameworks. That

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Wolfgang Stelzhammer
Am 19.07.2007, 14:27 Uhr, schrieb Keryx Web <[EMAIL PROTECTED]>: > Zeev Suraski wrote: > > > Other than the theological views some people on this list have > (either very pro-BC or anti-BC), what did keeping BC cost us? > > Hey that must be me he is talking about - as I am a real theologian! > >

RE: [PHP-DEV] POSIX regex

2007-07-19 Thread Jeremy Privett
David Coallier Sent: Thursday, July 19, 2007 8:19 PM To: Stanislav Malyshev Cc: [EMAIL PROTECTED]; internals@lists.php.net Subject: Re: [PHP-DEV] POSIX regex On 7/19/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > Yeah I also like that casting better than the "u" > &g

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread David Coallier
On 7/19/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > Yeah I also like that casting better than the "u" It's different things. Casting means "create string as binary, then in runtime cast it to unicode", u"" means "this string is unicode". -- You are right that casting means string -> bi

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Stanislav Malyshev
Yeah I also like that casting better than the "u" It's different things. Casting means "create string as binary, then in runtime cast it to unicode", u"" means "this string is unicode". -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN:

RE: [PHP-DEV] POSIX regex

2007-07-19 Thread scott.mcnaught
ts.php.net Subject: RE: [PHP-DEV] POSIX regex I don't really know much about unicode, and to be honest, I don't really know much about the internal workings of php. But I assume that there are going to be different implementations of string functions depending on whether the string is unicod

RE: [PHP-DEV] POSIX regex

2007-07-19 Thread scott.mcnaught
Scott -Original Message- From: Andrei Zmievski [mailto:[EMAIL PROTECTED] Sent: Friday, 20 July 2007 9:36 AM To: [EMAIL PROTECTED] Cc: internals@lists.php.net Subject: Re: [PHP-DEV] POSIX regex On Jul 19, 2007, at 4:14 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: >

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Andrei Zmievski
On Jul 19, 2007, at 4:14 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: I don't like the idea of having a "u" prefix for Unicode strings. It may improve performance, and give you some level of fine grain control, but... - It breaks your "keep php simple" policy by introducing a lot o

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread David Coallier
-Original Message- From: Stanislav Malyshev [mailto:[EMAIL PROTECTED] Sent: Friday, 20 July 2007 8:47 AM To: Andrei Zmievski Cc: Andi Gutmans; Derick Rethans; Lukas Kahwe Smith; Ilia Alshanetsky; [EMAIL PROTECTED]; internals@lists.php.net Subject: Re: [PHP-DEV] POSIX regex > Python did g

RE: [PHP-DEV] POSIX regex

2007-07-19 Thread scott.mcnaught
ndi Gutmans; Derick Rethans; Lukas Kahwe Smith; Ilia Alshanetsky; [EMAIL PROTECTED]; internals@lists.php.net Subject: Re: [PHP-DEV] POSIX regex > Python did go down that road, but take a look at Python 3000 effort and > you will see that what they are trying to do is exactly what we hav

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Stanislav Malyshev
Python did go down that road, but take a look at Python 3000 effort and you will see that what they are trying to do is exactly what we have: native Unicode strings, without prefixes. Maybe still having u"" - that always produce unicode, regardless of semantics - could be helpful... -- Stani

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Andrei Zmievski
Python did go down that road, but take a look at Python 3000 effort and you will see that what they are trying to do is exactly what we have: native Unicode strings, without prefixes. -Andrei On Jul 18, 2007, at 11:51 AM, Andi Gutmans wrote: Functions would work properly with Unicode, but

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Pierre
On 7/19/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > Too bad it only works for Apache module.. ;) I think on Windows you can do something with the registry per-dir too. On unix there's no registry though. Maybe we need some generic solution to this (like for FastCGI users)? Anybody has go

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Stanislav Malyshev
Too bad it only works for Apache module.. ;) I think on Windows you can do something with the registry per-dir too. On unix there's no registry though. Maybe we need some generic solution to this (like for FastCGI users)? Anybody has good ideas? -- Stanislav Malyshev, Zend Software Architect [

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Jani Taskinen
On Thu, 2007-07-19 at 15:47 +0300, Tomas Kuliavas wrote: > > From the low end user perspective I think this would be great from > > another POV. Let's imagine for a second that Wordpress will only work > > with unicode semantics off and that phpBB will only work with the switch > > "on". What if

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Jani Taskinen
On Thu, 2007-07-19 at 14:27 +0200, Keryx Web wrote: > one *main* purpose and that is I am trying to remedy the extremely sad > situation when it comes to books and other teaching material about PHP > in Sweden. All books we have got by Swedish authors are so bad that I > actively discourage peop

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Tomas Kuliavas
> From the low end user perspective I think this would be great from > another POV. Let's imagine for a second that Wordpress will only work > with unicode semantics off and that phpBB will only work with the switch > "on". What if someone would want to run both on a shared server? from httpd.c

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Keryx Web
Zeev Suraski wrote: > Other than the theological views some people on this list have (either very pro-BC or anti-BC), what did keeping BC cost us? Hey that must be me he is talking about - as I am a real theologian! So for a theologians 2c on Unicode: 1. Teaching unicode and PHP As stated e

RE: [PHP-DEV] POSIX regex

2007-07-19 Thread Richard Lynch
On Wed, July 18, 2007 3:04 am, Derick Rethans wrote: > I hope you are not suggesting to port them to both modes? Why on earth > should an application support both unicode=off and unicode=on? That's > exactly the thing that some of us are so afraid of and want to prevent > as this just annoys more a

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Lukas Kahwe Smith
Richard Lynch wrote: Any gurus really offended by ereg can --disable-ereg or whatever it is, no? So in a dream world, Rasmus would have shipped all the features of PHP 42 as his first release. In a slightly less dreamy, but still unrealistic world, we would have infinite development resour

Re: [PHP-DEV] POSIX regex

2007-07-19 Thread Richard Lynch
On Wed, July 18, 2007 10:45 am, Zeev Suraski wrote: I also was thinking the other day, like Ze'ev, that PHP Devs aren't really in touch with the unwashed masses of the userbase... There are a zillion websites "out there" that run on shared hosts with copy/pasted code and all these scripters will

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Larry Garfield
On Wednesday 18 July 2007, Rasmus Lerdorf wrote: > Second, from the user space PHP developers' perspective. There are two > groups of those out there. There is the group that builds apps for > controlled environments. Yahoo, Facebook, and the hundreds, if not > thousands of smaller companies ou

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread chris#
On Tue, 17 Jul 2007 08:47:42 +0200, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote: > Larry Garfield wrote: >> Non-core PHP developer speaking, so read with that in mind: >> >> One of the things that held back PHP 5 adoption for so long, IMO, is the >> large >> amount of FUD that surrounded it. E

RE: [PHP-DEV] POSIX regex

2007-07-18 Thread Andi Gutmans
gt; From: Derick Rethans [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 18, 2007 1:07 AM > To: Stas Malyshev > Cc: Lukas Kahwe Smith; Andi Gutmans; Ilia Alshanetsky; > [EMAIL PROTECTED]; internals@lists.php.net > Subject: Re: [PHP-DEV] POSIX regex > > On Tue, 17 Jul 2007, St

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Pierre
On 7/18/07, Zeev Suraski <[EMAIL PROTECTED]> wrote: Well I don't think it really diminishes, but I agree that 1+1 is maybe 1.9 and not 2. On the other hand, if you remember that perception is everything (or at least very important), 1+1 can easily be perceived as 3, and in a negative sense. E

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Zeev Suraski
At 04:47 18/07/2007, Lukas Kahwe Smith wrote: Zeev Suraski wrote: Finally, at the risk of sounding like a broken record, we always need to remember that BC breakage accumulates, and it's not binary. Every cleanup we do in PHP 6 will further slow migration, and as Andi pointed out a few days

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Lukas Kahwe Smith
Johannes Schlüter wrote: Ah, another thing kind of related to this thread: We really need a proper way of having decisions declared as being made. Recently it happened quite often that many developer's thought some decision was made (for example from reading the Paris meeting notes) and then s

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Lukas Kahwe Smith
Pierre wrote: On 7/18/07, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote: Zeev Suraski wrote: > Finally, at the risk of sounding like a broken record, we always need to > remember that BC breakage accumulates, and it's not binary. Every > cleanup we do in PHP 6 will further slow migration, and

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Pierre
On 7/18/07, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote: Zeev Suraski wrote: > Finally, at the risk of sounding like a broken record, we always need to > remember that BC breakage accumulates, and it's not binary. Every > cleanup we do in PHP 6 will further slow migration, and as Andi pointed >

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Lukas Kahwe Smith
Zeev Suraski wrote: Finally, at the risk of sounding like a broken record, we always need to remember that BC breakage accumulates, and it's not binary. Every cleanup we do in PHP 6 will further slow migration, and as Andi pointed out a few days ago, things don't look too well as it is. Agr

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Johannes Schlüter
Hi Zeev, On Wed, 2007-07-18 at 01:58 -0700, Zeev Suraski wrote: > >Regarding the unicode on/off modes, I don't think you put yourself in > >the developer's view at all. Users are not going to be better of having > >to deal with both modes. > > Well, I tend to agree with you that they shouldn't ha

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Jani Taskinen
On Wed, 2007-07-18 at 12:23 +0200, Gaetano Giunta wrote: > Maybe the only solution is making it easier to run different versions > of php in parallel? It's already easy and possible. Please don't start that discussion nor spread the fud that it isn't. --Jani -- PHP Internals - PHP Runtime Dev

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Gaetano Giunta
On Wed, 18 Jul 2007, Zeev Suraski wrote: ... You know what, I agree. I wrote something to that effect in my post from a few minutes ago. The vast userbase is mostly comprised of people we hardly even get to see. Sorry to chime in on this already long thread with my -negative- commit karma, but

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Jani Taskinen
On Wed, 2007-07-18 at 02:42 -0700, Rasmus Lerdorf wrote: > What may be somewhat lost in all this, that I hope nobody here is > forgetting, is that smooth Unicode support is really important. Being Smooth it will be only if it's the only option. Otherwise it's just PITA for both the camps. I'm all

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Lukas Kahwe Smith
Rasmus Lerdorf wrote: Derick Rethans wrote: Regarding the unicode on/off modes, I don't think you put yourself in the developer's view at all. Users are not going to be better of having to deal with both modes. Have you guys really thought this through? Let's look at this from two angles. F

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread William A. Rowe, Jr.
Rasmus Lerdorf wrote: > > Perhaps the real argument here is whether we should be doing Unicode at all? I've watched these debate with tremendous interest. i18n is one of my pure 'hobbies' (my 'clients' are all quite happy with ISO-8859-1, and one of my backgrounds is WinNT where everything becam

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Rasmus Lerdorf
Derick Rethans wrote: > Regarding the unicode on/off modes, I don't think you put yourself in > the developer's view at all. Users are not going to be better of having > to deal with both modes. Have you guys really thought this through? Let's look at this from two angles. First, from the our

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Zeev Suraski
At 01:20 18/07/2007, Derick Rethans wrote: This sounds like a broken record, this sounds like a broken record, this sounds like a broken record. I've heard this so many times now, it get's boring. I'm not surprised, but it doesn't change the fact that it's true, though. No matter how many time

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Zeev Suraski
At 00:55 18/07/2007, Pierre wrote: My answer to Andi was not only about ereg but php6 in general (the unicode flag being a much more important problem that ereg, for example). I fully agree with you. Each individual here does not represent the user base but only a relative small part. However,

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Jani Taskinen
On Wed, 2007-07-18 at 10:20 +0200, Derick Rethans wrote: > On Wed, 18 Jul 2007, Zeev Suraski wrote: > > As for ereg - especially in light of the discontinuation of PHP 4 we > > shouldn't even consider removing it in PHP 5. > > I don't think anybody wanted to remove it in PHP 5 - just make it > p

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Derick Rethans
On Wed, 18 Jul 2007, Zeev Suraski wrote: > At 00:21 17/07/2007, Pierre wrote: > > > > On 7/16/07, Andi Gutmans <[EMAIL PROTECTED]> wrote: > > > I disagree with this view of the world. > > > > Well, we seem to all agree on this view, but let forget this > > unsignificant fact :) > > I wanted to

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Derick Rethans
On Tue, 17 Jul 2007, Lukas Kahwe Smith wrote: > Andi Gutmans wrote: > > > There are clear things we want to change (like register_globals) because > > we believe that ultimately they have a significant benefit to our users > > with controllable downside (there is an easy one line workaround which

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Derick Rethans
On Tue, 17 Jul 2007, Stanislav Malyshev wrote: > > that would actually benefit quite a bit from unicode support, but I guess > > you are talking about porting with unicode==off, right? > > unicode=off doesn't mean no unicode support, btw. Of course that's what it means, as none of the string fun

RE: [PHP-DEV] POSIX regex

2007-07-18 Thread Derick Rethans
On Tue, 17 Jul 2007, Andi Gutmans wrote: > Hmm I don't quite understand what bad code vs. good code plays here. > Wordpress is one of the most popular applications out there so it's got > huge value to our community. I bet there's a huge amount of PHP > applications who's source code is of the sam

Re: [PHP-DEV] POSIX regex

2007-07-18 Thread Pierre
On 7/18/07, Zeev Suraski <[EMAIL PROTECTED]> wrote: Pierre, I wanted to send my 2c even though I'm not really involved in internals@ any longer - because in reality it doesn't really have much to do with such decisions. internals@ makes decisions that effect the entire PHP userbase. We all ne

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Zeev Suraski
At 00:21 17/07/2007, Pierre wrote: Hi Andi, On 7/16/07, Andi Gutmans <[EMAIL PROTECTED]> wrote: I disagree with this view of the world. Well, we seem to all agree on this view, but let forget this unsignificant fact :) Pierre, I wanted to send my 2c even though I'm not really involved in

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 4:29 pm, Jani Taskinen wrote: > Richard Lynch kirjoitti: >> I took a brief look at the pgsql.c stuff, and it looks like it's all >> fairly straight-forward to alter to PCRE instead of POSIX, and it's >> all localized to this function: >> http://lxr.php.net/ident?i=php_pgsql_co

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Jani Taskinen
Richard Lynch kirjoitti: I took a brief look at the pgsql.c stuff, and it looks like it's all fairly straight-forward to alter to PCRE instead of POSIX, and it's all localized to this function: http://lxr.php.net/ident?i=php_pgsql_convert_match Am I under-estimating the problem? Propably not.

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Richard Lynch
On Mon, July 16, 2007 7:47 am, Jani Taskinen wrote: > I have moved the POSIX regex dependant functions to ext/ereg/ > extension. > > Now only places using the POSIX regex functions (ext/ereg/ excluded) > are > ext/standard/browscap.c and ext/pgsql/pgsql.c. I took a brief look at the pgsql.c stuff,

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Pierre
On 7/17/07, Tomas Kuliavas <[EMAIL PROTECTED]> wrote: >> 50% increase sounds off base. But I did not bench php6 yet. When all >> the new features are implemented, it will make more sense to work on >> the performance problem. For now, it is simply premature. > > If Moore's law stands for the comi

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Jani Taskinen
Nitpicking, are we? :) Tomas Kuliavas kirjoitti: 50% increase sounds off base. But I did not bench php6 yet. When all the new features are implemented, it will make more sense to work on the performance problem. For now, it is simply premature. If Moore's law stands for the coming years, this a

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Tomas Kuliavas
>> 50% increase sounds off base. But I did not bench php6 yet. When all >> the new features are implemented, it will make more sense to work on >> the performance problem. For now, it is simply premature. > > If Moore's law stands for the coming years, this argument is moot anyway. > By the time PH

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Jani Taskinen
Pierre kirjoitti: 50% increase sounds off base. But I did not bench php6 yet. When all the new features are implemented, it will make more sense to work on the performance problem. For now, it is simply premature. If Moore's law stands for the coming years, this argument is moot anyway. By the

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Stanislav Malyshev
that would actually benefit quite a bit from unicode support, but I guess you are talking about porting with unicode==off, right? unicode=off doesn't mean no unicode support, btw. -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Pierre
On 7/17/07, Andi Gutmans <[EMAIL PROTECTED]> wrote: I thought you were retired at the time... Other were not. Some other were not even present. And those who were present seem to have different interpretations of the decisions. I also have to say that this meeting was done when we were not actu

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Pierre
On 7/17/07, Andi Gutmans <[EMAIL PROTECTED]> wrote: Hmm I don't quite understand what bad code vs. good code plays here. Wordpress is one of the most popular applications out there so it's got huge value to our community. I bet there's a huge amount of PHP applications who's source code is of the

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Lukas Kahwe Smith
Andi Gutmans wrote: Hmm I don't quite understand what bad code vs. good code plays here. Wordpress is one of the most popular applications out there so it's got huge value to our community. I bet there's a huge amount of PHP applications who's source code is of the same quality or worse. Anyway,

RE: [PHP-DEV] POSIX regex

2007-07-17 Thread Andi Gutmans
I thought you were retired at the time... > -Original Message- > From: Jani Taskinen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 17, 2007 7:37 AM > To: Andi Gutmans > Cc: internals@lists.php.net > Subject: RE: [PHP-DEV] POSIX regex > > Just FYI: I did no

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Lukas Kahwe Smith
Andi Gutmans wrote: Here's my proposed way of figuring how to make migration easier. Port the following applications to PHP 6 and let's see what we can learn from it: - mediaWiki - SugarCRM - Drupal - Wordpress IIRC Wordpress is a good example of bad source code to fix. Drupal would be a good

RE: [PHP-DEV] POSIX regex

2007-07-17 Thread Andi Gutmans
Tuesday, July 17, 2007 7:50 AM > To: Andi Gutmans > Cc: Ilia Alshanetsky; [EMAIL PROTECTED]; internals@lists.php.net > Subject: Re: [PHP-DEV] POSIX regex > > Andi Gutmans wrote: > > > Here's my proposed way of figuring how to make migration > easier. Port &g

RE: [PHP-DEV] POSIX regex

2007-07-17 Thread Jani Taskinen
it works pretty well. > > Andi > > > -Original Message- > > From: Lukas Kahwe Smith [mailto:[EMAIL PROTECTED] > > Sent: Monday, July 16, 2007 11:40 PM > > To: Andi Gutmans > > Cc: Ilia Alshanetsky; [EMAIL PROTECTED]; internals@lists.php.net > > Subj

RE: [PHP-DEV] POSIX regex

2007-07-17 Thread Andi Gutmans
s way and it works pretty well. Andi > -Original Message- > From: Lukas Kahwe Smith [mailto:[EMAIL PROTECTED] > Sent: Monday, July 16, 2007 11:40 PM > To: Andi Gutmans > Cc: Ilia Alshanetsky; [EMAIL PROTECTED]; internals@lists.php.net > Subject: Re: [PHP-DEV] POSIX regex

Re: [PHP-DEV] POSIX regex

2007-07-17 Thread Pierre
Hi Andi, On 7/16/07, Andi Gutmans <[EMAIL PROTECTED]> wrote: I disagree with this view of the world. Well, we seem to all agree on this view, but let forget this unsignificant fact :) It doesn't have to be a complete either/or decision and labeling everything as a "bc hacks" decision is an i

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Lukas Kahwe Smith
Larry Garfield wrote: Non-core PHP developer speaking, so read with that in mind: One of the things that held back PHP 5 adoption for so long, IMO, is the large amount of FUD that surrounded it. Even now, 3 years after it was released, I keep seeing the argument that "I can't drop PHP 4 and u

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Lukas Kahwe Smith
Andi Gutmans wrote: There are clear things we want to change (like register_globals) because we believe that ultimately they have a significant benefit to our users with controllable downside (there is an easy one line workaround which we can document for people to get their old apps to work). T

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Larry Garfield
o just basing > decisions on gut feelings. Maybe that kind of learning experience will > proove me wrong (which may be so). > > Andi > > > -Original Message- > > From: Lukas Kahwe Smith [mailto:[EMAIL PROTECTED] > > Sent: Monday, July 16, 2007 7:25 AM > &g

RE: [PHP-DEV] POSIX regex

2007-07-16 Thread Andi Gutmans
ns on gut feelings. Maybe that kind of learning experience will proove me wrong (which may be so). Andi > -Original Message- > From: Lukas Kahwe Smith [mailto:[EMAIL PROTECTED] > Sent: Monday, July 16, 2007 7:25 AM > To: Andi Gutmans > Cc: Ilia Alshanetsky; [EMAIL PROT

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Pierre
On 7/16/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: Thank you Lucas and Antony. Could not agree more.. But we all agree, don't we? :) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread David Coallier
On 7/16/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: Thank you Lucas and Antony. Could not agree more.. On Mon, 2007-07-16 at 19:19 +0400, Antony Dovgal wrote: > Thank you Lukas for expressing exactly my thoughts on this. > > On 16.07.2007 18:24, Lukas Kahwe Smith wrote: > > Andi Gutmans wrote:

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Jani Taskinen
Thank you Lucas and Antony. Could not agree more.. On Mon, 2007-07-16 at 19:19 +0400, Antony Dovgal wrote: > Thank you Lukas for expressing exactly my thoughts on this. > > On 16.07.2007 18:24, Lukas Kahwe Smith wrote: > > Andi Gutmans wrote: > >> Even in PHP 6 I am not sure it's a good idea. The

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Antony Dovgal
Thank you Lukas for expressing exactly my thoughts on this. On 16.07.2007 18:24, Lukas Kahwe Smith wrote: Andi Gutmans wrote: Even in PHP 6 I am not sure it's a good idea. There are a huge amount of apps that use them and it'll be very hard for people to upgrade. Anyway, let's do some more rese

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Jani Taskinen
On Mon, 2007-07-16 at 15:22 +0100, Nuno Lopes wrote: > PCRE has a POSIX API, so it is possible to use PCRE as a drop-in replacement > for the engine behind ereg(). What I don't know is how compatible it is with > the current engine. But I think it worth investigating. Worked fine when I tested i

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Lukas Kahwe Smith
Ilia Alshanetsky wrote: On 16-Jul-07, at 9:46 AM, Andi Gutmans wrote: Why move it to PECL? I agree that PCRE is the preferred way but not having ereg() will break a huge amount of applications for very little gain. I tend to agree, unless we provide wrappers via PCRE that emulate ereg funct

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Lukas Kahwe Smith
Andi Gutmans wrote: Even in PHP 6 I am not sure it's a good idea. There are a huge amount of apps that use them and it'll be very hard for people to upgrade. Anyway, let's do some more research on that once we get closer to PHP 6 and see what the migration path looks like. We'll have to check wit

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Nuno Lopes
PCRE has a POSIX API, so it is possible to use PCRE as a drop-in replacement for the engine behind ereg(). What I don't know is how compatible it is with the current engine. But I think it worth investigating. Nuno P.S.: this POSIX PCRE layer isn't currently bundled with PHP, because it wasn

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Derick Rethans
On Mon, 16 Jul 2007, Pierre wrote: > On 7/16/07, Andi Gutmans <[EMAIL PROTECTED]> wrote: > > Even in PHP 6 I am not sure it's a good idea. > > As far as I know, Jani is referring to PHP6 only. And it was "decided" > in the "php6 notes". Unfortunately that is not true. It's only the title of the

RE: [PHP-DEV] POSIX regex

2007-07-16 Thread Andi Gutmans
s@lists.php.net > Subject: Re: [PHP-DEV] POSIX regex > > > On 16-Jul-07, at 9:46 AM, Andi Gutmans wrote: > > > Why move it to PECL? I agree that PCRE is the preferred way but not > > having ereg() will break a huge amount of applications for > very little > &g

RE: [PHP-DEV] POSIX regex

2007-07-16 Thread Derick Rethans
On Mon, 16 Jul 2007, Andi Gutmans wrote: > Even in PHP 6 I am not sure it's a good idea. There are a huge amount of > apps that use them and it'll be very hard for people to upgrade. Their apps are breaking anyway and three regex engines doesn't make sense. Derick -- Derick Rethans http://de

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Pierre
On 7/16/07, Andi Gutmans <[EMAIL PROTECTED]> wrote: Even in PHP 6 I am not sure it's a good idea. As far as I know, Jani is referring to PHP6 only. And it was "decided" in the "php6 notes". I'm in favour to remove ereg in php6, and the sooner we decide the better.Users will know about this cha

RE: [PHP-DEV] POSIX regex

2007-07-16 Thread Jani Taskinen
gt; > Andi > > > -Original Message- > > From: Ilia Alshanetsky [mailto:[EMAIL PROTECTED] > > Sent: Monday, July 16, 2007 6:48 AM > > To: Andi Gutmans > > Cc: [EMAIL PROTECTED]; internals@lists.php.net > > Subject: Re: [PHP-DEV] POSIX regex > > &g

Re: [PHP-DEV] POSIX regex

2007-07-16 Thread Ilia Alshanetsky
On 16-Jul-07, at 9:46 AM, Andi Gutmans wrote: Why move it to PECL? I agree that PCRE is the preferred way but not having ereg() will break a huge amount of applications for very little gain. I tend to agree, unless we provide wrappers via PCRE that emulate ereg functionality I don't think w

RE: [PHP-DEV] POSIX regex

2007-07-16 Thread Andi Gutmans
Why move it to PECL? I agree that PCRE is the preferred way but not having ereg() will break a huge amount of applications for very little gain. We might possibly want to consider disabling by default but not having it in the default package doesn't make real sense. Trying to do browscap.c and pg