Re: com php-src: Really fix leaks, add test cases to prove it...: ext/standard/password.c ext/standard/tests/password/password_bcrypt_errors.phpt
ext/standard/tests/password/password_hash_error.phpt ext/standard/tests/password/password_need
| From: | Anthony Ferrara | Date: | Tue, 16 Oct 2012 18:25:14 +0000 |
| Subject: | Re: com php-src: Really fix leaks, add test cases to prove it...: ext/standard/password.c ext/standard/tests/password/password_bcrypt_errors.phpt ext/standard/tests/password/password_hash_error.phpt ext/standard/tests/password/password_need |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70404@lists.php.net to get a copy of this message | ||
Nuno,
On Tue, Oct 16, 2012 at 2:14 PM, Nuno Lopes <nlopess@php.net> wrote:
> Hi,
>
> + case IS_BOOL:
>> + case IS_NULL:
>> case IS_RESOURCE:
>> case IS_ARRAY:
>> default:
>>
>
> it doesn't make sense to have those cases and the default. Please remove
> all those useless cases.
I see it as self-documentation to include them as it indicates without
needing to think that it's intentional that they are treated as default. If
the overall consensus is that they should be removed, that's fine (and I'll
remove them). But I consider this more readable and easier to comprehend
than without...
Thoughts?
Anthony