Repository navigation
Commit ee35972
authored
[PHP] Add
## Motivation for the change, related issues
[Add PHP 5.2 WebAssembly builds and runtime
support](#3501)
added `TSRMLS_CC` macros to `dns_polyfill` and `post_message_to_js` for
PHP 5.x compatibility, but these macros don't exist in PHP 7+. This
breaks recompilation of PHP.wasm for all PHP versions 7.0 through 8.5.
## Implementation details
Added empty `TSRMLS_CC` fallback defines to `dns_polyfill.c` and
`post_message_to_js.c`
## Testing Instructions (or ideally a Blueprint)
- [x] `nx run php-wasm-node:recompile-php:jspi`
- [x] `nx run php-wasm-node:recompile-php:asyncify`
- [x] `nx run php-wasm-web:recompile-php:jspi`
- [x] `nx run php-wasm-web:recompile-php:asyncify`TSRMLS_CC fallback defines for PHP versions above 7 (#3512)1 parent 6011949 commit ee35972
2 files changed
Lines changed: 12 additions & 2 deletions
File tree
- packages/php-wasm/compile
- php-post-message-to-js
- php-wasm-dns-polyfill
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
86 | | - | |
| 91 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
329 | 334 | | |
330 | 335 | | |
331 | 336 | | |
332 | | - | |
| 337 | + | |
0 commit comments