Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / NEWS

2006-03-13 Thread Steph Fox
Where would you want to start UPGRADING from? The main problem I faced with the 5.1.0 version was not knowing how far back to go... or what to count 'in'. E.g. something that was only in CVS for a few weeks and no releases - should that be included? Needs some thought for 6.0 - Orig

Re: [PHP-DEV] Re: Calling performance geeks

2006-03-13 Thread Ron Korving
If this is possible, like Dmitry said, with a macro, that would be interesting. I'm curious what this macro would look like. Personally, I tend to go for the less readable solution if the performance advantage is definately there. A little comment to the code should always be able to clearify i

[PHP-DEV] Re: [PHP-CVS] cvs: php-src / NEWS

2006-03-13 Thread Andi Gutmans
Pierre and all, A while ago I suggested to add an UPGRADING file for the PHP 6 upgrade, where we'd document every time we break BC and how to solve that. For example, with nuking register_globals we could write what we broke, and if really needed, what 1-2 liners they can write to get the sam

RE: [PHP-DEV] Re: Calling performance geeks

2006-03-13 Thread Andi Gutmans
I don't think it gets called enough to be substantial and worth making this harder to maintain (unless I'm proven wrong :) Andi At 10:51 PM 3/13/2006, Dmitry Stogov wrote: In case if this routine is really called to frequency, we can use readable macros for this optimization. Thanks. Dmitry.

RE: [PHP-DEV] Re: Calling performance geeks

