Re: [RFC] [Discussion] Followup Improvements for ext/uri
| From: | Juris Evertovskis | Date: | Tue, 16 Dec 2025 18:14:19 +0000 |
| Subject: | Re: [RFC] [Discussion] Followup Improvements for ext/uri | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-129624@lists.php.net to get a copy of this message | ||
On 2025-12-16 09:53, ignace nyamagana butera wrote:
Since we will be dealing with arrays the following rules could be updated when parsing the string using PHP behaviour: * "&a" should be converted to ['a' => null]Hey Ignace, In practice valueless arguments like
?debug are most often "flags" or "booleans" and their presence implies truthiness.
Do you think it would be wrong or confusing to have it converted to ['debug' => true]?
I'm worried that ['a' => null] would not be that handy since both $params['a'] and isset($params['a']) would return falsy which would likely be opposite to the intended value.
BR,
Juris