Re: [PHP-DEV] Re: another fix for max_input_vars.

2012-01-05 Thread Laruence
On Thu, Jan 5, 2012 at 3:57 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: On 01/04/2012 11:49 PM, Laruence wrote: Hi:   there is one way  maybe is a good try.   when resize hashtable,  we don't just dobule the size,  instead, we increase the hashtable size with a random delta  what do you

Re: [PHP-DEV] Re: another fix for max_input_vars.

2012-01-05 Thread Laruence
On Thu, Jan 5, 2012 at 4:04 PM, Laruence larue...@php.net wrote: On Thu, Jan 5, 2012 at 3:57 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: On 01/04/2012 11:49 PM, Laruence wrote: Hi:   there is one way  maybe is a good try.   when resize hashtable,  we don't just dobule the size,  instead, we

Re: [PHP-DEV] Re: another fix for max_input_vars.

2012-01-05 Thread Laruence
On Thu, Jan 5, 2012 at 4:11 PM, Laruence larue...@php.net wrote: On Thu, Jan 5, 2012 at 4:04 PM, Laruence larue...@php.net wrote: On Thu, Jan 5, 2012 at 3:57 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: On 01/04/2012 11:49 PM, Laruence wrote: Hi:   there is one way  maybe is a good try.  

[PHP-DEV] Yet another fix for max_input_vars

2012-01-05 Thread Laruence
Hi: the origin thread is too long, so I open a new thread for this. I have made another patch try to fix this issue. the key point is, randomizing the table size(tableMask). instead of double the the table size in zend_hash_do_resize, I increase the table size with a random

Re: [PHP-DEV] Re: Status update: Git Migration

2012-01-05 Thread David Soria Parra
On 2012-01-04, Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net wrote: On 03/01/12 18:17, Matthew Weier O'Phinney wrote: On 2011-12-29, David Soria Parrad...@php.net wrote: here is a short update on the current status of the git migration. Thanks for all the ground work you're doing making

Re: [PHP-DEV] Re: another fix for max_input_vars.

2012-01-05 Thread Derick Rethans
On Wed, 4 Jan 2012, Rasmus Lerdorf wrote: On 01/04/2012 11:09 PM, Stas Malyshev wrote: I think we'd need and API to access the seed value and to calculate hash for given seed value. That would probably allow extensions that store hashes with some additional work to do it properly.

Re: [PHP-DEV] Re: Status update: Git Migration

2012-01-05 Thread Lester Caine
David Soria Parra wrote: But is the Mercurial mirror stay up (aka hg.php.net)? Not for the moment. The extra work to setup the mirrors is too high. Once we are on git, i will setup a git-hg read only mirror (you can also use hg-git to commit back to git). If you urgently need the mirrors up, I

[PHP-DEV] Re: Yet another fix for max_input_vars

2012-01-05 Thread Laruence
Hi: run bench.php: *before patched: $ sapi/cli/php Zend/bench.php simple 0.374 simplecall 0.720 simpleucall0.600 simpleudcall 0.633 mandel 1.161 mandel21.632 ackermann(7) 0.810 ary(5) 0.108 ary2(5)0.098

Re: [PHP-DEV] Yet another fix for max_input_vars

2012-01-05 Thread Nikita Popov
On Thu, Jan 5, 2012 at 9:53 AM, Laruence larue...@php.net wrote: Hi:    the origin thread is too long, so I open a new thread for this.    I have made another patch try to fix this issue.    the key point is, randomizing the table size(tableMask).    instead of double the the table size in

Re: [PHP-DEV] Yet another fix for max_input_vars

2012-01-05 Thread Etienne Kneuss
Hi, On Thu, Jan 5, 2012 at 13:05, Nikita Popov nikita@googlemail.com wrote: On Thu, Jan 5, 2012 at 9:53 AM, Laruence larue...@php.net wrote: Hi:    the origin thread is too long, so I open a new thread for this.    I have made another patch try to fix this issue.    the key point is,

Re: [PHP-DEV] CS random values

2012-01-05 Thread Tom Worster
On 12/29/11 2:42 PM, Pierre Joye pierre@gmail.com wrote: On Thu, Dec 29, 2011 at 2:12 PM, Tom Worster f...@thefsb.org wrote: Fair points but not germane to my main argument: I proposed that the base PHP API should allow the PHP programmer uniform access to the system's CS random byte

Re: [PHP-DEV] Yet another fix for max_input_vars

2012-01-05 Thread Laruence
Hi, thanks to sesser, he point out that this won't work for string keys, so, I guess, we should change the hash logic in the mean time.. I will keep trying. thanks On Thu, Jan 5, 2012 at 9:12 PM, Etienne Kneuss col...@php.net wrote: Hi, On Thu, Jan 5, 2012 at 13:05, Nikita Popov

[PHP-DEV] Wiki account application? [Re: [PHP-DEV] CS random values]

2012-01-05 Thread Tom Worster
On 12/29/11 2:03 PM, Philip Olson phi...@roshambo.org wrote: Hi Tom, I fully support a one-method-to-rule-them-all for generating random sauce. Long ago I created an incomplete RFC on the subject, but please feel free to ignore and create a new/better one. There are a couple of old related RFC

Re: [PHP-DEV] Wiki account application? [Re: [PHP-DEV] CS random values]

2012-01-05 Thread Ferenc Kovacs
Thanks, Philip. How do I apply for a wiki account and RFC authoring privileges? (I googled but did not find.) one can register for a wiki account (you already did that AFAIK), wiki karma is handed out on request through php-webmaster@ (I cc-ed the list now), usually Hannes manage that. --

[PHP-DEV] Re: Wiki account application? [Re: [PHP-DEV] CS random values]

2012-01-05 Thread Philip Olson
On Jan 5, 2012, at 6:56 AM, Tom Worster wrote: On 12/29/11 2:03 PM, Philip Olson phi...@roshambo.org wrote: Hi Tom, I fully support a one-method-to-rule-them-all for generating random sauce. Long ago I created an incomplete RFC on the subject, but please feel free to ignore and create a

[PHP-DEV] Bug 48417 and PHP 5.4

2012-01-05 Thread Edward Z. Yang
Hello all, I know it seems like there always is infinite pile of work to do before the PHP 5.4 release comes out, but I think this bug is worth looking at. https://bugs.php.net/bug.php?id=52211 I suggest reverting r300894, since this causes //IGNORE to stop working. Preserving functionality

[PHP-DEV] PHP5.4 RC4 strange behavior

2012-01-05 Thread Daniel Henning
Hi, i've searched bugs database a lot but couldn't find something about this one. Setup: Windows Vista PHP5.4 RC4 php_pdo_sqlsrv as additional extension Code: ?php $iTest = 1; if($iTest 90) {   //do something; } $oTest = new PDO('sqlsrv:Server=server;Database=db', 'user', 'pass');

Re: [PHP-DEV] Re: Status update: Git Migration

2012-01-05 Thread Ivan Enderlin @ Hoa
Hi :-), On 05/01/12 10:52, David Soria Parra wrote: On 2012-01-04, Ivan Enderlin @ Hoaivan.ender...@hoa-project.net wrote: - old git mirrors are down the old server was shut down. mirrors have not been setup so far. But is the Mercurial mirror stay up (aka hg.php.net)? Not for the

Re: [PHP-DEV] Yet another fix for max_input_vars

2012-01-05 Thread Laruence
Hi: so here is the problem, the number index collision can be fixed by this idea (increase table size with a random delta). now we need add the random number into DJB hash, and I am not good at math, so Calling for help, and the random number will be stored in a process global