Re: [PHP-DEV] LXR

2010-12-31 Thread Hannes Magnusson
On Fri, Dec 31, 2010 at 21:00, Hannes Magnusson wrote: > On Fri, Dec 31, 2010 at 20:53, Gustavo Lopes wrote: >> On Fri, 31 Dec 2010 19:37:14 -, Michael Maclean >> wrote: >> >>> Hi, >>> I've seen quite a few reports that some people are seeing a CentOS test >>> page when going to http://lxr.p

Re: [PHP-DEV] Re: Zend engine's hashtable performance tweaks

2010-12-31 Thread Stas Malyshev
Hi! Sorry for no attachments in previous message, I think my attachments weren't redirected with message by lists.php.net email confirmation system. I send them again, and for sure I attach links to public copy of them over HTTP: https://gist.github.com/761094 - php-5.3.4-hashtable-optimization.

Re: [PHP-DEV] LXR

2010-12-31 Thread Michael Maclean
On 31/12/10 20:00, Reindl Harald wrote: What poor setup to display software-information on a non-configured hostname even calling ip-address directly instead mod_security blocking such calls The IP of the machine displaying the CentOS page is no longer mine, nor does it have anything to do wit

Re: [PHP-DEV] Re: EBNF

2010-12-31 Thread Stas Malyshev
Hi! But still I have to ask if I'm the only one thinking about this or is there something I'm being completely ignorant about? You're not the only one thinking about it. But so far nobody moved from thinking about it to actually doing it :) -- Stanislav Malyshev, Software Architect SugarCRM

Re: [PHP-DEV] [RFC] Release Process

2010-12-31 Thread Stas Malyshev
Hi! IIRC many deprecation warnings, which totally broke the output. Err, you actually output the warnings in your output? In production?! Please tell me you turned it off now, at least - it would make deprecation warning doubly beneficial. I'd even consider inserting couple of random ones j

Re: [PHP-DEV] RFC - Namespace initializers