2006-03-13 Thread Dmitry Stogov
In case if this routine is really called to frequency, we can use readable macros for this optimization. Thanks. Dmitry. > -Original Message- > From: Andi Gutmans [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 14, 2006 8:57 AM > To: Marcus Boerger; Ron Korving > Cc: internals@lists.ph

Re: [PHP-DEV] Re: Calling performance geeks

2006-03-13 Thread Andi Gutmans
This one isn't a good idea. I bet it won't affect overal performance but makes the code much less maintainable. The others look OK (just took a quick glance) At 01:20 PM 3/13/2006, Marcus Boerger wrote: > - > In sapi/apache/mod_php5.c in the function php_apache_flag_handler_ex(), > the or

Re: [PHP-DEV] Re: Calling performance geeks

2006-03-13 Thread Marcus Boerger
Hello Ron, i was under the impression you were already contributing to one of the extensions. And well 5.1.2 obviously differs pretty much from 5.1.3 right now especially in that file. To apply for a cvs account you'd first send in some patches and mostly you would do that for a certain extensio

[PHP-DEV] ZSTR cast to union not working on g++

2006-03-13 Thread Cristiano Duarte
In zend.h, ZSTR is defined like this: typedef union _zstr { char *s; UChar *u; void *v; } zstr; #ifdef __GNUC__ # define ZSTR(x)((zstr)(x)) # define NULL_ZSTR ZSTR((void*)NULL) # define EMPTY_ZSTR ZSTR("\0\0") #else extern ZEND_API zstr null_zstr;

Re: [PHP-DEV] Re: Calling performance geeks

2006-03-13 Thread Ron Korving
Hi Marcus, Actually, I was looking at the 5.1.2, not 4.4. And 5.1.2 can't differ that much from 5.1/HEAD, right? I'm not sure if I'm ready for CVS access, since I don't know enough of the architecture of the system as a whole. I wouldn't wanna break anything while trying to make things better. If

Re: [PHP-DEV] Calling performance geeks

2006-03-13 Thread Andi Gutmans
Hey, Thanks for posting this info. It definitely sounds like we should concentrate on the 0 length script at this point. I saw Dmitry already made some good improvements. It'd be helpful if others also run such an empty benchmark because it seems like the two trees are on par now and that it

Re: [PHP-DEV] Re: Calling performance geeks

2006-03-13 Thread Marcus Boerger
Hello Ron, just as a clarification, you looked at unchanged 4.4 code that is fixed since long in 5.1/HEAD. Please always first look into 5.1/HEAD since 4.4 will only get real fixes but no code beautifying. Also we always start to modify HEAD first and MFH from there. Doing it the otherway round

Re: [PHP-DEV] Re: Calling performance geeks

2006-03-13 Thread Ron Korving
Hi, I don't have access and I don't need to do the changes myself, but if you prefer it, I will (provided I get access of course). Ron "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Ron, > > that stuff is only used in edgcases however it is more of a fix

RE: [PHP-DEV] Give the Language a Rest motion

2006-03-13 Thread Scott A. Guyer
FWIW, I support this motion. I am never a fan of the software lifecycle that looks like "here's a useful technology, now we just need this, and this...etc. ad nausea". Why? (1) Adds complexity (2) You often get pulled out of your original design philosophy which puts the code's architectu

Re: [PHP-DEV] Re: Calling performance geeks

2006-03-13 Thread Marcus Boerger
Hello Ron, that stuff is only used in edgcases however it is more of a fix than an optimization. Do you have access and want to do the changes yourself? regards marcus Monday, March 13, 2006, 10:08:30 PM, you wrote: > Hi, > If you're even interested in the tinyest of optimizations, you may w

[PHP-DEV] Re: Calling performance geeks

2006-03-13 Thread Ron Korving
Hi, If you're even interested in the tinyest of optimizations, you may wanna read this. I was just going through the php code. I'm not familiar with it at all, so I don't know which functions are the bottlenecks, so I can't help in optimizing the big picture. But I had little else to do right now

Re: [PHP-DEV] Calling performance geeks

2006-03-13 Thread Rasmus Lerdorf
Andi Gutmans wrote: Thanks for posting this info. It definitely sounds like we should concentrate on the 0 length script at this point. I saw Dmitry already made some good improvements. Yup, that patch helped. And I guess on some architectures 5.1 is faster now, but there is still a bit of a

Re: [PHP-DEV] Calling performance geeks

2006-03-13 Thread Marcus Boerger
Hello Dmitry, if you mean the hash stuff you changed then you did quite some mistakes. Because the normal apply functions don't respect the ZEND_HASH_* consts as i mailed last week. marcus Monday, March 13, 2006, 1:12:01 PM, you wrote: > Hi Rasmus, > I made two improvements in 5.1 and run th

Re: [PHP-DEV] Calling performance geeks

2006-03-13 Thread Nuno Lopes
The difference is probably due to the big cache that Centrino has. So the problem with AMD can be a high number of cache-misses. Try to compile with a recent compiler (aka gcc 4) with -Os, to see if it improves. I do also think that the Zend Engine may be inlining too many functions. The kernel

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-13 Thread Andrei Zmievski
Like case-sensitivity. -Andrei P.S. Joking, I am _just_ JOKING! Have a sense of humor, people. On Mar 12, 2006, at 8:50 AM, Pierre wrote: On 3/12/06, Steph Fox <[EMAIL PROTECTED]> wrote: Lukas, that's extremely odd. Check history! (when most of the core team agreed on jump originally, fo

[PHP-DEV] RESOLVED: Template Linkage for a PhpClassFactory in C++

2006-03-13 Thread an . dromeda
C++ Templates: The complete guide (David Vandevoorde) addresses the issue. First workaround is simply to include what would normally be the .cpp code in the .h header. Not sure that's ideal, but it works, so that's the issue resolved, (or sidelined for now). Apparently there's also export, but fi

[PHP-DEV] Template Linkage for a PhpClassFactory in C++

2006-03-13 Thread an . dromeda
The saga continues, with progress towards a (hoped for) marriage between Php and C++ that 'looks like' C++ to the extension developer. I'm exploring a templated version of PhpClassFactory (vs possible root PhpClassFactoryObject) which is making progress, but a linking error not dissimilar to sepa

Re: [PHP-DEV] Multiple MySQL Connections

2006-03-13 Thread Antony Dovgal
On 13.03.2006 18:05, Nick Mitin wrote: I was trying to create 2 mysql connections. $l1 = mysql_pconnect(“localhost”, “user”, “pass”); mysql_select_db(“db1”, $l1); $l2 = mysql_pconnect(“localhost”, “user”, “pass”); mysql_select_db(“db1”, $l2); The $l1 and $l2 now contains different resource ids

[PHP-DEV] Re: Multiple MySQL Connections

2006-03-13 Thread Lukas Smith
Nick Mitin wrote: I was trying to create 2 mysql connections. this is a user question and should therefore not be directed at the internals list.. 1) persistent connections have issues: http://de2.php.net/manual/en/features.persistent-connections.php 2) use the new link parameter to get a n

