How does one easily add posix support to PHP using yum?

和自甴很熟 提交于 2019-12-05 00:18:45

You can try and see if it's in the testing repository.

To see if it's in that repository.

yum --disablerepo=\* --enablerepo=c5-testing list available \*php\*

And to install it.

yum --enablerepo=c5-testing install php-posix

Be aware though, that the PHP version it needs may be higher than you currently have.

hlovdal

While the question was for centos, notice that for fedora the php-posix package is provided by php-process from fedora 11. I assume this change also will hit centos at some point.

I am running CentOS 5.3. The PHP that is included already has the Posix functions built in. You may or may not have found the introdctory documentation for the POSIX functions (which indicate that these functions are not available in Windows). Have you tried using a particular function and it didn't work?


    <?php print_r(posix_uname()) ?>

in its own file works for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!