Re: [PHP-DEV] Randomize hash-function in php

2012-03-17 Thread Xinchen Hui
Sent from my iPhone 在 2012-3-18,13:57,Tjerk Anne Meesters 写道: > On Sun, Mar 18, 2012 at 8:12 AM, Stas Malyshev wrote: >> Obvious solution would be to use a salt for the hash, which prevents blind >> pre-computing of hash collisions. However, due to the fact that PHP hash >> values can be reused

Re: [PHP-DEV] Randomize hash-function in php

2012-03-17 Thread Tjerk Anne Meesters
On Sun, Mar 18, 2012 at 8:12 AM, Stas Malyshev wrote: > Obvious solution would be to use a salt for the hash, which prevents blind > pre-computing of hash collisions. However, due to the fact that PHP hash > values can be reused in different processes by bytecode caches, implementing > it properly

Re: [PHP-DEV] Scalar-type-hinting - which way is the best to go?

2012-03-17 Thread Marco Pivetta
Thank you for clarifying some things :) >4. Strict weak type hinting: > > This realm is the most likely to succeed because the core already does > something like this for internal functions (via zend_parse_parameters). > This balances utility (enforcing the type) with fundamental language des

RE: [PHP-DEV] Scalar-type-hinting - which way is the best to go?

2012-03-17 Thread John Crenshaw
From: Marco Pivetta [mailto:ocram...@gmail.com] > > tl;dr: "strict type hinting" and "Boxing based type hinting" (the second one > with some changes). > > Just read through it, and I was unaware there's still ideas to continue > working on type hinting in PHP. There's been some recent discussi

Re: [PHP-DEV] Randomize hash-function in php

2012-03-17 Thread Stas Malyshev
Hi! Anyway I was looking at the hash function in PHP the other week, and was playing around with some different implementations. DJBX33A is fast, which I guess is why PHP uses it as it is hit so many times in the execution. Some time ago we've checked various implementations of hash functions

Re: [PHP-DEV] Randomize hash-function in php

2012-03-17 Thread Sam
On 17/03/12 23:17, Simon Schick wrote: Hi, All I just came around that talk a couple of days ago .. http://www.youtube.com/watch?v=R2Cq3CLI6H8 I don't know much about hash-maps and internal php-stuff at all, but they say that the fix provided in 5.3.9 (and 5.4.0) is more a work-around than a fi

Re: [PHP-DEV] Randomize hash-function in php

2012-03-17 Thread Stas Malyshev
Hi! I don't know much about hash-maps and internal php-stuff at all, but they say that the fix provided in 5.3.9 (and 5.4.0) is more a work-around than a fix ... This is true, it is a workaround in a meaning that the hash stays the same, but the fix prevents one from using excessive amounts o

[PHP-DEV] Randomize hash-function in php

2012-03-17 Thread Simon Schick
Hi, All I just came around that talk a couple of days ago .. http://www.youtube.com/watch?v=R2Cq3CLI6H8 I don't know much about hash-maps and internal php-stuff at all, but they say that the fix provided in 5.3.9 (and 5.4.0) is more a work-around than a fix ... Would it be an option to provide a

Re: [PHP-DEV] Scalar-type-hinting - which way is the best to go?

2012-03-17 Thread Adam Jon Richardson
On Sat, Mar 17, 2012 at 10:37 AM, Marco Pivetta wrote: > Unenforced type hinting: > - If you have mixed types, then you just don't need type hinting. Lazy > devs can still avoid using it. Lazyness shouldn't really be > encouraged, so > providing some kind of "backwards compatibility

Re: [PHP-DEV] Scalar-type-hinting - which way is the best to go?

2012-03-17 Thread Marco Pivetta
tl;dr: "strict type hinting" and "Boxing based type hinting" (the second one with some changes). Just read through it, and I was unaware there's still ideas to continue working on type hinting in PHP. That's good news, at least for me :) I'm just lurking around here, but if my thoughts can help, h

[PHP-DEV] Scalar-type-hinting - which way is the best to go?

2012-03-17 Thread Simon Schick
Hi, all Today I read a post around that: http://nikic.github.com/2012/03/06/Scalar-type-hinting-is-harder-than-you-think As some of us are leading to the 3rd and some to the 4th or other ways described in here (I think we can simply exclude the first one ...) Would it be an option (to get this mo

Re: [PHP-DEV] SVN Account Request: laltin

2012-03-17 Thread Simon Schick
2012/3/16 Ángel González > > On 16/03/12 18:45, Lütfi Altın wrote: > > I want to read PHP source and help PHP for further development. > > > You don't need a svn account to read the php source. You can just > download the source from http://php.net/downloads.php#v5 view the > development version a

Re: [PHP-DEV] Q: ZEND_HANDLE_STREAM and wincache extension on PHP 5.4

2012-03-17 Thread Pierre Joye
hi, On Fri, Mar 16, 2012 at 7:49 PM, Gustavo Lopes wrote: > It's best you send him an e-mail to dmi...@zend.com No, it is best to send a mail to internals and cc him. >> I was talking with Pierre yesterday, and there was some question about >> whether there was some distinction between streams