[PHP-DEV] Multiple MySQL Connections

2006-03-13 Thread Nick Mitin
I was trying to create 2 mysql connections. $l1 = mysql_pconnect(“localhost”, “user”, “pass”); mysql_select_db(“db1”, $l1); $l2 = mysql_pconnect(“localhost”, “user”, “pass”); mysql_select_db(“db1”, $l2); The $l1 and $l2 now contains different resource ids (#1, #2), but mysql_query(“select * fro

Re: [PHP-DEV] Calling performance geeks

2006-03-13 Thread Edin Kadribasic
Yes, fresh CVS update of 4.4, 5.1 and apc. Edin Dmitry Stogov wrote: > Have you rebuilt 5.1 HEAD today? > > Dmitry. > > >>-Original Message- >>From: Edin Kadribasic [mailto:[EMAIL PROTECTED] >>Sent: Monday, March 13, 2006 5:32 PM >>To: Dmitry Stogov >>Cc: 'Rasmus Lerdorf'; 'internals

RE: [PHP-DEV] Calling performance geeks

2006-03-13 Thread Dmitry Stogov
Have you rebuilt 5.1 HEAD today? Dmitry. > -Original Message- > From: Edin Kadribasic [mailto:[EMAIL PROTECTED] > Sent: Monday, March 13, 2006 5:32 PM > To: Dmitry Stogov > Cc: 'Rasmus Lerdorf'; 'internals' > Subject: Re: [PHP-DEV] Calling performance geeks > > > I also see very little

Re: [PHP-DEV] Calling performance geeks

2006-03-13 Thread Edin Kadribasic
I also see very little difference (in favor of php4) on my test box (Dual Xeon 3.2GHz, running Linux 2.6.12 Fedora Core 3): php-5.1 (top.php) plain 3723 req/sec apc stat=1 6220 req/sec apc stat=0 6278 req/sec php-4.4 (4top.php) plain 3978 req/sec apc stat=1 6421 req/sec apc stat=0 6650 req/sec p

RE: [PHP-DEV] Calling performance geeks

2006-03-13 Thread Dmitry Stogov
Hi Rasmus, I made two improvements in 5.1 and run the same bechmarks on Intel Pentium M 1.5GHz 2M cache. top/top5/top10 php-5.1 740 550 430 req/sec php-4.4 680 440 290 req/sec May be the problem is AMD chip? :) Thanks. Dmitry. > -Original Me

Re: [PHP-DEV] Calling performance geeks

2006-03-13 Thread Rasmus Lerdorf
Marcus Boerger wrote: Hello Rasmus, not a thing for 5.1 or 4.4 but in 5.2 we could change to a case insensitive comparison function. That would allow us to change nearly all of strcasecmp to memcmp. And in may cases it means one less allocation. And it also means a lot of less code. The casins

Re: [PHP-DEV] Calling performance geeks

2006-03-13 Thread Marcus Boerger
Hello Rasmus, not a thing for 5.1 or 4.4 but in 5.2 we could change to a case insensitive comparison function. That would allow us to change nearly all of strcasecmp to memcmp. And in may cases it means one less allocation. And it also means a lot of less code. The casinsensitive comparision is

Re: [PHP-DEV] RESOLVED: INFO: INIT_CLASS_ENTRY fails on various char entry formats

2006-03-13 Thread Marcus Boerger
Hello, that's by design, we don't want to use strlen on ever execution. Instead the macro use sizeof() which is done at compile time. The workaround would be to set the string lentgh after using the macro which works pretty well. Sidenote, you should be using 'const char* var = "string";' or even

[PHP-DEV] PHP 5 Bug Summary Report

2006-03-13 Thread internals
PHP 5 Bug Database summary - http://bugs.php.net Num Status Summary (458 total including feature requests) ===[*Compile Issues]== 36404 Open configure script cannot complete libxml build ===

Re: [PHP-DEV] CVS Account Request: janwb

2006-03-13 Thread Derick Rethans
On Sat, 11 Mar 2006, Janwillem Borleffs wrote: > Translating the PHP documentation to Dutch. Can you approve this one please? regards, Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] PHP 4 Bug Summary Report

2006-03-13 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (632 total including feature requests) ===[*Configuration Issues] 36257 Open php ini master values are reset between vhosts ==