We are yet another release candidate closer to PHP 5.3.1. A link to download PHP 5.3.1 RC3 is included below, as well as links to the changelog and current bugs. One bug fix will help prevent DOS (denial of service) attacks via a new INI directive labeled max_file_uploads. This will default to 100 files per request.
i wonder if somebody is working on the problem, that currently $this is not allowed inside of closure?
Can you give an example?
Good info on PHP closures: http://wiki.php.net/rfc/closures
@Chris Strosser
yes:
class test {
protected $f = 5;
function doSomething($array) {
array_walk($array, function($item) {
$item * $this->f;
});
}
}
$this in closure context was removed between some php beta and the php final. ok — for private/protected properties you could copy them and access them with “use”, but you can’t do this with private/protected class methods.
@harald
Interesting… I was not aware. This is good for people to know. I wonder why they did this…