gpt4 book ai didi

php - Docker php : What are the :zts php images on Docker Hub

转载 作者:行者123 更新时间:2023-12-04 14:19:25 29 4
gpt4 key购买 nike

正如我所看到的:https://hub.docker.com/_/php/我看到的图像标记为:version_number-ztsversion_number-zts-alpine我想知道 zts 在这些标签上表示什么以及与 fpm 或 Apache 图像有多少不同?

最佳答案

如果您阅读了其中一个 docker 文件 https://github.com/docker-library/php/blob/1e6f8ba4901a5f3f02f447fd70d4226193e4f24b/7.2-rc/zts/Dockerfile例如。这有ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts
这用于在 PHP 中启用用于 pthread 的 Zend 线程安全包。来自 PHP 手册( http://php.net/manual/en/pthreads.requirements.php )

pthreads requires a build of PHP with ZTS (Zend Thread Safety) enabled ( --enable-maintainer-zts or --enable-zts on Windows )



关于 zts 本身与 pthreads 相关,您可以在其中查找有关 Php: when to use pthread 的更多信息。

关于php - Docker php : What are the :zts php images on Docker Hub,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46512855/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com