Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8941

Posix functions

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Mladen Gogala <gogala.mladen@gmail.com>
Newsgroups comp.lang.php
Subject Posix functions
Date Thu, 4 Apr 2013 19:26:08 +0000 (UTC)
Organization solani.org
Lines 72
Message-ID <pan.2013.04.04.19.26.07@gmail.com> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace solani.org 1365103568 15134 eJwFwQERADEIAzBLY4VS5Pwx8C/hkwCNnc6gx8bKX9uFrR/IShRNDZzSqHO+nb1+kc03sPoB/4IQVg== (4 Apr 2013 19:26:08 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Thu, 4 Apr 2013 19:26:08 +0000 (UTC)
User-Agent Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
X-User-ID eJwNxsERACEIBLCWBJZFylHg+i/hnHziRmEF6IR/z56WqWysHCmEXZU2dT+mwL55opsjb8MlPxoiENM=
Cancel-Lock sha1:ZWllT9pVEU9QbxOKmadkfYq8EzM=
X-NNTP-Posting-Host eJwFwYkBADAEBLCVKOcZR5X9R2gCMbZ2NZhisfq49hRC0MN4xIwrZzgHfk9OgzJ0kyq2XT4W5RDR
Xref csiph.com comp.lang.php:8941

Show key headers only | View raw


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

Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Posix functions Mladen Gogala <gogala.mladen@gmail.com> - 2013-04-04 19:26 +0000
  Re: Posix functions Mladen Gogala <gogala.mladen@gmail.com> - 2013-04-04 19:32 +0000
    Re: Posix functions "J.O. Aho" <user@example.net> - 2013-04-04 22:11 +0200
      Re: Posix functions Mladen Gogala <gogala.mladen@gmail.com> - 2013-04-04 20:27 +0000
        Re: Posix functions "J.O. Aho" <user@example.net> - 2013-04-04 22:59 +0200
        Re: Posix functions Geoff Muldoon <geoff.muldoon@trap.gmail.com> - 2013-04-05 08:48 +1100

csiph-web