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-17 Thread Andi Gutmans
A few months ago we agreed that we will give our users the choice of both modes. The burdon of maintenance has mainly been on us btw as the majority of the differences here are in the Zend Engine and the extensions don't have as much work associated with them. Here's my proposed way of figuring h

RE: [PHP-DEV] POSIX regex

2007-07-17 Thread Jani Taskinen
Just FYI: I did not agree with that choice. And IIRC, neither did several other people here. --Jani On Tue, 2007-07-17 at 07:27 -0700, Andi Gutmans wrote: > A few months ago we agreed that we will give our users the choice of > both modes. The burdon of maintenance has mainly been on us btw as th

RE: [PHP-DEV] POSIX regex

2007-07-17 Thread Andi Gutmans
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, the issues I have seen

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
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 not agree with that choice. And

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 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 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 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

[PHP-DEV] Type-hinted return values in PHP5?

2007-07-17 Thread David Duong
Hello everyone, I'm emailing to this list to suggest that "support for type-hinted return values"[1] be in added in PHP 5.y.x instead of PHP 6. Conceptually, this is the second half of "type-hints" already introduced in PHP 5. This is why: When a programmer is designing an interface (the lan

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 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
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 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

[PHP-DEV] Nifty feature

2007-07-17 Thread Rasmus Lerdorf
Hey Jani, nice job on the unknown configure options check. I saw the commit go through a couple of days ago, and today it got me to clean up an ancient build script I have been using for ages when it gave me this: Notice: Following unknown configure options were used: --with-pdflib=/usr/local --

Re: [PHP-DEV] Nifty feature

2007-07-17 Thread Antony Dovgal
On 17.07.2007 22:00, Rasmus Lerdorf wrote: Hey Jani, nice job on the unknown configure options check. Yeah, it's really nice. It also helped me to locate minor error in oci8/config.m4 =) Thanks, Jani. I saw the commit go through a couple of days ago, and today it got me to clean up an anc

Re: [PHP-DEV] Nifty feature

2007-07-17 Thread Jani Taskinen
Rasmus Lerdorf kirjoitti: Hey Jani, nice job on the unknown configure options check. I saw the commit go through a couple of days ago, and today it got me to clean up an ancient build script I have been using for ages when it gave me this: Notice: Following unknown configure options were used:

Re: [PHP-DEV] Nifty feature

2007-07-17 Thread Rasmus Lerdorf
Jani Taskinen wrote: > Rasmus Lerdorf kirjoitti: >> Hey Jani, nice job on the unknown configure options check. I saw the >> commit go through a couple of days ago, and today it got me to clean up >> an ancient build script I have been using for ages when it gave me this: >> >> Notice: Following un

Re: [PHP-DEV] Nifty feature

2007-07-17 Thread Gwynne Raskind
On Jul 17, 2007, at 3:44 PM, Rasmus Lerdorf wrote: Hey Jani, nice job on the unknown configure options check. I saw the commit go through a couple of days ago, and today it got me to clean up an ancient build script I have been using for ages when it gave me this: Notice: Following unknow

Re: [PHP-DEV] Apache handler with Multiple PHP versions

2007-07-17 Thread Arnold Daniels
Hi, Sorry for this late reaction, but I was away for a few days. We (as ISP) have solved this by running multiple instanced of Apache. This way you can switch the IP in DNS to switch between PHP versions. You only need 1 install of Apache and do not need to copy/move any files while switching. A

Re: [PHP-DEV] Nifty feature

2007-07-17 Thread Rasmus Lerdorf
Gwynne Raskind wrote: > On Jul 17, 2007, at 3:44 PM, Rasmus Lerdorf wrote: Hey Jani, nice job on the unknown configure options check. I saw the commit go through a couple of days ago, and today it got me to clean up an ancient build script I have been using for ages when it gave me

Re: [PHP-DEV] Nifty feature

2007-07-17 Thread Arnold Daniels
Hi Rasmus, I hope you've got a lot of fingers on your hand, because we do this as well. All servers are updated with an apt script and our private repository. It's easier to manage a single php package on all servers, that 14 different packages. Each time PHP updates we take the newest package

Re: [PHP-DEV] Nifty feature

2007-07-17 Thread Rasmus Lerdorf
Arnold Daniels wrote: > Hi Rasmus, > > I hope you've got a lot of fingers on your hand, because we do this as well. > > All servers are updated with an apt script and our private repository. > It's easier to manage a single php package on all servers, that 14 > different packages. Each time PHP u

Re: [PHP-DEV] Nifty feature

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 3:04 pm, Gwynne Raskind wrote: >>> Only side-effect is that any 3rd party extension which happens to >>> use >>> the AC_ARG_* macros will cause it to report those as "unknown". But >>> perhaps it's time to be update.. ;) >>> >>> *cough* APC *cough* >> But this check isn't in a

Re: [PHP-DEV] Tracing flow in PHP ...

2007-07-17 Thread Richard Lynch
On Mon, July 16, 2007 4:45 pm, Usman S. Ansari wrote: > In file "main/streams.c, function PHPAPI size_t > _php_stream_read(php_stream *stream, char *buf, size_t size TSRMLS_DC) > is called when php script is trying to connect and read from remote > web server. > > I have so far traced that it is ca

Re: [PHP-DEV] Nifty feature

2007-07-17 Thread Jani Taskinen
Richard Lynch kirjoitti: Maybe this check should be in a phpize-generated configure script, so that new extensions will have it built-in? I left it out intentionally from phpize. It is just a notice but I rather not see any bug reports about 3rd party stuff. :) MANY bug reports and build is

Re: [PHP-DEV] Nifty feature

2007-07-17 Thread Jani Taskinen
Rasmus Lerdorf kirjoitti: Jani Taskinen wrote: Only side-effect is that any 3rd party extension which happens to use the AC_ARG_* macros will cause it to report those as "unknown". But perhaps it's time to be update.. ;) *cough* APC *cough* But this check isn't in a phpize-generated configure

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] Nifty feature

2007-07-17 Thread Arnold Daniels
Hi, I understand, but Yahoo is huge. We are not... Saying that it is standard practice for ISP's is perhaps (ehh for sure) a bit of an overstatement, since I only have contact with other small hosting providers like us. For us making packages actually takes up a significant amount of time,

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] Nifty feature

2007-07-17 Thread Jani Taskinen
Arnold Daniels kirjoitti: Anyway, I only mend to say that building pecl packages in the PHP distro isn't so rare as just claimed. So it would be nice if this nifty feature would also work for added packages. It works for everything but phpize'd builds. If you find out that some extension in pe

Re: [PHP-DEV] What is the use of "unicode.semantics" in PHP 6?

2007-07-17 Thread Richard Lynch
On Sat, July 14, 2007 9:00 am, Rasmus Lerdorf wrote: > Richard Lynch wrote: >>> $a = "マニュアル"; >>> echo $a[1]; >> >> Whoa. >> >> That was weird... > > Right, your mail client doesn't handle Unicode correctly. You might > want to do something about that. Or not, since I d

Re: [PHP-DEV] Nifty feature

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 4:03 pm, Jani Taskinen wrote: >> Now if we could just get configure to HALT when an option that is >> enabled by default but is specified on the command line as well >> isn't >> available, so users aren't confused by it continuing to build >> something they didn't ask for in t

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] Nifty feature

2007-07-17 Thread Jani Taskinen
Richard Lynch kirjoitti: This didn't compute. Halt on option that is enabled by default but isn't available?? huh? Joe Sixpack or Betty Buick goes to compile PHP. They do something not unlike: /configure --enable-jpeg This causes a notice of unknown option now..since that option does not exi

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