Index: branches/fc15-dev/server/common/patches/php-user-ini-extension.patch
===================================================================
--- branches/fc15-dev/server/common/patches/php-user-ini-extension.patch	(revision 2041)
+++ branches/fc15-dev/server/common/patches/php-user-ini-extension.patch	(revision 2041)
@@ -0,0 +1,10 @@
+--- php-5.3.8-orig/sapi/cgi/cgi_main.c	2011-11-09 14:51:07.988054992 -0500
++++ php-5.3.8/sapi/cgi/cgi_main.c	2011-11-09 14:53:27.804393949 -0500
+@@ -782,6 +782,7 @@
+ 
+ 	/* Activate ini entries with values from the user config hash */
+ 	php_ini_activate_config(entry->user_config, PHP_INI_PERDIR, PHP_INI_STAGE_HTACCESS TSRMLS_CC);
++	php_ini_register_extensions(TSRMLS_CC);
+ }
+ /* }}} */
+ 
Index: branches/fc15-dev/server/common/patches/php-zend-llist-destroy.patch
===================================================================
--- branches/fc15-dev/server/common/patches/php-zend-llist-destroy.patch	(revision 2041)
+++ branches/fc15-dev/server/common/patches/php-zend-llist-destroy.patch	(revision 2041)
@@ -0,0 +1,11 @@
+--- php-5.3.8-orig/Zend/zend_llist.c	2011-11-09 14:50:55.691289017 -0500
++++ php-5.3.8/Zend/zend_llist.c	2011-11-10 21:11:02.585017295 -0500
+@@ -117,6 +117,8 @@
+ 		current = next;
+ 	}
+ 
++	l->head = NULL;
++	l->tail = NULL;
+ 	l->count = 0;
+ }
+ 
Index: branches/fc15-dev/server/fedora/Makefile
===================================================================
--- branches/fc15-dev/server/fedora/Makefile	(revision 2040)
+++ branches/fc15-dev/server/fedora/Makefile	(revision 2041)
@@ -19,5 +19,5 @@
 # See /COPYRIGHT in this repository for more information.
 
-upstream_yum	= krb5 krb5.i686 httpd openssh redland-bindings rubygems
+upstream_yum	= krb5 krb5.i686 httpd openssh redland-bindings rubygems php
 hackage		= MonadCatchIO-mtl-0.3.0.2 cgi-3001.1.8.2 unix-handle-0.0.0
 upstream_hackage = ghc-MonadCatchIO-mtl ghc-cgi ghc-unix-handle
Index: branches/fc15-dev/server/fedora/specs/php.spec.patch
===================================================================
--- branches/fc15-dev/server/fedora/specs/php.spec.patch	(revision 2041)
+++ branches/fc15-dev/server/fedora/specs/php.spec.patch	(revision 2041)
@@ -0,0 +1,39 @@
+--- rpmbuild/SPECS/php.spec.orig	2011-11-09 14:44:56.673119178 -0500
++++ rpmbuild/SPECS/php.spec	2011-11-10 21:12:59.705782920 -0500
+@@ -37,7 +37,7 @@
+ Summary: PHP scripting language for creating dynamic web sites
+ Name: php
+ Version: 5.3.8
+-Release: 3%{?dist}
++Release: 3%{?dist}.scripts.%{scriptsversion}
+ License: PHP
+ Group: Development/Languages
+ URL: http://www.php.net/
+@@ -79,6 +79,9 @@
+ # Fixes for tests
+ Patch61: php-5.0.4-tests-wddx.patch
+ 
++Patch1000: php-zend-llist-destroy.patch
++Patch1001: php-user-ini-extension.patch
++
+ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+ 
+ BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, gmp-devel
+@@ -94,6 +97,7 @@
+ Requires: php-cli%{?_isa} = %{version}-%{release}
+ # To ensure correct /var/lib/php/session ownership:
+ Requires(pre): httpd
++Provides: scripts-php = %{version}-%{release}
+ 
+ 
+ # Don't provides extensions, which are not shared library, as .so
+@@ -549,6 +553,9 @@
+ 
+ %patch61 -p1 -b .tests-wddx
+ 
++%patch1000 -p1 -b .llist-destroy
++%patch1001 -p1 -b .userini-ext
++
+ # Prevent %%doc confusion over LICENSE files
+ cp Zend/LICENSE Zend/ZEND_LICENSE
+ cp TSRM/LICENSE TSRM_LICENSE
