Skip to content

Commit 828a14d

Browse files
committed
Regenerate Node DNS runtime artifacts
AI assistance: OpenAI gpt-5.6-terra via OpenCode regenerated PHP-WASM artifacts and verified the DNS runtime matrix.
1 parent 036b15f commit 828a14d

36 files changed

Lines changed: 1324 additions & 825 deletions

File tree

packages/php-wasm/compile/php-wasm-dns-polyfill/dns_polyfill.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ PHP_FUNCTION(dns_get_mx)
475475
{
476476
HashPosition position;
477477
zval **record, **target, **priority;
478-
for (zend_hash_internal_pointer_reset_ex(Z_ARRVAL(records), &position); zend_hash_get_current_data_ex(Z_ARRVAL(records), (void **) &record, &position) == SUCCESS; zend_hash_move_forward_ex(Z_ARRVAL(records), &position)) {
478+
for (zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(records), &position); zend_hash_get_current_data_ex(Z_ARRVAL_P(records), (void **) &record, &position) == SUCCESS; zend_hash_move_forward_ex(Z_ARRVAL_P(records), &position)) {
479479
if (zend_hash_find(Z_ARRVAL_PP(record), "target", sizeof("target"), (void **) &target) == SUCCESS) dns_append_string(mx_list, Z_STRVAL_PP(target));
480480
if (weight_list && zend_hash_find(Z_ARRVAL_PP(record), "pri", sizeof("pri"), (void **) &priority) == SUCCESS) add_next_index_long(weight_list, Z_LVAL_PP(priority));
481481
}

packages/php-wasm/compile/php/Dockerfile-5-2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,11 @@ RUN export ASYNCIFY_IMPORTS=$'[\n\
704704
"zif_dns_get_mx",\
705705
"dns_resolve",\
706706
"dns_resolve_mask",\
707+
"ZEND_DO_FCALL_SPEC_CONST_HANDLER",\
708+
"execute",\
709+
"zend_execute_scripts",\
710+
"php_execute_script",\
711+
"wasm_sapi_handle_request",\
707712
"printf_core",\
708713
"__vfprintf_internal",\
709714
"vfprintf",\
7.89 KB
Binary file not shown.

packages/php-wasm/node-builds/5-2/asyncify/php_5_2.js

Lines changed: 110 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
4.94 KB
Binary file not shown.

0 commit comments

Comments
 (0)