Posix functions [message #181001] |
Thu, 04 April 2013 19:26 |
Mladen Gogala
Messages: 13 Registered: December 2010
Karma: 0
|
Junior Member |
|
|
Are posix_* functions obsolete in PHP 5.4?
I'm getting the following error on Fedora 18 (x86_64, plain vanilla RPM,
from the repository):
[Thu Apr 04 15:18:43.364816 2013] [:error] [pid 30820] [client
192.168.1.100:45905] PHP Fatal error: Call to undefined function
posix_getlogin() in /misc/doc/test.php on line 2
Posix was included in the original configuration as shown by php-config:
[root@medo logs]# php-config
Usage: /bin/php-config [OPTION]
Options:
--prefix [/usr]
--includes [-I/usr/include/php -I/usr/include/php/main -I/usr/
include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/
include/php/ext/date/lib]
--ldflags []
--libs [-lcrypt -lresolv -lcrypt -ledit -lncurses -lstdc+
+ -lgmp -lbz2 -lz -lpcre -lrt -lm -ldl -lnsl -lxml2 -lz -lm -ldl -
lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lssl -lcrypto -
lxml2 -lz -lm -ldl -lcrypt -lxml2 -lz -lm -ldl -lcrypt ]
--extension-dir [/usr/lib64/php/modules]
--include-dir [/usr/include/php]
--man-dir [/usr/share/man]
--php-binary [/usr/bin/php]
--php-sapis [ cli cgi]
--configure-options [--build=x86_64-redhat-linux-gnu --host=x86_64-
redhat-linux-gnu --program-prefix= --disable-dependency-tracking --
prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --
sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/
usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --
sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
--cache-file=../config.cache --with-libdir=lib64 --with-config-file-path=/
etc --with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic --
disable-rpath --without-pear --with-bz2 --with-exec-dir=/usr/bin --with-
freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --enable-gd-
native-ttf --with-t1lib=/usr --without-gdbm --with-gettext --with-gmp --
with-iconv --with-jpeg-dir=/usr --with-openssl --with-pcre-regex=/usr --
with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-magic-
quotes --enable-sockets --with-kerberos --enable-ucd-snmp-hack --enable-
shmop --enable-calendar --with-libxml-dir=/usr --enable-xml --with-system-
tzdata --with-mhash --enable-force-cgi-redirect --libdir=/usr/lib64/php --
enable-pcntl --with-imap=shared --with-imap-ssl --enable-mbstring=shared
--enable-mbregex --with-gd=shared --enable-bcmath=shared --enable-
dba=shared --with-db4=/usr --with-tcadb=/usr --with-xmlrpc=shared --with-
ldap=shared --with-ldap-sasl --enable-mysqlnd=shared --with-
mysql=shared,mysqlnd --with-mysqli=shared,mysqlnd --with-mysql-sock=/var/
lib/mysql/mysql.sock --with-interbase=shared,/usr/lib64/firebird --with-
pdo-firebird=shared,/usr/lib64/firebird --enable-dom=shared --with-
pgsql=shared --enable-wddx=shared --with-snmp=shared,/usr --enable-
soap=shared --with-xsl=shared,/usr --enable-xmlreader=shared --enable-
xmlwriter=shared --with-curl=shared,/usr --enable-fastcgi --enable-
pdo=shared --with-pdo-odbc=shared,unixODBC,/usr --with-pdo-
mysql=shared,mysqlnd --with-pdo-pgsql=shared,/usr --with-pdo-
sqlite=shared,/usr --with-pdo-dblib=shared,/usr --with-sqlite3=shared,/usr
--enable-json=shared --enable-zip=shared --with-libzip --without-readline
--with-libedit --with-pspell=shared --enable-phar=shared --with-
mcrypt=shared,/usr --with-tidy=shared,/usr --with-mssql=shared,/usr --
enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared --
enable-posix=shared --with-unixODBC=shared,/usr --enable-fileinfo=shared
--enable-intl=shared --with-icu-dir=/usr --with-enchant=shared,/usr --
with-recode=shared,/usr]
--version [5.4.13]
--vernum [50413]
[root@medo logs]#
Why are posix_* functions not accessible?
--
Mladen Gogala
The Oracle Whisperer
http://mgogala.byethost5.com
|
|
|
Re: Posix functions [message #181002 is a reply to message #181001] |
Thu, 04 April 2013 19:32 |
Mladen Gogala
Messages: 13 Registered: December 2010
Karma: 0
|
Junior Member |
|
|
On Thu, 04 Apr 2013 19:26:08 +0000, Mladen Gogala wrote:
> Are posix_* functions obsolete in PHP 5.4?
Google is my friend. There is a separate package which provides POSIX
module. The package is called php-process. I knew I should have built it
myself.
--
Mladen Gogala
The Oracle Whisperer
http://mgogala.byethost5.com
|
|
|
Re: Posix functions [message #181003 is a reply to message #181002] |
Thu, 04 April 2013 20:11 |
J.O. Aho
Messages: 194 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 04/04/13 21:32, Mladen Gogala wrote:
> On Thu, 04 Apr 2013 19:26:08 +0000, Mladen Gogala wrote:
>
>> Are posix_* functions obsolete in PHP 5.4?
>
> Google is my friend. There is a separate package which provides POSIX
> module. The package is called php-process. I knew I should have built it
> myself.
Could I tempt with SourceMage or Gentoo? Both allow you to build
packages with features you want.
--
//Aho
|
|
|
Re: Posix functions [message #181004 is a reply to message #181003] |
Thu, 04 April 2013 20:27 |
Mladen Gogala
Messages: 13 Registered: December 2010
Karma: 0
|
Junior Member |
|
|
On Thu, 04 Apr 2013 22:11:53 +0200, J.O. Aho wrote:
> Could I tempt with SourceMage or Gentoo? Both allow you to build
> packages with features you want.
So does Fedora, it's Linux, after all. Being an Oracle DBA and needing
Oracle, I need an RPM based distribution, because that's what Oracle
supports. I've been toying with the idea of OpenSuse and the last Fedora
made this idea look more appealing then ever before.
--
Mladen Gogala
The Oracle Whisperer
http://mgogala.byethost5.com
|
|
|
Re: Posix functions [message #181006 is a reply to message #181004] |
Thu, 04 April 2013 20:59 |
J.O. Aho
Messages: 194 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 04/04/13 22:27, Mladen Gogala wrote:
> On Thu, 04 Apr 2013 22:11:53 +0200, J.O. Aho wrote:
>
>
>> Could I tempt with SourceMage or Gentoo? Both allow you to build
>> packages with features you want.
>
> So does Fedora, it's Linux, after all.
Sure, but a lot more work, specially if you want RPMs to install.
> Being an Oracle DBA and needing
> Oracle, I need an RPM based distribution, because that's what Oracle
> supports. I've been toying with the idea of OpenSuse and the last Fedora
> made this idea look more appealing then ever before.
Just for someone just releases RPMs, don't mean you can't get it
installed on a system with another package manager, I know Gentoo do
install quite many RPM based packages when it comes to closed source stuff.
--
//Aho
|
|
|
Re: Posix functions [message #181007 is a reply to message #181004] |
Thu, 04 April 2013 21:48 |
Geoff Muldoon
Messages: 19 Registered: July 2011
Karma: 0
|
Junior Member |
|
|
gogala(dot)mladen(at)gmail(dot)com says...
> So does Fedora, it's Linux, after all. Being an Oracle DBA and
needing
> Oracle, I need an RPM based distribution, because that's what Oracle
> supports. I've been toying with the idea of OpenSuse and the last Fedora
> made this idea look more appealing then ever before.
I'm surprised you're not using Oracle's "Unbreakable" Red Hat clone.
GM
|
|
|