[PHP-DEV] RE : [PHP-DEV] Namespaces and __autoload()

2007-09-07 Thread P
Hi, > From: Dmitry Stogov [mailto:[EMAIL PROTECTED] > > The patch provides an additional boolean argument to > __autoload() that say if class is really required. In case if > it false, user code shouldn't emit errors or throw exceptions. Actually, an autoload handler should never emit errors

[PHP-DEV] RE : [PATCH] zend-multibyte unicode detection vs. __halt_compiler()

2007-09-07 Thread P
Hi, > From: Rui Hirokawa > > IMHO, #42396 is not a bug, but it is the specification. > The normal script doesn't contain a null byte if it is not > encoded in Unicode. > > It is understandable the addition of a unique byte seqence > '0x' detection to support PHAR/PHK, > but it is a ch

Re: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-09-07 Thread David Wang
> ps: remember to change the Zend/PHP API number as well ;) Done. I personally think having a ZEND_GC switch sort of defeats the purpose of forcing everyone to start using the macros (whether or not we want the GC), which is something we want to do anyway. However, here are the two versions of th

Re: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-09-07 Thread Cristian Rodriguez
On 9/7/07, Derick Rethans <[EMAIL PROTECTED]> wrote: > But you might want to wonder if that's not a good thing? Without the > prefix there will be no indication for third party extensions that they > might be doing something that's not going to work nicely with the new GC > anymore. I'd prefer it

RE: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-09-07 Thread Derick Rethans
On Thu, 6 Sep 2007, Andi Gutmans wrote: > In general the patch is fine. > The only thing which I'd like to change is to make sure the __gc naming > is in an #if ZEND_GC for now otherwise we'll be breaking lots of third > party libraries and PECL extensions. But you might want to wonder if that's

[PHP-DEV] own php function

2007-09-07 Thread Marten Lehmann
Hello, I would like to create an own php function which just prints a certain report as phpinfo() does. The function shall not be included into the general php code, I just want to patch my own installation. Where would be a good place for the function? I don't want to create an extention wh

Re: [PHP-DEV] own php function

2007-09-07 Thread David Coallier
On 9/7/07, Marten Lehmann <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to create an own php function which just prints a certain > report as phpinfo() does. > > The function shall not be included into the general php code, I just > want to patch my own installation. Where would be a good pl

