Repository navigation
Conversation
|
How is this different from |
|
It isn't, but this is usable as callback. |
|
I accidentally also committed the |
|
@Jille Sorry, disregard that last part of my comment. |
|
With anon functions, I'm not sure why function($x) { return (bool)$x;} doesn't really solve this use case. |
|
Most of all it's a consistency improvement. We have |
|
Should this be discussed on the internals list? Should I open a bug and hope someone will merge it? Should I just wait till someone hits the "Merge" button? |
|
@Jille You should bring this up on internals. It adds a new function, so it can't be simply merged. Also it's debatable whether we really need it, so... writing a mail to internals should be the right thing to do :) |
|
It makes sense to add it to 5.5 |
|
74b4ef5 (in my boolval-branch) contains the function and a test. Thanks! |
|
Merged as 753c336. Thank you for your contribution. |
|
Would be great if you can also help the docteam adding that function to phpdoc :) |
Implementation based on strval()