Re: [PHP-DEV] On closures and lamdba

2010-02-21 Thread Keryx Web
2010-02-21 03:55, Joey Smith skrev: There's a pretty big difference between how PHP implements closures and how JavaScript implements them I have seen that, but my question is about language, not implementation. FWIW, taking my educator perspective, PHP's way of explicitly pointing out what v

Re: [PHP-DEV] Patch for ext/openssl to support CN_match with asterisk

2010-02-21 Thread Pierre Joye
hi, can you run it through valgrind and paste the output in a new bug report please? Cheers, On Sun, Feb 21, 2010 at 2:47 AM, Bostjan Skufca wrote: > a) If you would like to see an example of memory leak, here is how I > reproduce it. > > 1. Clone this git repository: > http://github.com/bostja

[PHP-DEV] why not use strtol instead of php_filter_parse_{int,hex,octal}?

2010-02-21 Thread Raphael Geissert
Hi, While working on bug #51023, Sean and I were wondering why they were written in the first place, instead of using strtol; which can handle the three cases and properly detect overflows and underflows (and doesn't risk being optimised-away like with the current implementations). If there's

[PHP-DEV] multi-jobs run-tests.php

2010-02-21 Thread Raphael Geissert
Hi, I've spent the last hours working on making run-tests.php be able to run tests in parallel. The main reason being the time it takes to run the whole testsuite even on multicore CPUs. Attached is the first set of changes needed. It uses pcntl's fork and sysvmsg to send some of the results b

[PHP-DEV] Re: why not use strtol instead of php_filter_parse_{int,hex,octal}?

2010-02-21 Thread Raphael Geissert
Raphael Geissert wrote: > > If there's no objection, I would like to remove them entirely and use > strtol in php_filter_int. > By the way, I don't think that the fact that strtol is locale-aware should be a reason to make the change. Since scripts are expected to use the value returned by fil