Tyson Andre

Results 313 issues of Tyson Andre

https://wiki.php.net/rfc/union_types_v2 was merged. This introduces `ReflectionUnionType extends ReflectionType`. https://wiki.php.net/rfc/union_types_v2#reflection - ReflectionUnionType->getTypes() should be used if it exists. (similar to how phpdoc union types are used). The existing code wouldn't work,...

help wanted

It's annoying and surprising to have to type `@param string|null` instead of `@param ?string`. Checking if the first character of a type is `?` and stripping that (and adding null)...

help wanted

This is within an `is_array($name)` check, so `count($name) == 0` implies $name is `array()`.

- saw a no-op array statement in Validations class, assume `$enum = [$enum]` was intended. - PDO wasn't namespaced in lib/adapters/OciAdapter, so it referred to `ActiveRecord\PDOException` - Incorrect phpdoc in...

Currently, Psalm will not warn about undeclared global functions if they exist in src/Psalm/CallMap.php. This cuts down on false positives but introduces some false negatives. - Psalm allows users to...

enhancement
easy problems

https://github.com/ezyang/htmlpurifier/blob/master/library/HTMLPurifier/Lexer/PH5P.php#L1877-L1912 In the switch statement in mainPhase(), both IN_BODY and END_PHASE are `case`s. self::IN_BODY is 3. self::END_PHASE is also 3. Because self::IN_BODY is first, it is checked first, so the...

There have been various extensions to the text protocol starting in memcached 1.5.19, called the "meta protocol", making it on par with the binary protocol. ~~This is still experimental, but...

Resources: https://github.com/memcached/memcached/blob/master/testapp.c https://wiki.openssl.org/index.php/SSL/TLS_Client https://www.openssl.org/docs/man1.0.2/man3/SSL_CTX_new.html Related to https://github.com/twitter/twemproxy/issues/583 This would probably be done by - Adding a `tls: true` section to twemproxy pool configuration files - Adding a `./configure` option to...

Currently, memory is added to a free list manually with malloc but never freed. During spikes in traffic or latency or large requests, entries get added, growing twemproxy's memory usage....

**Is your feature request related to a problem? Please describe.** Redis clients will eventually use a new protocol for responses (RESP3 instead of RESP2). Currently, twemproxy only supports RESP2 for...