aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-04-27 18:53:59 +0900
committernsfisis <nsfisis@gmail.com>2024-04-28 01:02:35 +0900
commit08f7f3f5412835b24dd681c9d9b56f0459750345 (patch)
tree3a21f454d8cea6800a7a187537fed0a5dd58af62 /src
parentd8da7b5db06e28e55b52a3b46e920ea3be64f120 (diff)
downloadphp-waddiwasi-08f7f3f5412835b24dd681c9d9b56f0459750345.tar.gz
php-waddiwasi-08f7f3f5412835b24dd681c9d9b56f0459750345.tar.zst
php-waddiwasi-08f7f3f5412835b24dd681c9d9b56f0459750345.zip
fix: reverse invoke()'s results
Diffstat (limited to 'src')
-rw-r--r--src/Execution/Runtime.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Execution/Runtime.php b/src/Execution/Runtime.php
index c64f039..468b712 100644
--- a/src/Execution/Runtime.php
+++ b/src/Execution/Runtime.php
@@ -189,7 +189,7 @@ final class Runtime
$results[] = $this->stack->popValue();
}
$this->stack->popFrame();
- return $results;
+ return array_reverse($results);
}
public function invokeByFuncAddr(int $funcAddr): void