PEAR Library erroring

Support/Development for PHP
meh_
New Forum User
New Forum User
Posts: 3
Joined: Wed Apr 07, 2010 3:27 pm

PEAR Library erroring

Unread post by meh_ »

trying to run down an issue reported which i suspect an update clipped a pear library, library reference or permission as no code changes were dropped.

PHP Fatal error: Call to undefined function

posix_getpwuid() in /usr/share/pear/Crypt/GPG/Engine.php

is there a listing of the unsafe php functions for asl - is posix_getpwuid function considered a function that needs to be whitelisted?

php, 5.2.13
pear 1.7.2
include_path .:/usr/share/pear:/usr/share/php
safe_mode_include_dir /usr/share/pear
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: PEAR Library erroring

Unread post by scott »

Nothing in ASL about that one
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: PEAR Library erroring

Unread post by mikeshinn »

meh_,

A couple of ideas, do you have a "php-posix" package installed? If so, check check the permissions and ownership on the PHP code itself. I believe in your case it should be apache.apache.

Also, in case anyone using php 5.3, or 5.2.13 reads this, you need to install php-process.
aus-city
Forum Regular
Forum Regular
Posts: 685
Joined: Thu Oct 26, 2006 11:56 pm

Re: PEAR Library erroring

Unread post by aus-city »

Hi Mike,

Thanks for the info about php-process.

Is it generally required / recommended for 5.2.13 and 5.3.x or only if your using php-pear?
meh_
New Forum User
New Forum User
Posts: 3
Joined: Wed Apr 07, 2010 3:27 pm

Re: PEAR Library erroring

Unread post by meh_ »

Thanks much for the info Guys.

Package php-common-5.2.13-1.el5.art.i386 is installed

Tried also installing the php-posix package as it was not listed. Yum indicates already installed as part of
Package php-common-5.2.13-1.el5.art.i386

I'll dig into permissions to see if something got modified there. At /usr/share/pear everything is recursively owned by root.root.
meh_
New Forum User
New Forum User
Posts: 3
Joined: Wed Apr 07, 2010 3:27 pm

Re: PEAR Library erroring

Unread post by meh_ »

actually, meant php-process is already installed as well on the second line of my post, to correct.
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: PEAR Library erroring

Unread post by mikeshinn »

Is the function still missing?

Your other option would be to roll back to the version of PHP that had the function. You can do that with this command:

rpm -Uvh --oldpackage /var/cache/yum/atomic/php-(whatever_version).rpm
Post Reply