Re: [PHP-DEV] [PATCH] bug #34429 - Output buffering cannot be turned off with FastCGI

2005-12-09 Thread Michael Wallner
Hi Ilya M. Slepnev, you wrote: Hi Dmitry, What about adding if (request) at the beginning of the flush_result = FCGX_FFlush(request-out); string? You see, you have to do that call, because else you are not flushing at all in fastcgi mode at all!-) Yes, it now makes fcgi flush it's data

Re: [PHP-DEV] Documentation for creating PECL extension

2005-12-09 Thread Joseph Crawford
lol so now i find out it's a free download i bought that book not long ago i like print better anyway ;) -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. 1-802-671-2021 [EMAIL PROTECTED]

RE: [PHP-DEV] [PATCH] bug #34429 - Output buffering cannot be turnedoff with FastCGI

2005-12-09 Thread Dmitry Stogov
So the problem in mod_fcgi or Apache configuration. I made tests with ZendEnabler and it works (It is available as part of ZendCore). Thanks. Dmitry. -Original Message- From: Michael Wallner [mailto:[EMAIL PROTECTED] Sent: Friday, December 09, 2005 1:10 PM To:

Re: [PHP-DEV] [PATCH] bug #34429 - Output buffering cannot be turnedoff with FastCGI

2005-12-09 Thread Michael Wallner
Hi Dmitry Stogov, you wrote: So the problem in mod_fcgi or Apache configuration. I made tests with ZendEnabler and it works (It is available as part of ZendCore). Hi Dmitry, in my case it was mod_deflate buffering the data, disabling it worked here well too. Commit then? :) Thanks, --

Re: [PHP-DEV] $this-this and avoiding circular references

2005-12-09 Thread Wez Furlong
On 12/9/05, Alan Pinstein [EMAIL PROTECTED] wrote: However, my question, which still remains unanswered, is that I've found a way that seems to create a weak reference and I'm simply asking if what I am doing is condoned or just lucky (and thus a bad idea that will probably break in the

RE: [PHP-DEV] [PATCH] bug #34429 - Output buffering cannot be turnedoffwith FastCGI

2005-12-09 Thread Dmitry Stogov
Sorry. What do you like to commit? flush() works without any patches for me. Thanks. Dmitry. -Original Message- From: Michael Wallner [mailto:[EMAIL PROTECTED] Sent: Friday, December 09, 2005 4:13 PM To: internals@lists.php.net Subject: Re: [PHP-DEV] [PATCH] bug #34429 - Output

Re: [PHP-DEV] Documentation for creating PECL extension

2005-12-09 Thread Jani Taskinen
1 (one) email about this would have been enough. No more spam please! :) --Jani On Thu, 8 Dec 2005, Andi Gutmans wrote: You can also check out my book: http://tinyurl.com/7aect It's a free download. It has one chapter of the basics for PHP extension writing. It might not answer all

Re: [PHP-DEV] [PATCH] bug #34429 - Output buffering cannot be turnedoffwith FastCGI

2005-12-09 Thread Michael Wallner
Hi Dmitry Stogov, you wrote: Sorry. What do you like to commit? flush() works without any patches for me. Well, sorry too then. Seems that we misunderstood each other. I don't know anything about ZendStuff, but PHP fcgi won't flush without that patch. Regards, -- Michael - mike(@)php.net

Re: [PHP-DEV] $this-this and avoiding circular references

2005-12-09 Thread Jochem Maas
Andi - your email client seems to be leaking :-) Andi Gutmans wrote: Hi Alan, Generally speaking, if you create a circular reference (whether by reference or by value), then you will have a memory leak until the end of the request. This is not only true for objects (and circular references

RE: [PHP-DEV] [PATCH] bug #34429 - Output buffering cannot be turnedoffwithFastCGI

2005-12-09 Thread Dmitry Stogov
I undestood the problem. You run PHP without PHP_FCGI_CHILDREN, so PHP doesn't spawn additional processes (old php version spawned 8 processes by default). I fixed the bug in proper way in CVS HEAD, PHP_5_1 and PHP_5_0. Thanks. Dmitry. -Original Message- From: Michael Wallner

Re: [PHP-DEV] $this-this and avoiding circular references

2005-12-09 Thread Andi Gutmans
Sorry about that. I think it might be a problem with the server not my client. If it persists please let me know. At 08:37 AM 12/9/2005, Jochem Maas wrote: Andi - your email client seems to be leaking :-) Andi Gutmans wrote: Hi Alan, Generally speaking, if you create a circular reference

Re: [PHP-DEV] $this-this and avoiding circular references

2005-12-09 Thread Jochem Maas
Andi Gutmans wrote: Sorry about that. I think it might be a problem with the server not my client. If it persists please let me know. given what your work has done for me I can't consider it a problem :-) just thought it was kinda funny. regarding the actually topic of this thread I'm very

Re: [PHP-DEV] $this-this and avoiding circular references

2005-12-09 Thread Alan Pinstein
regarding the actually topic of this thread I'm very interested in the concept of 'weak references' (as Apple seems to call them), what '$this-this' is all about, and whether using reference notation with object variable assignment is even allowed, whether it it makes a difference and what the

Re: [PHP-DEV] $this-this and avoiding circular references

2005-12-09 Thread David Zülke
Would you mind explaining that indirect property accessing method, Andi? Or did you mean avoiding circular references altogether by having a third intermediate layer that would return the respective object when handed a GUID or something, so that effectively, one of the partners in the

Re: [PHP-DEV] [PATCH] bug #34429 - Output buffering cannot be turnedoffwithFastCGI

2005-12-09 Thread Michael Wallner
Dmitry Stogov wrote: I undestood the problem. You run PHP without PHP_FCGI_CHILDREN, so PHP doesn't spawn additional processes (old php version spawned 8 processes by default). I fixed the bug in proper way in CVS HEAD, PHP_5_1 and PHP_5_0. Confirmed! Thanks a lot, -- Michael -

Re: [PHP-DEV] Documentation for creating PECL extension

2005-12-09 Thread Joseph Crawford
jani, what are you talking about? -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. 1-802-671-2021 [EMAIL PROTECTED]

[PHP-DEV] Some assumption about improving Zend Engine:

2005-12-09 Thread Ben Yan
PHP6 is about to make OPCode caching mechanism build into Zend Engine, without question this will improve PHP dramatically.But I have a radical thought: why not to directly run ZIC(Zend Intermediate Code) files that have been compiled instead of handling PHP source scripts. Just like a

Re: [PHP-DEV] Some assumption about improving Zend Engine:

2005-12-09 Thread Joseph Crawford
i would highly agree with this, protection of source is a great benefit, also the performance would be much better. -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. 1-802-671-2021 [EMAIL PROTECTED]