RE: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-09-07 Thread Andi Gutmans
> -Original Message- > From: Derick Rethans [mailto:[EMAIL PROTECTED] > Sent: Friday, September 07, 2007 12:09 AM > To: Andi Gutmans > Cc: David Wang; Marcus Boerger; Nuno Lopes; internals@lists.php.net; > [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP-DEV] Patch for macros for tr

RE: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-09-07 Thread Andi Gutmans
Not source compatibility. > -Original Message- > From: Cristian Rodriguez [mailto:[EMAIL PROTECTED] > Sent: Friday, September 07, 2007 1:06 AM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] Patch for macros for tracking refcount and > is_ref > > On 9/7/07, Derick Rethans <[EMAIL P

RE: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-09-07 Thread Andi Gutmans
We are in an intermediate step right now where you are commiting these macros to make sure that review of GC is easier. There'll be a period of testing, benchmarks and stabilizing which we need to go through. Only after that will we figure out what we'd like to do. Do we want to always enable it, m

Re: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-09-07 Thread David Wang
Here's my analysis of what the options are: In my mind, the macros patch is actually unrelated to the GC patch. It is a Good Idea (tm) to use macros to manipulate refcounts no matter if the GC is enabled, disabled, present in the source, or not added at all. The only question is whether to break s

Re: [PHP-DEV] own php function

2007-09-07 Thread Johannes Schlüter
Hi Marten, On Friday 07 September 2007 07:57:53 pm Marten Lehmann wrote: > Hello, > > I would like to create an own php function which just prints a certain > report as phpinfo() does. > > The function shall not be included into the general php code, I just > want to patch my own installation. Whe

[PHP-DEV] Re: RE : [PATCH] zend-multibyte unicode detection vs. __halt_compiler()

2007-09-07 Thread Greg Beaver
LAUPRETRE François (P) wrote: > Hi, > >> From: Rui Hirokawa >> >> IMHO, #42396 is not a bug, but it is the specification. The normal >> script doesn't contain a null byte if it is not encoded in Unicode. >> >> >> It is understandable the addition of a unique byte seqence >> '0x' detect

Re: [PHP-DEV] own php function

2007-09-07 Thread Hartmut Holzgraefe
Marten Lehmann wrote: I would like to create an own php function which just prints a certain report as phpinfo() does. The function shall not be included into the general php code, I just want to patch my own installation. Where would be a good place for the function? I don't want to create a

RE: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-09-07 Thread Andi Gutmans
As far as I'm concerned you can commit it with ZEND_GC. If you don't have karma let me know and we'll commit it. Thanks! Andi > -Original Message- > From: David Wang [mailto:[EMAIL PROTECTED] > Sent: Friday, September 07, 2007 12:07 PM > To: Andi Gutmans > Cc: Cristian Rodriguez; internal

Re: [PHP-DEV] RE : [PHP-DEV] Namespaces and __autoload()

2007-09-07 Thread Stanislav Malyshev
Actually, an autoload handler should never emit errors or throw exceptions. With handlers registered through SPL, it is already the case. When using an __autoload() functions, raising an error when a symbol is not found is useless because we know that the PHP interpreter will do it. So, I propose

[PHP-DEV] CVS Account Request: preinheimer

2007-09-07 Thread Paul Reinheimer
Requesting: phpdoc I'd like to help maintain the documentation, I've been working with a few people on IRC to get some pointers, and avoid making rookie mistakes (spelling errors, one too many spaces, tabs, etc.). Philip suggested I request an account. Sean mocked me a bit. -- PHP Internals

Re: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-09-07 Thread David Wang
> As far as I'm concerned you can commit it with ZEND_GC. If you don't > have karma let me know and we'll commit it. I don't even have a CVS account yet so I can't commit this patch. I haven't needed it so I never requested it. However, I will soon in order to quickly respond to GC-related bugs th

[PHP-DEV] applictaion for a cvs account

2007-09-07 Thread Jiania Hung
i need to a cvs account for joined coding for SPL extention, Marcus Börger let's me email to this mail.thanks. -- We want OpenBiz to become an important and significant institution. That takes time, stability and independence. We bridge the media and technology industries, both of which have expe

Re: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-09-07 Thread Adam Maccabee Trachtenberg
On Sat, 8 Sep 2007, David Wang wrote: > I don't even have a CVS account yet so I can't commit this patch. I > haven't needed it so I never requested it. However, I will soon in > order to quickly respond to GC-related bugs that might crop up. Could > one be granted to me with the appropriate karma

[PHP-DEV] CVS Account Request: davidw

2007-09-07 Thread Yiduo (David) Wang
Implementing and maintaining the reference cycle garbage collector (GSoC '07) for the Zend engine. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: RE : [PATCH] zend-multibyte unicode detection vs. __halt_compiler()

2007-09-07 Thread Rui Hirokawa
Hi, The declare() semantic like, declare(encoding="Shift_JIS"); is already supported by mbstring since PHP 4.3. 1.set detect_unicode = Off 2.adding declare(encoding="encoding_name") on the first line of script can be your solution ? Rui On Fri, 07 Sep 2007 14:40:14 -0500 Greg Beaver <[EMAIL PR

Re: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-09-07 Thread Cristian Rodriguez
On 9/7/07, Andi Gutmans <[EMAIL PROTECTED]> wrote: >Let's not run before we walk. The GC already "walks." >There's still testing and review and some stabilizing period we should be doing if it is disabled by default it is unlikely that people will test it with real life code even more with in y