#40425 [Fbk->Opn]: php_getuid() always return 1.
| From: | priappub at yahoo dot fr | Date: | Thu, 08 Mar 2007 22:32:41 +0000 |
| Subject: | #40425 [Fbk->Opn]: php_getuid() always return 1. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-110103@lists.php.net to get a copy of this message | ||
ID: 40425
User updated by: priappub at yahoo dot fr
Reported By: priappub at yahoo dot fr
-Status: Feedback
+Status: Open
Bug Type: Safe Mode/open_basedir
Operating System: Solaris 10
PHP Version: 5.2.1
New Comment:
For the difference, I don't know... I have this:
[root@Romulus ~]# /usr/apache2/bin/httpd -V
Server version: Apache/2.0.58
Server built: Sep 5 2006 07:46:49
Server's Module Magic Number: 20020903:12
Server loaded: APR 0.9.12, APR-UTIL 0.9.12
Compiled using: APR 0.9.12, APR-UTIL 0.9.12
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FCNTL_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/usr/apache2"
-D SUEXEC_BIN="/usr/apache2/bin/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"
Previous Comments:
------------------------------------------------------------------------
[2007-03-07 10:19:42] tony2001@php.net
What's the difference between Sun Apache and the one compiled from
sources?
------------------------------------------------------------------------
[2007-03-07 10:13:40] priappub at yahoo dot fr
Same problem with the snapshot. But it seems that the problem is the
apache provided by SUN because if I compile apache from the source,
safe_mode is OK.
------------------------------------------------------------------------
[2007-03-06 12:07:54] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2007-02-11 09:34:03] tony2001@php.net
Then we will have to wait for someone with Solaris 10 to reproduce and
fix it.
------------------------------------------------------------------------
[2007-02-10 01:35:19] priappub at yahoo dot fr
Unfortunately, this machine is on a private network.
It'a a solaris 10 update 3 with apache 2.0.58 included in
solaris. PHP is 5.2.1 compiled with:
CFLAGS='-I/usr/sfw/src/mysql/include' \
CC='cc' \
'./configure' \
'--with-apxs2=/usr/apache2/bin/apxs' \
'--with-mysql=/usr/sfw' \
'--enable-dbase' \
'--with-ldap' \
'--enable-ftp' \
'--with-bzip2' \
'--with-openssl=/usr/sfw' \
'--with-jepg' \
'--with-png' \
'--with-zlib' \
'--with-imap' \
'--enable-fastcgi' \
'--enable-mbstring' \
'--with-config-file-path=/etc/apache2' \
'--without-iconv' \
'--with-gettext' \
'--enable-magic-quotes' \
'--enable-safe-mode' \
'--prefix=/usr' \
'--exec-prefix=/usr' \
'--sysconfdir=/etc' \
'--localstatedir=/var' \
I'm using Sun Studio 11 but same result with GCC. I don't
know if the problem is on x86 too, I have only solaris with
sparc.
NB: bug 12683 suggests a problem with mod_perl but no
mod_perl here.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/40425
--
Edit this bug report at http://bugs.php.net/?id=40425&edit=1