ID:               43677
 Comment by:       manuel at mausz dot at
 Reported By:      root at net1 dot cc
 Status:           Open
 Bug Type:         Safe Mode/open_basedir
 Operating System: FreeBSD 6.2
 PHP Version:      5.2.5
 New Comment:

As I said before, my patch breaks the ini settings abi resulting in
segfaults if "old" extensions are loaded. Due to the fact that one of my
customers is using a proprietary extension I have implemented an
alternate, dirty but hopefully non-breaking patch.

The patch stores the original value 3 bits to the left of the new
value. This method won't break any php or pecl extensions (all checked).
Only ext/reflection needs to be recompiled.

http://manuel.mausz.at/coding/patches/php/5.2.5/php5.2.5-restore-ini-level2.patch


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

[2008-01-20 11:22:55] thorvath at fullnet dot hu

I have the same problem on FreeBSD 6.1 with php5-5.2.5, tried to patch
with the FreeBSD patch above, recompiled all modules, when I load
php5_module apache sigfaults with 11 and core dumps, I use the apache22
port.

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

[2008-01-19 15:56:00] scott at atomicrocketturtle dot com

Testing this patch against 5.2.5, ioncube-loader and zend-optimizer
will cause segmentation faults. Similar result with eaccelerator, which
was resolved with a rebuild.

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

[2008-01-17 16:52:48] d at tpyo dot net

Thanks Manuel.  Patch works perfectly.  But I agree, it is a fairly 
serious issue that undoubtedly affects a lot of users.

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

[2008-01-17 13:40:04] manuel at mausz dot at

Err... php as apache module... :)

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

[2008-01-17 13:35:48] manuel at mausz dot at

Can some dev please take a look at this (or the patch)?
This is a serious issue for all users running apache as module and
mixing php_admin_value and php_value.

It also looks like this is the same as:
http://bugs.php.net/bug.php?id=43842
http://bugs.php.net/bug.php?id=43755
http://bugs.php.net/bug.php?id=43207

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

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/43677

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

Reply via email to