source_dir . '/php_decimal.c', [ 'zend_module_entry decimal_module_entry', 'ZEND_GET_MODULE(decimal)', ], [ 'zend_module_entry php_decimal_module_entry', 'ZEND_GET_MODULE(php_decimal)', ] ); FileSystem::replaceFileStr( $this->source_dir . '/config.w32', 'ARG_WITH("decimal", "for decimal support", "no");', 'ARG_WITH("decimal", "for decimal support", "no");' . "\n" . 'ADD_EXTENSION_DEP("decimal", "json");' ); return true; } public function getUnixConfigureArg(bool $shared = false): string { return '--enable-decimal --with-libmpdec-path="' . BUILD_ROOT_PATH . '"'; } public function getWindowsConfigureArg(bool $shared = false): string { return '--with-decimal'; } }