AW: [PHP-DEV] ezmlm warning

2013-09-23 Thread Frank Liepert
Do you think this is might be a gmail related issue? Or should i just ignore it? No gmail issue. Same issue for my GMX account. It just looks like a message is broken, see http://news.php.net/php.internals/69050 (Takes about 15s to load) -- PHP Internals - PHP Runtime Development Mailing

AW: [PHP-DEV] [RFC] Keywords as identifiers

2013-09-21 Thread Frank Liepert
Hi! This is the (official) RFC thread for the patch proposed in http://php.markmail.org/message/7rn4mbwkbytqa3ig https://wiki.php.net/rfc/keywords_as_identifiers Any feedback about the RFC or the implementation? There is still an open request, see https://bugs.php.net/bug.php?id=28261.

AW: [PHP-DEV] Allowing is_* functions to accept multiple parameters

2013-09-18 Thread Frank Liepert
function doStuffWithNumbers(...$numbers) { if (!is_int(...$numbers)) { throw new InvalidArgumentException('blah'); ... Thoughts? Returning bool in this case will make it impossible to respond with a meaningful error message. Which of the provided arguments !is_int()? Instead,

AW: [PHP-DEV] [VOTE] Class instances counter

2013-05-06 Thread Frank Liepert
patrickalla...@php.netwrote: 2013/5/6 Sebastian Bergmann sebast...@php.net: On 04/30/2013 10:04 AM, Frank Liepert wrote: Voting starts as of now and ends on 7th May, 2013. I voted -1; not because I do not think the feature is useful but because I think it belongs in an extension

[PHP-DEV] [VOTE] Class instances counter

2013-04-30 Thread Frank Liepert
See https://wiki.php.net/rfc/instance_counter#vote Voting starts as of now and ends on 7th May, 2013. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

AW: [PHP-DEV] [RFC] Class instances counter

2013-04-11 Thread Frank Liepert
It is not entirely clear how the function treats subclasses. Does it count only the *direct* instances of a class, or does it also count the instances of subclasses? class A {} class B extends A {} echo get_objects_count('A'); // 0 $a = new B; echo $a instanceof A; // 1 (true)

[PHP-DEV] [RFC] Class instances counter

2013-04-10 Thread Frank Liepert
Hello internals, again an update on the RFC, see https://wiki.php.net/rfc/instance_counter: - added support for object as argument - added support for array argument (indexed array with class names) - added more code examples -- PHP Internals - PHP Runtime Development Mailing List To

[PHP-DEV] [RFC] Class instances counter

2013-04-09 Thread Frank Liepert
Hello internals, I updated the RFC (https://wiki.php.net/rfc/instance_counter): - added support for a class name, so the function can be narrowed down to a specific class - added use case -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

[PHP-DEV] [RFC] Class instances counter

2013-04-08 Thread Frank Liepert
https://wiki.php.net/rfc/instance_counter -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Array of current instances count

2013-03-29 Thread Frank Liepert
Hello Internals, I'm thinking about a new function returning an array of classes and their individual number of instances. It would look pretty much like the result of get_declared_classes(). An Example: print_r (get_instantiated_classes()); // Array () $foo = new StdClass; print_r

AW: [PHP-DEV] Method check - Can someone create a RFC for it?

2013-03-20 Thread Frank Liepert
-Ursprüngliche Nachricht- Von: Carlos Rodrigues [mailto:carlos.v...@gmail.com] Gesendet: Mittwoch, 20. März 2013 19:08 An: internals@lists.php.net Betreff: [PHP-DEV] Method check - Can someone create a RFC for it? Hi, I'd like to suggest a new functionality for PHP. I don't know

AW: [PHP-DEV] FILTER_VALIDATE_INT and +0/-0

2013-02-04 Thread Frank Liepert
The change to FILTER_VALIDATE_INT seems to be inconsistent. First of all, take the following bug (https://bugs.php.net/bug.php?id=54096) where it says PHP defines -0 as an int.. Where does PHP define it? The documentation says: An integer is a number of the set ℤ = {..., -2, -1, 0, 1, 2, ...}.

AW: AW: [PHP-DEV] FILTER_VALIDATE_INT and +0/-0

2013-02-04 Thread Frank Liepert
So the question is only whether +0 or -0 (or +0, etc.) should be accepted as integers by FILTER_VALIDATE_INT. I think they should, because we also accept non-canonical inputs such as +5, i.e., we always accept a sign. It's true that 0 is neither positive or negative, but I don't think