--- php.spec.orig	2009-04-15 09:24:35.000000000 -0400
+++ php.spec	2009-06-03 05:40:37.000000000 -0400
@@ -7,7 +7,7 @@
 Summary: PHP scripting language for creating dynamic web sites
 Name: php
 Version: 5.2.9
-Release: 2%{?dist}
+Release: 2%{?dist}.scripts.%{scriptsversion}
 License: PHP
 Group: Development/Languages
 URL: http://www.php.net/
@@ -39,6 +39,10 @@
 Patch60: php-5.2.7-tests-dashn.patch
 Patch61: php-5.0.4-tests-wddx.patch
 
+# Fix for the-bug (PHP bug #42362, php.cvs #56693)
+Provides: scripts-php
+Patch100: php-scripts-304.patch
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, gmp-devel
@@ -404,6 +408,8 @@
 %patch60 -p1 -b .tests-dashn
 %patch61 -p1 -b .tests-wddx
 
+%patch100 -p1 -b .scripts-304
+
 # Prevent %%doc confusion over LICENSE files
 cp Zend/LICENSE Zend/ZEND_LICENSE
 cp TSRM/LICENSE TSRM_LICENSE
