ID:               49351
 User updated by:  VJTD3 at VJTD3 dot com
 Reported By:      VJTD3 at VJTD3 dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         POSIX related
 Operating System: Linux
 PHP Version:      5.3.0
 New Comment:

the problem still exists, I'm not sure i can use gdb since it's a
problem interfacing with apache. I'll try tonight.


Previous Comments:
------------------------------------------------------------------------

[2009-08-25 06:43:16] j...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

And provide a GDB backtrace if it still crashes.

------------------------------------------------------------------------

[2009-08-25 00:02:36] VJTD3 at VJTD3 dot com

Description:
------------
apache Apache/2.2.13:
env CFLAGS="-DBIG_SECURITY_HOLE" ./configure --enable-so && make &&
make install

php 5.3.0:
./configure --with-apxs2 && make && make install

-DBIG_SECURITY_HOLE allows for root startup (administrative builds for
panels and such...) when this flag is used to compile apache, php will
crash when posix_setuid posix_seteuid posix_setgid or posix_setegid are
used to change the user/group.

Reproduce code:
---------------
<?php

 posix_seteuid(1000);
 posix_setegid(1000);
 posix_setuid(1000);
 posix_setgid(1000);

?>

(make sure you use a number that has an actual user...)

Expected result:
----------------
change to that user.

Actual result:
--------------
php and apache crash.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49351&edit=1

Reply via email to