Re: [PHP-DEV] php interpreter

2012-05-22 Thread Stas Malyshev
Hi! >> I am new to php runtime. i am doing some research on runtime >> interpreter. can anyone please tell me where the interpreter of the >> php runtime is ? which file ? and does the php runtime has a JIT >> compiler ? PHP compiles source code into Zend Engine bytecode - this is done by the com

Re: [PHP-DEV] Catchable - marking methods just like static?

2012-05-22 Thread Richard Lynch
On Tue, April 3, 2012 9:02 pm, Alan Knowles wrote: > I just saw Daniel changing some of the PEAR classes to use Exceptions, > and it's pretty clear that this could cause havoc with the end users. > The problem being that there is no 'soft' landing for the migration > process. If I understand set_e

Re: [PHP-DEV] 2/3 = ??? Re: [PHP-DEV] [VOTE] Vote change for empty() RFC

2012-05-22 Thread Sanford Whiteman
> Whether that article addresses rounding up, down or sideways, it's an > awfully long article for what should be a fairly simple thing... It does seem long-winded toward the top. I guess it's notable that in all that text, it doesn't even note the floor/ceiling concept. I interpret the absence as

Re: [PHP-DEV] 2/3 = ??? Re: [PHP-DEV] [VOTE] Vote change for empty() RFC

2012-05-22 Thread Richard Lynch
On Tue, May 22, 2012 1:51 pm, Sanford Whiteman wrote: >> Apparently, we are not the only ones confused by edge cases: > >> http://en.wikipedia.org/wiki/Supermajority > > Can you point to where there's any suggestion of using the ceiling > (rounding up) instead of requiring whole persons? In fact, t

Re: [PHP-DEV] 2/3 = ??? Re: [PHP-DEV] [VOTE] Vote change for empty() RFC

2012-05-22 Thread Sanford Whiteman
> I'm not sure I understand where the conflict is. 2/3 * 50 == 33 1/3. > Therefore, 33 states would be just below the required 2/3, while 34 states > would be just above it. So the 34 figure you quoted seems to match this > perfectly. > The article does mention some ambiguity, but that's pertai

Re: [PHP-DEV] 2/3 = ??? Re: [PHP-DEV] [VOTE] Vote change for empty() RFC

2012-05-22 Thread Kris Craig
On Tue, May 22, 2012 at 11:51 AM, Sanford Whiteman < swhitemanlistens-softw...@cypressintegrated.com> wrote: > > Apparently, we are not the only ones confused by edge cases: > > > http://en.wikipedia.org/wiki/Supermajority > > Can you point to where there's any suggestion of using the ceiling > (r

Re: [PHP-DEV] 2/3 = ??? Re: [PHP-DEV] [VOTE] Vote change for empty() RFC

2012-05-22 Thread Sanford Whiteman
> Apparently, we are not the only ones confused by edge cases: > http://en.wikipedia.org/wiki/Supermajority Can you point to where there's any suggestion of using the ceiling (rounding up) instead of requiring whole persons? In fact, the Wikipedia page matter-of-factly says "...two thirds (curren

Re: [PHP-DEV] APC benchmark

2012-05-22 Thread Tom Boutell
Including Wordpress in your test does sound fairly realistic actually, but it's a good sign that something else becomes the bottleneck with APC enabled (: On Tue, May 22, 2012 at 12:46 PM, Mohammad Saleh wrote: > Thank you for the feedback Tom. > > I actually created a simulated test with jmeter

RE: [PHP-DEV] APC benchmark

2012-05-22 Thread Mohammad Saleh
Thank you for the feedback Tom. I actually created a simulated test with jmeter and wordpress and was testing that with and without apc (simulation of a set of authors and readers). Once I turned on APC, I realized my db server became a bottleneck and I was not able to test the max throughput.

Re: [PHP-DEV] APC benchmark

2012-05-22 Thread Tom Boutell
You might be better off testing a nontrivial case like a framework based web application's homepage with and without APC turned on for 100 fetches. That's where APC really shines. On Tue, May 22, 2012 at 11:18 AM, Mohammad Saleh wrote: > > All, > > I was looking for a standard benchmark script th

[PHP-DEV] APC benchmark

2012-05-22 Thread Mohammad Saleh
All, I was looking for a standard benchmark script that I could run with and without apc caching to see the general gains. Is there something that is used by the internals team for such tests? If not, are there any recommendations? Thanks, Mohammad

Re: [PHP-DEV] php interpreter

2012-05-22 Thread Richard Lynch
On Wed, May 9, 2012 5:05 pm, Xin Tong wrote: > I am new to php runtime. i am doing some research on runtime > interpreter. can anyone please tell me where the interpreter of the > php runtime is ? which file ? and does the php runtime has a JIT > compiler ? I believe the interpreter is built out

[PHP-DEV] 2/3 = ??? Re: [PHP-DEV] [VOTE] Vote change for empty() RFC

2012-05-22 Thread Richard Lynch
On Mon, May 21, 2012 5:22 pm, Sanford Whiteman wrote: > Ah, this is why one should trust a coder over a butler: > > http://www.ask.com/answers/112530521/5-people-are-voting-what-is-2-3-s-of-a-majority Regarding the 2/3 super-majority rule... I thought I'd check the non-authorative but always inte

Re: [PHP-DEV] Re: [VOTE] Vote change for empty() RFC

2012-05-22 Thread Richard Lynch
On Sun, May 20, 2012 5:44 pm, Pierre Joye wrote: > On Sun, May 20, 2012 at 11:03 PM, Rafael Dohms > wrote: >> On Mon, May 14, 2012 at 1:16 PM, Anthony Ferrara >> wrote: >> >>> I had meant to reply to the list, but I had replied to Stas >>> directly. >>> I would be happy to change my vote from iss

Re: [PHP-DEV] memory usage ouchy

2012-05-22 Thread Tom Boutell
Actually, I just updated Rasmus' demo program to use assocative arrays instead of objects. In PHP 5.4.x, the associative array version uses more memory than the object oriented version. That's because PHP 5.4.x is using a flat array for predeclared properties, as was mentioned earlier by Gustavo.

Re: [PHP-DEV] [VOTE] Vote change for empty() RFC

2012-05-22 Thread Pierre Joye
hi Lars, On Mon, May 21, 2012 at 10:36 PM, Lars Strojny wrote: > Hi Rafael, > > hope it’s ok I've reopened the vote temporarily, but you’ve got the missing > vote. You have what? That's not that ok actually Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -