Hello all,
I have recently switched to PHP 5.1, and have been encountering crashes during
shutdown. I have tried delving into the PHP code to locate the source of the
problems, and have discovered two issues, both of which only happen when
compiled with ZTS enabled.
The first is very prob
fork() works on windows as well, but on Win32 forking is MUCH slower
then threads.
Ilia
With fork() you mean using exec() to call php with another script,
right? Because I can't seem to find the fork() function anywhere. :|
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscri
Thank you all, for the feedback. Some solutions are new to me. So, I'll
be taking a deeper look into those options.
I have to say that they all still sound a bit like work-arounds.
(Although this could very well be due to my unworthy knowledge. ;) ) I
still think it would be nice if there woul
Hi,
I really do not see the point is worrying all too much about multi
threading in PHP. Writing proper multi threaded code is hard and why
bother? Your server is going to be busy doing tons of other things at
the same time. So all your CPU's and cores should have plenty of things
to do. Also
Translating the documentation (polish)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
> I really do not see the point is worrying all too much about multi
> threading in PHP. Writing proper multi threaded code is hard and why
> bother? Your server is going to be busy doing tons of other things at
> the same time. So all your CPU's and cores should have plenty of things
> to do. Also
It must be Christmas time.
- A
On Dec 7, 2005, at 7:17 PM, Wez Furlong wrote:
pecl/event is available for download... ;-)
--Wez.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
We always prefer patches over long stories. :)
And preferrably first to somehow reproduce the problem easily..
--Jani
On Thu, 8 Dec 2005, David Oren wrote:
Hello all,
I have recently switched to PHP 5.1, and have been encountering crashes
during shutdown. I have tried delving into t
Hello Everyone,
I have some knowledge of C and would like to learn more, i have a great book
by Deitel & Deitel and have gone through it. What i would like to know is
where i can get docs on creating PHP extensions so that i could use them
with my PHP on windows and nix.
Any direction is appreci
> I have some knowledge of C and would like to
> learn more, i have a great book by Deitel & Deitel
> and have gone through it. What i would like to know is
> where i can get docs on creating PHP extensions so
> that i could use them with my PHP on windows and nix.
>
http://www.zend.com/php/intern
I started out by copying ext/skel and went from there. Using some real
simple extensions as examples helps as well, SPL was really helpful since my
extension is all object based, and I didn't need to interface with an
external library, in that case, mysqli is a real clean example.
Read Sara's arti
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 might be indirect) but also for arrays.
This is a side-effect of refer
Hi David,
Would be happy to take a look at these bugs.
Any chance you can send a short reproducing script?
Thanks,
Andi
At 12:15 AM 12/8/2005, David Oren wrote:
Hello all,
I have recently switched to PHP 5.1, and have been encountering
crashes during shutdown. I have tried delving into t
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 might be indirect) but also for arrays.
sure, of course...
This is a side-e
On Fri, 2005-12-09 at 00:21, Alan Pinstein wrote:
>
> And, if it's just lucky, then what is the solution to the problem? Am
> I just SOL? Is the answer simply that if you *need* to create
> circular references in PHP, then you *must* accept memory leakage?
If you know you have a circular refe
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 your questions but definitely gives a solid foundation
for understanding how things work.
Andi
At 03:36 PM 12/8/2005, Joseph Crawf
re: limiting factor I don't completely disagree but then again, in
most cases, it's possible to design the app in a way which resolves
the problem.
Well, this is true, but then it would either:
a) reduce the functionality of the object layer (by eliminating
references to "parent")
b) ad
Hey,
re: limiting factor I don't completely disagree but then again, in
most cases, it's possible to design the app in a way which resolves
the problem.
As to weak references, you could do weak references in PHP just by
using the indirect property access. Might not be perfect but it's quite do
18 matches
Mail list logo