2010-12-31 Thread Stas Malyshev
Hi! About namespaced functions and constants, the fact that they are not autoloaded makes them useless for any code that wants some good packaging. For example I looked at the Doctrine2 code, and (tell me if This is not true. You can always load stuff manually - in fact, many languages don't

Re: [PHP-DEV] LXR

2010-12-31 Thread Daniel P. Brown
On Fri, Dec 31, 2010 at 15:00, Hannes Magnusson wrote: > > ns6 is also returning bogus results for prototype.php.net.. > I bet it has something to do with my awesome syntax error in the file > coupleof days ago - ans ns6 isn't smart enough to retrieve the update. > Wise guys tell me bumping the se

Re: [PHP-DEV] LXR

2010-12-31 Thread Daniel Brown
On Fri, Dec 31, 2010 at 15:00, Reindl Harald wrote: > You have to wait unzil the TTL is over > Jesus why is the TTL so hughe? > > lxr.php.net.  61221  IN  A  94.23.222.92 > > [ha...@srv-rhsoft:~]$ dig A lxr.php.net @NS2.EASYDNS.COM > lxr.php.net.            86400   IN      CNAME   sp2.php.net. > s

Re: [PHP-DEV] LXR

2010-12-31 Thread Hannes Magnusson
On Fri, Dec 31, 2010 at 20:53, Gustavo Lopes wrote: > On Fri, 31 Dec 2010 19:37:14 -, Michael Maclean > wrote: > >> Hi, >> I've seen quite a few reports that some people are seeing a CentOS test >> page when going to http://lxr.php.net. I, however, don't. If anyone reading >> this sees this,

Re: [PHP-DEV] LXR

2010-12-31 Thread Reindl Harald
You have to wait unzil the TTL is over Jesus why is the TTL so hughe? lxr.php.net. 61221 IN A 94.23.222.92 [ha...@srv-rhsoft:~]$ dig A lxr.php.net @NS2.EASYDNS.COM lxr.php.net.86400 IN CNAME sp2.php.net. sp2.php.net.86400 IN A 173.236.52.218 BTW:

Re: [PHP-DEV] LXR

2010-12-31 Thread Gustavo Lopes
On Fri, 31 Dec 2010 19:37:14 -, Michael Maclean wrote: Hi, I've seen quite a few reports that some people are seeing a CentOS test page when going to http://lxr.php.net. I, however, don't. If anyone reading this sees this, can you reply and let me know what your DNS resolves lxr.php

[PHP-DEV] LXR

2010-12-31 Thread Michael Maclean
Hi, I've seen quite a few reports that some people are seeing a CentOS test page when going to http://lxr.php.net. I, however, don't. If anyone reading this sees this, can you reply and let me know what your DNS resolves lxr.php.net as? Ideally, the output from dig or dnstracer would be handy.

Re: [PHP-DEV] RFC - Namespace initializers

2010-12-31 Thread Larry Garfield
On Friday, December 31, 2010 7:56:39 am Nicolas Grekas wrote: > Dear all, > > this RFC started by me having a problem on these subjects (not only me > I think) : > - namespaced functions and constants loading, or rather not-autoloading, > - interfaces loading (this time, autoloading). > So, my

Re: [PHP-DEV] [RFC] Release Process

2010-12-31 Thread James Butler
As a 'grown up' you should never expect changes to a system to just work without testing, any change introduces risk, you need to mitigate against that risk by testing. Irrespective of whatever the php release notes say (you did read them didn't you), one should run the new version against your

Re: [PHP-DEV] Re: Zend engine's hashtable performance tweaks

2010-12-31 Thread Pierre Joye
hi, Thanks for the patches :) Can you open a bug report please (and attach the patches to it)? I'm sure this patch will be updated a couple of times before it reaches the repository. Cheers, On Fri, Dec 31, 2010 at 4:58 PM, Marcin Babij wrote: > Sorry for no attachments in previous message, I

Re: [PHP-DEV] Zend engine's hashtable performance tweaks

2010-12-31 Thread Gustavo Lopes
On Fri, 31 Dec 2010 14:40:44 -, Marcin Babij wrote: Why we do this? We run profiling on our production servers and found out that zend_hash_* functions take 10-20% CPU time of request. So there is some room for easy improvements. What was done? - Hash function in zend_hash.h was rebuilt

Re: [PHP-DEV] [RFC] Release Process

2010-12-31 Thread Rasmus Lerdorf
On 12/31/10 3:49 AM, Enrico Weigelt wrote: > * Stas Malyshev wrote: >> Hi! >> >>> Just had such a problem myself a few weeks ago: a minor update >>> (IIRC was from 5.3.2 to 5.3.3) broke virtually all of my web applications >> >> Out of curiosity - what exactly broke it? What change was it? > > II

[PHP-DEV] Re: Zend engine's hashtable performance tweaks

2010-12-31 Thread Marcin Babij
Sorry for no attachments in previous message, I think my attachments weren't redirected with message by lists.php.net email confirmation system. I send them again, and for sure I attach links to public copy of them over HTTP: https://gist.github.com/761094 - php-5.3.4-hashtable-optimization.

Re: [PHP-DEV] Zend engine's hashtable performance tweaks

2010-12-31 Thread Marcin Babij
Sorry, I've attached .patch files, I'm attaching them as .txt now. hi, Did you forget to attach the patch? Attach it as .txt so the list won't reject it. Cheers, On Fri, Dec 31, 2010 at 3:40 PM, Marcin Babij wrote: Hello, I work for social network company, where we were running optimization

Re: [PHP-DEV] Zend engine's hashtable performance tweaks

2010-12-31 Thread Pierre Joye
hi, Did you forget to attach the patch? Attach it as .txt so the list won't reject it. Cheers, On Fri, Dec 31, 2010 at 3:40 PM, Marcin Babij wrote: > Hello, > I work for social network company, where we were running optimization > project. One of it's results is patch to Zend engine's Hashtable

[PHP-DEV] Zend engine's hashtable performance tweaks

2010-12-31 Thread Marcin Babij
Hello, I work for social network company, where we were running optimization project. One of it's results is patch to Zend engine's Hashtable, which we want to share and ask you for comments and improvements. Why we do this? We run profiling on our production servers and found out that zend_

Re: [PHP-DEV] Working with arrays.

2010-12-31 Thread Richard Quadling
On 31 December 2010 14:15, mark skilbeck wrote: > I did it like > so: https://bitbucket.org/winapiforphp/system/src/93583820bbc1/winsystem_registry.c#cl-298 > It's a little messy. I got that. 4 times no less. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O

Re: [PHP-DEV] Working with arrays.

2010-12-31 Thread mark skilbeck
I did it like so: bitbucket.org/winapiforphp/system/src/93583820bbc1/winsystem_registry.c#cl-298 It's a little messy. On Fri, Dec 31, 2010 at 1:48 PM, Richard Quadling wrote: > > Hi. > > What macros exist regarding processing arrays in PHP (core not userland)? > > I want to pass ... > > array('v

Re: [PHP-DEV] Working with arrays.

2010-12-31 Thread Richard Quadling
On 31 December 2010 14:08, Kalle Sommer Nielsen wrote: > Hi Richard > > 2010/12/31 Richard Quadling : >> Hi. >> >> What macros exist regarding processing arrays in PHP (core not userland)? > > Zend hash, see Zend/zend_hash.c for its API. > >> I want to pass ... >> >> array('value1', 'value2', 'val

Re: [PHP-DEV] Working with arrays.

2010-12-31 Thread Kalle Sommer Nielsen
Hi Richard 2010/12/31 Richard Quadling : > Hi. > > What macros exist regarding processing arrays in PHP (core not userland)? Zend hash, see Zend/zend_hash.c for its API. > I want to pass ... > > array('value1', 'value2', 'value3') You would do something like: PHP_FUNCTION(test) { zval *

[PHP-DEV] RFC - Namespace initializers

2010-12-31 Thread Nicolas Grekas
Dear all, this RFC started by me having a problem on these subjects (not only me I think) : - namespaced functions and constants loading, or rather not-autoloading, - interfaces loading (this time, autoloading). About namespaced functions and constants, the fact that they are not autoloaded makes

[PHP-DEV] Working with arrays.

2010-12-31 Thread Richard Quadling
Hi. What macros exist regarding processing arrays in PHP (core not userland)? I want to pass ... array('value1', 'value2', 'value3') to a function and in the function have it converted to 'value1\0value2\0value3\0\0'. Conventionally, I'd need to iterate the array to get the lengths of all the

Re: [PHP-DEV] Re: EBNF

2010-12-31 Thread Enrico Weigelt
* Rune Kaagaard wrote: > Dear internals > > After enviously looking at pythons grammar > (http://docs.python.org/dev/reference/grammar.html) I keep feeling > that PHP is missing out on a lot of interesting meta projects by not > having an official EBNF. ACK. PHP also misses a lot of other fundam

Re: [PHP-DEV] [RFC] Release Process

2010-12-31 Thread Enrico Weigelt
* Stas Malyshev wrote: > Hi! > > >Just had such a problem myself a few weeks ago: a minor update > >(IIRC was from 5.3.2 to 5.3.3) broke virtually all of my web applications > > Out of curiosity - what exactly broke it? What change was it? IIRC many deprecation warnings, which totally broke the

[PHP-DEV] Re: EBNF

2010-12-31 Thread Rune Kaagaard
Dear internals After enviously looking at pythons grammar (http://docs.python.org/dev/reference/grammar.html) I keep feeling that PHP is missing out on a lot of interesting meta projects by not having an official EBNF. Building your own PHP parser is _very_ hard and is PhD (Paul Biggar:) level st

Re: [PHP-DEV] [RFC] Release Process

2010-12-31 Thread Patrick ALLAERT
2010/12/31 Ferenc Kovacs : > On Fri, Dec 31, 2010 at 6:25 AM, Stas Malyshev wrote: [snip] > Btw: maybe we could announce the RCs to a wider audience. > I mean announce it on the site, tweet/blog about it, ask the community for > testing and feedback. > currently only thoose who closely follow the

Re: [PHP-DEV] [RFC] Release Process

2010-12-31 Thread Ferenc Kovacs
On Fri, Dec 31, 2010 at 6:25 AM, Stas Malyshev wrote: > Hi! > > > Just had such a problem myself a few weeks ago: a minor update >> (IIRC was from 5.3.2 to 5.3.3) broke virtually all of my web applications >> > > Out of curiosity - what exactly broke it? What change was it? > > > I got the stran