From 06126805f490aba6f6c107980f673eada0c79e6c Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 27 Aug 2021 13:12:20 +0200 Subject: [PATCH] Fix #72656: Object destructor called before constructor We just need to document PHP's eager evaluation strategy; the rest is already documented. --- language/functions.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/language/functions.xml b/language/functions.xml index 3b0ecc4655..dfa0a59231 100644 --- a/language/functions.xml +++ b/language/functions.xml @@ -175,7 +175,8 @@ function recursion($a) Information may be passed to functions via the argument list, which is a comma-delimited list of expressions. The arguments are - evaluated from left to right. + evaluated from left to right, before the function is actually called + (eager evaluation).