Re: [PHP-DEV] 5.3.7 is there a RC5 coming soon?

2011-08-05 Thread James Yu
it's fixed after RC4, I was asking is there a RC5 which includes the fix. currently I can only test with a snapshot build. hopeful there's a working RC or final build. On Fri, Aug 5, 2011 at 6:36 PM, Ferenc Kovacs wrote: > why do you think that it isn't fixed yet? > Pierre marked the bug as fi

Re: [PHP-DEV] 5.3.7 is there a RC5 coming soon?

2011-08-05 Thread Ferenc Kovacs
why do you think that it isn't fixed yet? Pierre marked the bug as fixed. 2011/8/6 James Yu : > Hi Johannes, > > one question, will final release build has this build issue fixed? > > Thanks, > James > > > > 2011/8/4 Johannes Schlüter : >> This seems to be a build, not an code issue. So this shou

Re: [PHP-DEV] 5.3.7 is there a RC5 coming soon?

2011-08-05 Thread James Yu
Hi Johannes, one question, will final release build has this build issue fixed? Thanks, James 2011/8/4 Johannes Schlüter : > This seems to be a build, not an code issue. So this should be fixed by > a  build independently from RC or final. > > Pierre can confirm. > > johannes > > On Thu, 2011-

Re: [PHP-DEV] [VOTE] Weak References

2011-08-05 Thread Hannes Landeholm
Good explanation Ferenc. Yeah I think there's a lot of misunderstandings going on with weak/soft references and how the garbage collector works. Weak/soft references is not some kind of solution to the cyclic reference problem. The GC takes care of that already. You can use whatever OOP patterns w

Re: [PHP-DEV] [VOTE] Weak References

2011-08-05 Thread Ferenc Kovacs
> A parent references its childs and each child references its parent. > circular-reference nightmare...with WeakReferences I could use a > weakReference for storing the parent...so that if the parents last real > reference is discarded the childs will cleaned out as well. that is why we added the

Re: [PHP-DEV] [VOTE] Weak References

2011-08-05 Thread Lars Schultz
Am 05.08.2011 18:29, schrieb Hannes Landeholm: It's interesting to think about though. I'd definitely find a use for them;) I might just patch our installations to provide me with the zval-refcount and go with that for now...I have been warned, but I have to burn myself before I believe that

Re: [PHP-DEV] [VOTE] Weak References

2011-08-05 Thread Lars Schultz
Am 05.08.2011 19:46, schrieb Jezz Goodwin: As Chris Stockton points out http://news.php.net/php.internals/54391 there is always going to be additional code that has to check to see if the reference is still valid. But don't you see that in exchange for one little IF you get so much more...what's

Re: [PHP-DEV] [VOTE] Weak References

2011-08-05 Thread Jezz Goodwin
It sounds to me that weak/soft references are only really half a solution to a problem. As Chris Stockton points out http://news.php.net/php.internals/54391 there is always going to be additional code that has to check to see if the reference is still valid. If the only concern here is runni

Re: [PHP-DEV] [VOTE] Weak References

2011-08-05 Thread Hannes Landeholm
Soft references could theoretically be implemented if PHP only implemented weak references even though the implementation would consist of a very ugly and "coincidental" hack. Lets say you had an object A that you wouldn't want to be collected until approximately when PHP needs more memory. E.g. w

Re: [PHP-DEV] [VOTE]strn(case)cmp supporting a negative length as its third paramter

2011-08-05 Thread Laruence
HI: and I don't think this was diffcult to accepted it was a little improve, and make a litte change, even no bc break... thanks 2011/8/6 Laruence : > Hi: >  I am not good at english, so I could not explain the idea very clearly >  but I really think it was a good idea,, > >  could someone

Re: [PHP-DEV] [VOTE]strn(case)cmp supporting a negative length as its third paramter

2011-08-05 Thread Laruence
Hi: I am not good at english, so I could not explain the idea very clearly but I really think it was a good idea,, could someone plz make a decision that make this patch applied to svn trunk? thanks 2011/8/2 Jan Dolecek : > This would make perfect sense with constant strings and constant > l

Re: [PHP-DEV] An implementation of a short syntax for closures

2011-08-05 Thread Ryan McCue
Brian Moon wrote: > Is typing really the bottleneck for developers these days? I must suck > then. I spend most of my day thinking or waiting on version control, > testing and deploy applications, not typing. +1. I don't think reducing key strokes should be a goal at all, the goal should be readab

Re: [PHP-DEV] [VOTE] Weak References

2011-08-05 Thread Lars Schultz
Am 05.08.2011 14:58, schrieb John LeSueur: Are there other advantages I'm missing? If I may, I'll respond to your questions with 3 examples. A) Naive, straight forward approach (this will run out of memory if objects are heavy) http://pastie.org/2325252 B) Previous approach taking memory int

[PHP-DEV] [PATCH] 5.4 doesn't build with Clang 2.9

2011-08-05 Thread Gwynne Raskind
There's bug in LLVM 2.9's assembler which causes the build to fail on the inline assembly, specifically the fsubp instruction. The bug is LLVM #9164 (http://llvm.org/bugs/show_bug.cgi?id=9164). As I lack Zend karma, I've attached a patch to fix this issue for affected Clang builds. I've tested it o

Re: [PHP-DEV] [VOTE] Weak References

2011-08-05 Thread John LeSueur
On Thu, Aug 4, 2011 at 2:53 PM, Ferenc Kovacs wrote: > > On Thu, Aug 4, 2011 at 6:35 PM, Stas Malyshev wrote: > > Hi! > > On 8/4/11 5:34 AM, Lars Schultz wrote: > >>> > >>> Do not keep object references, keep object IDs. This would make your > >>> code a bit more verbose and a bit slower, but wea

Re: [PHP-DEV] 5.4 and safemode

2011-08-05 Thread Kalle Sommer Nielsen
Hi Keloran 2011/7/28 Keloran : > I noticed that in revision > *313784 >  *it is checking for safemode/open basedir, but isn't safemode being dropped > from 5.4 (if going by the RFC), since it was deprecated in 5.3 ?, unless im >

Re: [PHP-DEV] TameJS syntax for Async/Parallel execution in PHP

2011-08-05 Thread Jezz Goodwin
Ah, I've just done a bit of reading in to the PHP MySQL native driver. It is already possible to do async mysql calls. The documentation in mysqli::query (http://www.php.net/manual/en/mysqli.query.php) references MYSQL_ASYNC. So, if you're just using Mysql, I think there is enough functionali

Re: [PHP-DEV] TameJS syntax for Async/Parallel execution in PHP

2011-08-05 Thread Jezz Goodwin
This looks similar to Twisted in Python (http://twistedmatrix.com/trac/) and NodeJS (http://nodejs.org/) which are both non-blocking event driven IO engines. The actual event driven side of things could be written today in PHP. There's nothing stopping you from writing an event call stack that