RE: [PHP-DEV] Mid-term Update for Cycle Collector (Google Summer of Code Project)

2007-07-12 Thread David
Hi, > -Original Message- > From: Andi Gutmans [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 12, 2007 9:06 PM > To: David; Scott MacVicar > Cc: Stas Malyshev; Sebastian Bergmann; internals@lists.php.net > Subject: RE: [PHP-DEV] Mid-term Update for Cycle Collector (Google > Summer of Code

RE: [PHP-DEV] Mid-term Update for Cycle Collector (Google Summer of Code Project)

2007-07-12 Thread Andi Gutmans
Hi David, Isn't finding cycles an NP-complete problem? :) How can you know there are no cycles without actually looking for them? It would definitely be nice to be able to turn this feature on/off at runtime. The majority of pages in PHP don't require such a feature but it's a good thing for us t

RE: [PHP-DEV] Mid-term Update for Cycle Collector (Google Summer of Code Project)

2007-07-12 Thread David
> Could the garabage collector be started / stopped during script > executing from a userland function? zend_gc_enable/disable() in > addition > to an ini option to enable it at script startup? Yes, that functionality can be added fairly easily. Some GC code will still have to be executed (such as

Re: [PHP-DEV] Mid-term Update for Cycle Collector (Google Summer of Code Project)

2007-07-12 Thread Scott MacVicar
Hi, David wrote: > Hi all, > >> -Original Message- >> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sebastian Bergmann >> Sent: Thursday, July 12, 2007 2:52 AM > >> As a first step, I think the code changes that convert direct accesses >> to the reference counters to the proper mac

RE: [PHP-DEV] Mid-term Update for Cycle Collector (Google Summer of Code Project)

2007-07-12 Thread David
Hi all, > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sebastian Bergmann > Sent: Thursday, July 12, 2007 2:52 AM > As a first step, I think the code changes that convert direct accesses > to the reference counters to the proper macros should be merged. These >

Re: [PHP-DEV] Re: SNAPS+SNAPSPecl different to Pecl4Win

2007-07-12 Thread Gaetano Giunta
I think I finally have something demoable, regarding the possibility of extending pecl4win to offer compiled dlls of the released version pf pecl packages, besides the compiled cvs version. The build process is almost ok: + two separate build environments (incl. pecl trees) are used: one for p

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

2007-07-12 Thread Stanislav Malyshev
AFAIK, UTF-8 is backward compatible with ASCII. UTF-16 is not. That's why Well, with 7-bit ASCII - yes. With 8-bit "extended ASCII", whatever that means - not exactly. You can have 8-bit strings that aren't valid UTF-8 and can't be translated to UTF-8 without specifying the encoding (iso-88

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

2007-07-12 Thread Stanislav Malyshev
From our perspective, you've gone and changed a fundamental data structure out from under us, in a non-backwards-compatible way, and broken a whole bunch of working code, for a feature we don't use, and can't turn off [*] Supporting unicode requires such change. It is a big deal - Unicode does

Re: [PHP-DEV] Simple Namespace Proposal

2007-07-12 Thread David Coallier
On 7/12/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > Similarly, allowing multiple namespaces per file does not limit the > developer in any way. Not allowing them does. I always thought a > language should be designed to empower it's developers, not get in > their way. My opinion is that

Re: [PHP-DEV] Mid-term Update for Cycle Collector (Google Summer of Code Project)

2007-07-12 Thread Stanislav Malyshev
On the whole suite of tests (which includes the Graph and Template tests), execution time with unmodified PHP was 12:03. With cycle collection, it was 12:43. these numbers are quite impressive. Indeed, memory usage reduction is very impressive - though I'm somewhat surprised so much memory i

Re: [PHP-DEV] Simple Namespace Proposal

2007-07-12 Thread Stanislav Malyshev
Similarly, allowing multiple namespaces per file does not limit the developer in any way. Not allowing them does. I always thought a language should be designed to empower it's developers, not get in their way. My opinion is that sometimes language *should* "get in the way" - if the developer i

Re: [PHP-DEV] Simple Namespace Proposal

2007-07-12 Thread Andrew Minerd
On Wed, 11 Jul 2007 21:31:34 -0700 [EMAIL PROTECTED] (Stanislav Malyshev) wrote: > I understand we're forcing some structure here, but I think > actually it's good - and many other languages have it either > by design or de-facto. Personally, I'm of the opinion that file structure should be an ap

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread Tijnema
On 7/12/07, David Coallier <[EMAIL PROTECTED]> wrote: On 7/12/07, Tijnema <[EMAIL PROTECTED]> wrote: > On 7/12/07, David Coallier <[EMAIL PROTECTED]> wrote: > > On 7/11/07, Tijnema <[EMAIL PROTECTED]> wrote: > > > On 7/11/07, Jeff Griffiths <[EMAIL PROTECTED]> wrote: > > > > chris# wrote: > > > >

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread Tijnema
On 7/12/07, Tijnema <[EMAIL PROTECTED]> wrote: On 7/12/07, David Coallier <[EMAIL PROTECTED]> wrote: > On 7/12/07, Tijnema <[EMAIL PROTECTED]> wrote: > > On 7/12/07, David Coallier <[EMAIL PROTECTED]> wrote: > > > On 7/11/07, Tijnema <[EMAIL PROTECTED]> wrote: > > > > On 7/11/07, Jeff Griffiths <

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread David Coallier
On 7/12/07, Tijnema <[EMAIL PROTECTED]> wrote: On 7/12/07, David Coallier <[EMAIL PROTECTED]> wrote: > On 7/11/07, Tijnema <[EMAIL PROTECTED]> wrote: > > On 7/11/07, Jeff Griffiths <[EMAIL PROTECTED]> wrote: > > > chris# wrote: > > > > On Tue, 10 Jul 2007 19:30:26 -0500, Larry Garfield <[EMAIL PR

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread Jeff Griffiths
On 12-Jul-07, at 4:23 AM, chris# wrote: ... Wholly agreed. But I'm not sure I see a big (any) real difference here. For example there are many similarities between 1.x and 2.x - even in the conf file(s). I have little difficulty cobbling a 1.x module out of a 2.x module. PHP5 never made an

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread Marco
The language for announcing PHP 4's funeral is already sorted out. The objections to it are all in the "some people say" camp. Let's just post it already and get back to arguing about what PHP 6 will offer. :-) +1 :-) Regards Marco

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread Larry Garfield
On Thursday 12 July 2007, chris# wrote: > Something just occurred to me that might satisfy both sides of the issue. > What about the way Apache handles their versions of Apache (1.x and 2.x). > That is to say; they haven't abandoned 1.3 (no surprise, as I think it > still has the biggest install b

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

2007-07-12 Thread Tijnema
On 7/12/07, Tijnema <[EMAIL PROTECTED]> wrote: On 7/12/07, chris# <[EMAIL PROTECTED]> wrote: > > > > On Thu, 12 Jul 2007 11:38:44 +0200, Tijnema <[EMAIL PROTECTED]> wrote: > > Hello Richard, > > > > On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > >> On Wed, July 11, 2007 6:13 pm, Tijnema w

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

2007-07-12 Thread chris#
On Thu, 12 Jul 2007 13:41:16 +0200, Tijnema <[EMAIL PROTECTED]> wrote: > On 7/12/07, chris# <[EMAIL PROTECTED]> wrote: >> >> >> >> On Thu, 12 Jul 2007 11:38:44 +0200, Tijnema <[EMAIL PROTECTED]> wrote: >> > Hello Richard, >> > >> > On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> >> On We

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

2007-07-12 Thread Tijnema
On 7/12/07, chris# <[EMAIL PROTECTED]> wrote: On Thu, 12 Jul 2007 11:38:44 +0200, Tijnema <[EMAIL PROTECTED]> wrote: > Hello Richard, > > On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Wed, July 11, 2007 6:13 pm, Tijnema wrote: >> > On 7/12/07, Jani Taskinen <[EMAIL PROTECTED]> wro

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread chris#
On Thu, 12 Jul 2007 11:51:39 +0100, Lester Caine <[EMAIL PROTECTED]> wrote: > chris# wrote: >> Something just occurred to me that might satisfy both sides of the > issue. >> What about the way Apache handles their versions of Apache (1.x and > 2.x). >> That is to say; they haven't abandoned 1.3

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread Marco
Something just occurred to me that might satisfy both sides of the issue. What about the way Apache handles their versions of Apache (1.x and 2.x). That is to say; they haven't abandoned 1.3 (no surprise, as I think it still has the biggest install base). They simply maintain security related issu

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread Lester Caine
chris# wrote: Something just occurred to me that might satisfy both sides of the issue. What about the way Apache handles their versions of Apache (1.x and 2.x). That is to say; they haven't abandoned 1.3 (no surprise, as I think it still has the biggest install base). They simply maintain securi

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

2007-07-12 Thread chris#
On Thu, 12 Jul 2007 11:38:44 +0200, Tijnema <[EMAIL PROTECTED]> wrote: > Hello Richard, > > On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Wed, July 11, 2007 6:13 pm, Tijnema wrote: >> > On 7/12/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: >> >> A lot easier (and works already) is t

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread chris#
On Thu, 12 Jul 2007 11:04:53 +0200, Sebastian Mendel <[EMAIL PROTECTED]> wrote: > chris# schrieb: >> >> >> On Wed, 11 Jul 2007 21:18:17 -0400, "David Coallier" <[EMAIL PROTECTED]> > wrote: >>> On 7/11/07, Tijnema <[EMAIL PROTECTED]> wrote: On 7/11/07, Jeff Griffiths <[EMAIL PROTECTED]> wrot

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread chris#
On Thu, 12 Jul 2007 07:13:07 +0100, Lester Caine <[EMAIL PROTECTED]> wrote: > Tijnema wrote: >> Yes, that's what I meant to say, they can be implemented on top of, >> just like the above mentioned json, it is implemented on top of too. >> But, that means that a regular PHP programmer doesn't nee

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

2007-07-12 Thread Sebastian Mendel
Larry Garfield schrieb: > On Tuesday 10 July 2007, Evert | Rooftop wrote: >> Andi Gutmans wrote: >>> I think the sooner the better as it's valuable information for the dev >>> team. >>> It'd probably be a good idea to have a Wiki where we can document issues >>> that/common use-cases which are enco

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

2007-07-12 Thread M. Sokolewicz
Richard Lynch wrote: On Wed, July 11, 2007 3:11 am, Richard Quadling wrote: On 11/07/07, Evert | Rooftop <[EMAIL PROTECTED]> wrote: Larry Garfield wrote: Top 10 by what metric? If I had to guess based on market share, I'd say (unordered): Drupal Squirrelmail WordPress phpMyAdmin MediaWiki

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

2007-07-12 Thread chris#
On Wed, 11 Jul 2007 20:43:06 -0700, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > chris# wrote: >>> It was possible to have PHP3 and PHP4 both as modules, I think, but >>> that was an anomoly? >> So which one of the developers broke this /feature/ in 5? ;) > > This wasn't supported on all platfor

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread Tijnema
On 7/12/07, David Coallier <[EMAIL PROTECTED]> wrote: On 7/11/07, Tijnema <[EMAIL PROTECTED]> wrote: > On 7/11/07, Jeff Griffiths <[EMAIL PROTECTED]> wrote: > > chris# wrote: > > > On Tue, 10 Jul 2007 19:30:26 -0500, Larry Garfield <[EMAIL PROTECTED]> wrote: > > ... > > >> The claim that is stil

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread Jani Taskinen
On Thu, 2007-07-12 at 11:04 +0200, Sebastian Mendel wrote: > i don't think so ... PHP 5 is always the better choice ... cause PHP 4 > development has stopped and support will end and you will get no more > security update after 2008-08-08(?) Actually this has been the de-facto state of PHP 4 for a

Re: [PHP-DEV] Simple Namespace Proposal

2007-07-12 Thread Jani Taskinen
On Thu, 2007-07-12 at 09:30 +0200, Stefan Priebsch wrote: > From a regular PHP developer's perspective, SPL is part of the core > (read: it is guaranteed that it is always there). The manual says so, > and it has been said in most, if not all SPL-related presentations. If manual says that then the

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread Tijnema
On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, July 11, 2007 4:40 pm, Tijnema wrote: > Except for the OO, I don't see anything that can't be done in PHP4, > while it can be done in PHP5. Some workarounds are maybe needed, but > it mostly doesn't require more than 10 lines of PHP cod

Re: [PHP-DEV] Mid-term Update for Cycle Collector (Google Summer of Code Project)

2007-07-12 Thread Sebastian Bergmann
David Wang schrieb: > Hello, everyone. My name is David Wang and I am one of the students > participating in Google Summer of Code this year. As you may remember, > my project is to implement a garbage collector for circular references > in PHP. As the midterm for Summer of Code is coming up, my me

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

2007-07-12 Thread Derick Rethans
On Thu, 12 Jul 2007, Tijnema wrote: > On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > > Other problems: > > > > Getting 2 PHP modules to co-exist without tromping on each others' > > symbols is, I think, the show-stopper... > > Both modules are different files, and only one will be dyna

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

2007-07-12 Thread Jani Taskinen
On Wed, 2007-07-11 at 20:43 -0700, Rasmus Lerdorf wrote: > chris# wrote: > >> It was possible to have PHP3 and PHP4 both as modules, I think, but > >> that was an anomoly? > > So which one of the developers broke this /feature/ in 5? ;) > > This wasn't supported on all platforms in 4 either becaus

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

2007-07-12 Thread Tijnema
On 7/12/07, Guilherme Blanco <[EMAIL PROTECTED]> wrote: Hi Tijnema, I think here is something that might interest you: http://www.phpclasses.org/browse/package/3472.html Regards, Hello Guilherme, This comes quite close to my idea, except that this does only uncomment specfic sections that

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

2007-07-12 Thread Tijnema
Hello Richard, On 7/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, July 11, 2007 6:13 pm, Tijnema wrote: > On 7/12/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: >> A lot easier (and works already) is to install PHP as CGI/FastCGI >> (one version or all of them, one can be module of cours

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

2007-07-12 Thread chris#
On Wed, 11 Jul 2007 20:27:21 -0500 (CDT), "Richard Lynch" <[EMAIL PROTECTED]> wrote: > On Wed, July 11, 2007 3:11 am, Richard Quadling wrote: >> On 11/07/07, Evert | Rooftop <[EMAIL PROTECTED]> wrote: >>> Larry Garfield wrote: >>> > >>> > Top 10 by what metric? If I had to guess based on marke

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

2007-07-12 Thread chris#
On Wed, 11 Jul 2007 20:23:20 -0500 (CDT), "Richard Lynch" <[EMAIL PROTECTED]> wrote: > Remember that old series of jokes about how C is a language that lets > you shoot your foot off? > > runkit lets you design a gun so you can use one foot to shoot the other. LOL! Yes, I've been looking at

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

2007-07-12 Thread chris#
On Wed, 11 Jul 2007 20:22:00 -0500 (CDT), "Richard Lynch" <[EMAIL PROTECTED]> wrote: > You saw it in PHP 3/4. > > And it can LOOK from the outside like you're doing it, using a > ProxyPass from one Apache box to another. > > But I'm pretty sure you can't get both versions into one build, as t

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread Sebastian Mendel
chris# schrieb: > > > On Wed, 11 Jul 2007 21:18:17 -0400, "David Coallier" <[EMAIL PROTECTED]> > wrote: >> On 7/11/07, Tijnema <[EMAIL PROTECTED]> wrote: >>> On 7/11/07, Jeff Griffiths <[EMAIL PROTECTED]> wrote: chris# wrote: > On Tue, 10 Jul 2007 19:30:26 -0500, Larry Garfield >> <[EMA

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread chris#
On Wed, 11 Jul 2007 21:18:17 -0400, "David Coallier" <[EMAIL PROTECTED]> wrote: > On 7/11/07, Tijnema <[EMAIL PROTECTED]> wrote: >> On 7/11/07, Jeff Griffiths <[EMAIL PROTECTED]> wrote: >> > chris# wrote: >> > > On Tue, 10 Jul 2007 19:30:26 -0500, Larry Garfield > <[EMAIL PROTECTED]> wrote: >> >

RE: [PHP-DEV] Simple Namespace Proposal

2007-07-12 Thread Dmitry Stogov
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 12, 2007 4:45 AM > To: Stanislav Malyshev > Cc: Dmitry Stogov; 'Sebastian Bergmann'; internals@lists.php.net > Subject: Re: [PHP-DEV] Simple Namespace Proposal > > > On Mon, July 9, 2007 2:49 am

Re: [PHP-DEV] Simple Namespace Proposal

2007-07-12 Thread Stefan Priebsch
Richard Lynch schrieb: > And for those of us who never use autoload OR SPL, could you please > not force SPL into core? >From a regular PHP developer's perspective, SPL is part of the core (read: it is guaranteed that it is always there). The manual says so, and it has been said in most, if not all

Re: [PHP-DEV] RIP PHP 4?

2007-07-12 Thread Sebastian Mendel
David Coallier schrieb: > On 7/11/07, Tijnema <[EMAIL PROTECTED]> wrote: >> On 7/11/07, Jeff Griffiths <[EMAIL PROTECTED]> wrote: >> > chris# wrote: >> > > On Tue, 10 Jul 2007 19:30:26 -0500, Larry Garfield >> <[EMAIL PROTECTED]> wrote: >> > ... >> > >> The claim that is still repeated >> > >> that