Re: [RFC] Saner array_(sum|product)()

From: Date: Thu, 26 Jan 2023 16:32:08 +0000
Subject: Re: [RFC] Saner array_(sum|product)()
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-119424@lists.php.net to get a copy of this message
Hello internals, I've slightly updated the RFC: https://wiki.php.net/rfc/saner-array-sum-product I've added an FFI example which overloads addition but cannot be cast to a numeric type. And changed the behaviours around objects. An object needs to implement a numeric cast for it to be added/multiplied, this solves the issue around having the return value being cast to an object as this cannot happen anymore. Best regards, George P. Banyard

« previous php.internals (#119424) next »