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

From: Date: Tue, 17 Jan 2023 14:33:23 +0000
Subject: [RFC] Saner array_(sum|product)()
Groups: php.internals 
Request: Send a blank email to internals+get-119291@lists.php.net to get a copy of this message
Hello internals, I would like to start the discussion about the Saner array_(sum|product)() RFC: https://wiki.php.net/rfc/saner-array-sum-product Currently, the array_sum() and array_product() behave differently than their userland implementation as they ignore arrays and objects, and cast the remaining types to int/float. This is in contrast with the behaviour of arithmetic operators that throw TypeErrors on types and values that are not interpretable as int/float. This RFC aims to resolve this discrepancy. Best regards, George P. Banyard

« previous php.internals (#119291) next »