View Single Post
  #6  
Old 6th May 2009, 10:57
magenbrot magenbrot is offline
Junior Member
 
Join Date: May 2009
Location: Fuerth / Bavaria / Germany
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to magenbrot
Default

Hi,

I just had the same problem.
My solution was to move the suhosin patch to the end of the patch process.
It seems that there are a few patches that mess around with Zend/zend_hash.c

It now looks like this:
Code:
Patch1: php-5.1.4-gnusrc.patch
Patch2: php-5.1.4-warnings.patch
Patch5: php-4.3.3-install.patch
Patch6: php-5.0.4-norpath.patch
Patch7: php-4.3.2-libtool15.patch
Patch13: php-5.0.2-phpize64.patch
#Patch14: php-5.1.6-ecalloc.patch
Patch15: php-5.2.0-includedir.patch
Patch16: php-5.1.6-bug38534.patch
[...]
Patch104: php-5.1.6-mbstring-overload-func.patch
Patch105: php-5.1.6-gdoverflow.patch
Patch106: php-5.1.6-suhosin.patch
[...]
%setup -q
%patch1 -p1 -b .gnusrc
%patch2 -p1 -b .warnings
%patch5 -p1 -b .install
%patch6 -p1 -b .norpath
%patch7 -p1 -b .libtool15
%patch13 -p1 -b .phpize64
#%patch14 -p1 -b .ecalloc
%patch15 -p1 -b .includedir
[...]
%patch103 -p1 -b .cve5814
%patch104 -p1 -b .mbstring-overload-func
%patch106 -p1 -b .suhosin
PHP builds fine now:

Code:
Wrote: /usr/src/redhat/SRPMS/php-5.1.6-23.2.src.rpm
Code:
This server is protected with the Suhosin Extension 0.9.27
Reply With Quote