Revert "php8: fix linking on riscv64 platform"