Skip to content

Commit 44db261

Browse files
committed
Patch PHP 7.4 Rust wrapper build
1 parent 16f20d9 commit 44db261

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/php-ext-wp-mysql-parser/wasm-spike/build-in-docker-rust.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,11 @@ docker run --rm -i \
160160
"$REG/ext-php-rs-build-0.1.1/src/lib.rs"
161161
sed -i 's/cfg(php80, php81/cfg(php74, php80, php81/' \
162162
"$REG/ext-php-rs-build-0.1.1/src/lib.rs"
163+
sed -i '1i #include <stdbool.h>' \
164+
"$REG/ext-php-rs-0.15.12/src/wrapper.h"
163165
grep -q 'Php74 = 2019_09_02' "$REG/ext-php-rs-build-0.1.1/src/lib.rs"
164166
grep -q 'ApiVersion::Php74,' "$REG/ext-php-rs-0.15.12/build.rs"
167+
grep -q '#include <stdbool.h>' "$REG/ext-php-rs-0.15.12/src/wrapper.h"
165168
fi
166169
167170
sed -i "s/12 \* std::mem::size_of::<usize>/24 * std::mem::size_of::<usize>/" \

0 commit comments

Comments
 (0)