[php-src] PR #11592: Always memoize calls in lhs of coalesce assignment

From: Date: Tue, 04 Jul 2023 12:43:52 +0000
Subject: [php-src] PR #11592: Always memoize calls in lhs of coalesce assignment
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-22893@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/11592 Author: iluuu1994 We don't want to invoke calls twice, even if they are considered "variables", i.e. might be writable if returning a reference. Function calls behave the same in all BP contexts so they don't need to be invoked twice. The singular exception to this is nullsafe coalesce in isset/empty, because it needs to return false/true respectively when short-circuited. However, since nullsafe calls are not allwed in write context we may ignore this problem.

« previous php.git-pulls (#22893) next »