Hi,
I assume the following items are done by now:
- LSB parent::/self:: forwarding (Etienne/Dmitry)
- string optmization patches (Matt/Scott)
I assume everything will be ready on the windows side of things as
well. If not shout ASAP.
I am still expecting to see the following commits:
- openssl/openldap patches (Pierre)
- array_replace(_recursive) (Johannes)
- revert ming changes so things compile with 0.3 again (Johannes)
- remove __toString() from closures (Johannes/Dmitry)
Zend Signal Handling is now moved to alpha2, along with any further
string optimizations, zend_parse_parameters and arg info tweaks.
Just so that everybody knows. Johannes will handling the actual
packaging and releasing. I will probably add a summary of the
additions/changes. Not sure yet where this will go, maybe on
qa.php.net .. or maybe on the php.net frontpage (though in that case
alpha1 would be the only 5.3.0 release mentioned on php.net before
5.3.0 stable).
regards,
Lukas Kahwe Smith
smith@pooteeweet.org
- remove __toString() from closures (Johannes/Dmitry)
What is wrong here?
What behavior do you prefer?
I just missed the discussion.
Thanks. Dmitry.
- remove __toString() from closures (Johannes/Dmitry)
What is wrong here?
What behavior do you prefer?
I just missed the discussion.
This was in the thread "closures questions" and later there were some
votes by Stas and Marcus in favor of its removal in the "towards 5.3
alpha1" thread.
Here is a comment by Christian about the topic:
so do we even want the toString() method?
IMHO we should drop toString from Closure.There is one case which may cause problems:
function doSomething ($callback) {
if (!is_callable ($callback)) {
throw new Exception (...);
}// special treatment
if ($callback == 'default') {
...
} else {
...
}
}Here, the comparison of $callback with 'default' will yield a notice
that $callback couldn't be converted. The comparison will fail
correctly, of course, but it could cause some confusion. The correct
way of comparing would obviously be using ===, that won't cause these
hickups.
regards,
Lukas Kahwe Smith
smith@pooteeweet.org