Re: Re: [RFC] Clone with v2
| From: | Tim Düsterhus | Date: | Wed, 21 May 2025 07:00:02 +0000 |
| Subject: | Re: Re: [RFC] Clone with v2 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127408@lists.php.net to get a copy of this message | ||
Hi
Am 2025-05-19 15:30, schrieb Larry Garfield:
For positional parameters, I don't see any way that they'd work or do what someone expects. So why not just block them entirely instead of relying on dynamic properties to warn-but-sorta-work?For better or worse PHP supports numeric properties in objects and it does not seem correct to make this an artificial limitation when the behavior of numeric array keys follows the existing semantics (e.g. when casting an array to an object). Best regards Tim Düsterhus