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


Groups > comp.lang.php > #8941 > unrolled thread

Posix functions

Started byMladen Gogala <gogala.mladen@gmail.com>
First post2013-04-04 19:26 +0000
Last post2013-04-05 08:48 +1100
Articles 6 — 3 participants

Back to article view | Back to comp.lang.php


Contents

  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

#8941 — Posix functions

FromMladen Gogala <gogala.mladen@gmail.com>
Date2013-04-04 19:26 +0000
SubjectPosix functions
Message-ID<pan.2013.04.04.19.26.07@gmail.com>
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

[toc] | [next] | [standalone]


#8942

FromMladen Gogala <gogala.mladen@gmail.com>
Date2013-04-04 19:32 +0000
Message-ID<pan.2013.04.04.19.32.23@gmail.com>
In reply to#8941
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

[toc] | [prev] | [next] | [standalone]


#8943

From"J.O. Aho" <user@example.net>
Date2013-04-04 22:11 +0200
Message-ID<as6549Fhi0aU1@mid.individual.net>
In reply to#8942
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

[toc] | [prev] | [next] | [standalone]


#8944

FromMladen Gogala <gogala.mladen@gmail.com>
Date2013-04-04 20:27 +0000
Message-ID<pan.2013.04.04.20.27.10@gmail.com>
In reply to#8943
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

[toc] | [prev] | [next] | [standalone]


#8946

From"J.O. Aho" <user@example.net>
Date2013-04-04 22:59 +0200
Message-ID<as67tsFi6g3U1@mid.individual.net>
In reply to#8944
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

[toc] | [prev] | [next] | [standalone]


#8947

FromGeoff Muldoon <geoff.muldoon@trap.gmail.com>
Date2013-04-05 08:48 +1100
Message-ID<MPG.2bc8a02f68e08b6b37@news.albasani.net>
In reply to#8944
gogala.mladen@gmail.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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web