diff --git a/php-4.3.9-metaphone.patch b/php-4.3.9-metaphone.patch new file mode 100644 index 0000000..7a7a6cf --- /dev/null +++ b/php-4.3.9-metaphone.patch @@ -0,0 +1,14 @@ + +https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=135828 + +--- php-4.3.9/ext/standard/metaphone.c.metaphone ++++ php-4.3.9/ext/standard/metaphone.c +@@ -152,7 +152,7 @@ + (*phoned_word)[p_idx++] = c; \ + } + /* Slap a null character on the end of the phoned word */ +-#define End_Phoned_Word {(*phoned_word)[p_idx] = '\0';} ++#define End_Phoned_Word Phonize('\0') + /* How long is the phoned word? */ + #define Phone_Len (p_idx) + diff --git a/php.spec b/php.spec index a7862ea..47072f3 100644 --- a/php.spec +++ b/php.spec @@ -6,7 +6,7 @@ Summary: The PHP HTML-embedded scripting language Name: php Version: 5.2.4 -Release: 2 +Release: 3 License: PHP Group: Development/Languages URL: http://www.php.net/ @@ -28,6 +28,7 @@ Patch21: php-5.2.4-odbc.patch Patch22: php-4.3.11-shutdown.patch Patch23: php-5.2.2-pdosym.patch Patch24: php-5.2.3-macropen.patch +Patch25: php-4.3.9-metaphone.patch # Functional changes Patch30: php-5.0.4-dlopen.patch @@ -43,7 +44,7 @@ BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, expat-devel BuildRequires: gmp-devel, aspell-devel >= 0.50.0 BuildRequires: httpd-devel >= 2.0.46-1, libjpeg-devel, libpng-devel, pam-devel BuildRequires: libstdc++-devel, openssl-devel, sqlite-devel >= 3.0.0 -BuildRequires: zlib-devel, pcre-devel >= 4.5, smtpdaemon, readline-devel +BuildRequires: zlib-devel, pcre-devel >= 6.6, smtpdaemon, readline-devel BuildRequires: bzip2, perl, libtool >= 1.4.3, gcc-c++ Obsoletes: php-dbg, php3, phpfi, stronghold-php # Enforce Apache module ABI compatibility @@ -357,6 +358,7 @@ into applications to provide PHP scripting language support. %patch22 -p1 -b .shutdown %patch23 -p1 -b .pdosym %patch24 -p1 -b .macropen +%patch25 -p1 -b .metaphone %patch30 -p1 -b .dlopen %patch31 -p1 -b .easter @@ -680,6 +682,7 @@ rm files.* macros.php %{_bindir}/php %{_bindir}/php-cgi %{_mandir}/man1/php.1* +%doc sapi/cgi/README* sapi/cli/README %files devel %defattr(-,root,root) @@ -717,6 +720,11 @@ rm files.* macros.php %files mssql -f files.mssql %changelog +* Mon Oct 15 2007 Joe Orton 5.2.4-3 +- correct pcre BR version (#333021) +- restore metaphone fix (#205714) +- add READMEs to php-cli + * Sun Sep 16 2007 Joe Orton 5.2.4-2 - update to 5.2.4