PHP posix function not available
Issue
-
Where can the posix functions for PHP be installed from?
-
PHP gives errors when trying to use posix_getuid():
# php posix_getuid.php
before posixPHP Fatal error: Call to undefined function posix_getuid() in /path/to/posix_getuid.php on line 5
Fatal error: Call to undefined function posix_getuid() in /path/to/posix_getuid.php on line 5
# cat posix_getuid.php
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
echo "before posix";
echo posix_getuid();
echo "after";
?>
- Which package provide PHP posix function for rh-php70 (RHSCL php-7.0.10)?
Environment
- Red Hat Enterprise Linux 6
- php-5.3.3-27.el6_5.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
