aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/BinaryFormat/Decoder.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-04-03 01:43:04 +0900
committernsfisis <nsfisis@gmail.com>2025-04-03 01:45:03 +0900
commit6233331f23603ebab0a7aa626ff82d71426b3bd6 (patch)
tree490affe4d44e251c996502847c2d87ed9d8cab17 /src/WebAssembly/BinaryFormat/Decoder.php
parent44655d7a70ee5fd288f691a41631e8a6471d084d (diff)
downloadphp-waddiwasi-6233331f23603ebab0a7aa626ff82d71426b3bd6.tar.gz
php-waddiwasi-6233331f23603ebab0a7aa626ff82d71426b3bd6.tar.zst
php-waddiwasi-6233331f23603ebab0a7aa626ff82d71426b3bd6.zip
feat: update php and package version
Diffstat (limited to 'src/WebAssembly/BinaryFormat/Decoder.php')
-rw-r--r--src/WebAssembly/BinaryFormat/Decoder.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/WebAssembly/BinaryFormat/Decoder.php b/src/WebAssembly/BinaryFormat/Decoder.php
index 2e59df4..e64fac8 100644
--- a/src/WebAssembly/BinaryFormat/Decoder.php
+++ b/src/WebAssembly/BinaryFormat/Decoder.php
@@ -78,6 +78,8 @@ final class Decoder
$codes = $this->decodeSection(SectionId::Code, $this->decodeCodeSecRest(...)) ?? [];
$datas = $this->decodeSection(SectionId::Data, $this->decodeDataSecRest(...)) ?? [];
+ $this->skipCustomSections();
+
if (!$this->stream->eof()) {
throw new InvalidBinaryFormatException("eof");
}