Re: [PHP-DEV] On closures and lamdba

2010-02-20 Thread Ionut G. Stan
So to answer your question, for my money, since I can't currently tell the difference in a programmatic way between an 'anonymous function' and a full 'closure', I don't find it that worrisome that the PHP world somewhat conflates the two terms. For me it's worrisome because future developers,

Re: [PHP-DEV] On closures and lamdba

2010-02-20 Thread Joey Smith
> Oh, yes, the question: > > Wouldn't you agree that it is better for PHP to use the word closure as > it is being used in the JavaScript community? There's a pretty big difference between how PHP implements closures and how JavaScript implements them - in PHP, you have to explicitly request whi

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

2010-02-20 Thread Bostjan Skufca
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/bostjan/PHP-application-server 2. Copy/move/Symlink contents to /opt/daemons/AppSrv 3. cd to /opt/daemons/AppSrv/demos/demo_https 4. start the daemon: ./demo -d5 -

Re: [PHP-DEV] On closures and lamdba

2010-02-20 Thread Keryx Web
2010-01-19 17:05, Stanislav Malyshev skrev: I honestly don't see func()()()() make anything better in the world of a PHP programmer. You probably don't use closures, right? Sorry for kidnapping a thread, bit it was this message that got me thinking about raising the issue in earnest. I'm a

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

2010-02-20 Thread Bostjan Skufca
The patch includes code which is very similar but it's functionality goes just the other way around. The original code takes remote CN and if that contains asterisk, it tries to 'limited-wildcard-match' of CN_match against remote CN (remote CN is the pattern in this case, if you will). On the oth

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

2010-02-20 Thread Pierre Joye
hi, Is it not suppose to work already? As your patch basically does what is done earlier in the code if match fails. If there is a bug in this area, we should fix instead of adding the same thing later :) I will check this issue next week. Btw, there is no chance to get this in 5.2.13 or 5.3.2 a

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

2010-02-20 Thread Bostjan Skufca
Hi! I've created a patch that enables PHP to do "limited wildcard matching" if CN_match option in stream context is specified as '*.example.org'. Also I have filled a bug report for this, here: http://bugs.php.net/bug.php?id=51100 Patch is here: http://source.a2o.si/php/php-ext-openssl-CN_match-w