Re: [PHP-DEV] Run Time Cache RFC

2010-05-21 Thread Dmitry Stogov
Hi Jones, Christopher Jones wrote: Dmitry Stogov wrote: Hi, I'm proposing another optimisation technique implementation for PHP which makes up to 20% speed up on synthetic tests and up to 8% speed up on real-life applications. The technique is similar to inline caches which is

[PHP-DEV] keeping ref var_hash within recursive serialize() calls

2010-05-21 Thread Michael Wallner
Hi, I prepared a patch [1] which enables serialize() to keep track of object/variable references through its var_hash throughout recursive calls to serialize(). See the test included in the patch respectively bug #45706 [2] what this exactly means. It also has the side affect that the hack

[PHP-DEV] Re: keeping ref var_hash within recursive serialize() calls

2010-05-21 Thread Michael Wallner
On 05/21/2010 10:46 AM, Michael Wallner wrote: See the test included in the patch respectively bug #45706 [2] what this exactly means. [2]http://bugs.php.net/45706 Sorry, wrong bug referenced. The request I actually meant is 36424: http://bugs.php.net/36424 Mike -- PHP Internals - PHP

[PHP-DEV] Fixes for parse_url, bug 50563

2010-05-21 Thread Ralph Schindler
Hey all, Attached is a patch to remove the warning from parse_url() in situations where parse_url() cannot actually parse the url. The bug report also claims there should be a new feature for understanding why a parsed url failed. That code currently does not exist, and the current warning

Re: [PHP-DEV] Fixes for parse_url, bug 50563

2010-05-21 Thread Ralph Schindler
Really attached this time. Attached is a patch to remove the warning from parse_url() in situations diff --git a/ext/standard/tests/url/parse_url_basic_001.phpt b/ext/standard/tests/url/parse_url_basic_001.phpt index 3d50689..7b9d513 100644 --- a/ext/standard/tests/url/parse_url_basic_001.phpt

Re: [PHP-DEV] Fixes for parse_url, bug 50563

2010-05-21 Thread Brian Moon
+1 Brian. http://brian.moonspot.net/ On 5/21/10 10:38 AM, Ralph Schindler wrote: Hey all, Attached is a patch to remove the warning from parse_url() in situations where parse_url() cannot actually parse the url. The bug report also claims there should be a new feature for

Re: [PHP-DEV] Constant and expression ?

2010-05-21 Thread Stas Malyshev
Hi! Following Richard's e-mail I created a patch and a RFC ( http://wiki.php.net/rfc/enum ) to introduce the enum language structure. I'm not sure what exactly enums would add except for inability to figure out what is the actual value of the constant. IMHO it just makes code less

Re: [PHP-DEV] Constant and expression ?

2010-05-21 Thread Pierrick Charron
I agree that enum make more sense when it's a type but I disagree with the fact that it make code less understandable. The goal of this patch is to make it easy to create a list of constants when the value is not necessarily important (For example when you create a lexer you don't mind if the

Re: [PHP-DEV] Æ

2010-05-21 Thread Hannes Magnusson
On Thu, May 20, 2010 at 11:28, Frederic Hardy frederic.ha...@mageekbox.net wrote: 1) What is exactly zend multibyte support ? Not something you should use without knowing exactly what it is 2) Is it normal that phar support is broken when i use it ? No. Definitely not. Please file a bug

Re: [PHP-DEV] Constant and expression ?

2010-05-21 Thread Stas Malyshev
Hi! I agree that enum make more sense when it's a type but I disagree with the fact that it make code less understandable. The goal of this patch is to make it easy to create a list of constants when the value is not necessarily important (For example when you create a lexer you don't mind if

[PHP-DEV] nginx + php-fcgi : 0day exploit ?

2010-05-21 Thread Jérôme Loyet
Hi guys, On the nginx mailing list, there is an interesting conversation about the usage of php through fastcgi with nginx which can cause a security hole: http://forum.nginx.org/read.php?2,88845 I don't really know the origin of the fix_pathinfo ini variable. So I don't know if it's really a

Re: [PHP-DEV] Constant and expression ?

2010-05-21 Thread Alban LEROUX
On 2010-05-21 20:12:18 +0200, Stas Malyshev said: Hi! I agree that enum make more sense when it's a type but I disagree with the fact that it make code less understandable. The goal of this patch is to make it easy to create a list of constants when the value is not necessarily important (For