diff --git a/packages/php-wasm/compile/php-post-message-to-js/post_message_to_js.c b/packages/php-wasm/compile/php-post-message-to-js/post_message_to_js.c index 218bbb058c..cbb2192f5e 100644 --- a/packages/php-wasm/compile/php-post-message-to-js/post_message_to_js.c +++ b/packages/php-wasm/compile/php-post-message-to-js/post_message_to_js.c @@ -8,6 +8,11 @@ #define PHP_FE_END {NULL, NULL, NULL} #endif +/* TSRMLS macros were removed in PHP 7; provide empty fallbacks */ +#ifndef TSRMLS_CC +#define TSRMLS_CC +#endif + /** * Provided by php_wasm.c: */ @@ -83,4 +88,4 @@ zend_module_entry post_message_to_js_module_entry = { ZEND_TSRMLS_CACHE_DEFINE() #endif ZEND_GET_MODULE(post_message_to_js) -#endif \ No newline at end of file +#endif diff --git a/packages/php-wasm/compile/php-wasm-dns-polyfill/dns_polyfill.c b/packages/php-wasm/compile/php-wasm-dns-polyfill/dns_polyfill.c index d51154ce1a..a9af0489a5 100644 --- a/packages/php-wasm/compile/php-wasm-dns-polyfill/dns_polyfill.c +++ b/packages/php-wasm/compile/php-wasm-dns-polyfill/dns_polyfill.c @@ -10,6 +10,11 @@ #define ZEND_FE_END {NULL, NULL, NULL} #endif +/* TSRMLS macros were removed in PHP 7; provide empty fallbacks */ +#ifndef TSRMLS_CC +#define TSRMLS_CC +#endif + #ifdef HAVE_SYS_SOCKET_H #include #endif @@ -329,4 +334,4 @@ zend_module_entry dns_polyfill_module_entry = { PHP_MINFO(dns_polyfill), /* PHP_MINFO - Module info */ PHP_DNS_POLYFILL_VERSION, /* Version */ STANDARD_MODULE_PROPERTIES}; -/* }}} */ \ No newline at end of file +/* }}} */