From a0a966d3fb46f5a0b19feff6f968f1cdd3a68285 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 5 Dec 2008 19:22:20 +0000 Subject: [PATCH] update to 5.2.7 --- .cvsignore | 5 +--- php-5.2.4-tests-dashn.patch | 55 ------------------------------------- php-5.2.7-tests-dashn.patch | 11 ++++++++ php.spec | 18 ++++++++---- sources | 2 +- 5 files changed, 25 insertions(+), 66 deletions(-) delete mode 100644 php-5.2.4-tests-dashn.patch create mode 100644 php-5.2.7-tests-dashn.patch diff --git a/.cvsignore b/.cvsignore index c5d4dab..b56a36a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,4 +1 @@ -php-5.2.3 -clog -*.tar.gz -*.rpm +php-5.2.7.tar.bz2 diff --git a/php-5.2.4-tests-dashn.patch b/php-5.2.4-tests-dashn.patch deleted file mode 100644 index 7aaf6a9..0000000 --- a/php-5.2.4-tests-dashn.patch +++ /dev/null @@ -1,55 +0,0 @@ ---- php-5.2.4/ext/standard/tests/file/bug26615.phpt.tests-dashn -+++ php-5.2.4/ext/standard/tests/file/bug26615.phpt -@@ -7,9 +7,9 @@ variables_order=E - $out = array(); - $status = -1; - if (substr(PHP_OS, 0, 3) != 'WIN') { -- exec($_ENV['TEST_PHP_EXECUTABLE'].' -r \'for($i=1;$i<=5000;$i++) print "$i\n";\' | tr \'\n\' \' \'', $out, $status); -+ exec($_ENV['TEST_PHP_EXECUTABLE'].' -n -r \'for($i=1;$i<=5000;$i++) print "$i\n";\' | tr \'\n\' \' \'', $out, $status); - } else { -- exec($_ENV['TEST_PHP_EXECUTABLE'].' -r "for($i=1;$i<=5000;$i++) echo $i,\' \';"', $out, $status); -+ exec($_ENV['TEST_PHP_EXECUTABLE'].' -n -r "for($i=1;$i<=5000;$i++) echo $i,\' \';"', $out, $status); - } - print_r($out); - ?> ---- php-5.2.4/ext/standard/tests/file/proc_open01.phpt.tests-dashn -+++ php-5.2.4/ext/standard/tests/file/proc_open01.phpt -@@ -9,7 +9,7 @@ if ($php === false) { - die("no php executable defined"); - } - $proc = proc_open( -- $php, -+ $php . " -n", - array(0 => array('pipe', 'r'), 1 => array('pipe', 'w')), - $pipes - ); ---- php-5.2.4/ext/standard/tests/file/bug26938.phpt.tests-dashn -+++ php-5.2.4/ext/standard/tests/file/bug26938.phpt -@@ -6,14 +6,14 @@ $out = array(); - $status = -1; - $php = getenv('TEST_PHP_EXECUTABLE'); - if (substr(PHP_OS, 0, 3) != 'WIN') { -- exec($php . ' -r \'' -+ exec($php . ' -n -r \'' - . '$lengths = array(10,20000,10000,5,10000,3);' - . 'foreach($lengths as $length) {' - . ' for($i=0;$i<$length;$i++) print chr(65+$i % 27);' - . ' print "\n";' - . '}\'', $out, $status); - } else { -- exec($php . ' -r "' -+ exec($php . ' -n -r "' - . '$lengths = array(10,20000,10000,5,10000,3);' - . 'foreach($lengths as $length) {' - . ' for($i=0;$i<$length;$i++) print chr(65+$i % 27);' ---- php-5.2.4/Makefile.global.tests-dashn -+++ php-5.2.4/Makefile.global -@@ -63,7 +63,7 @@ install-headers: - done; \ - fi - --PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -+PHP_TEST_SETTINGS = -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' - PHP_TEST_SHARED_EXTENSIONS = ` \ - if test "x$(PHP_MODULES)" != "x"; then \ - for i in $(PHP_MODULES)""; do \ diff --git a/php-5.2.7-tests-dashn.patch b/php-5.2.7-tests-dashn.patch new file mode 100644 index 0000000..8d70d03 --- /dev/null +++ b/php-5.2.7-tests-dashn.patch @@ -0,0 +1,11 @@ +--- php-5.2.7/Makefile.global.orig 2008-12-05 07:37:27.000000000 +0100 ++++ php-5.2.7/Makefile.global 2008-12-05 07:37:55.000000000 +0100 +@@ -67,7 +67,7 @@ + done; \ + fi + +-PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' ++PHP_TEST_SETTINGS = -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' + PHP_TEST_SHARED_EXTENSIONS = ` \ + if test "x$(PHP_MODULES)" != "x"; then \ + for i in $(PHP_MODULES)""; do \ diff --git a/php.spec b/php.spec index 924e028..f45d0bf 100644 --- a/php.spec +++ b/php.spec @@ -7,13 +7,13 @@ Summary: PHP scripting language for creating dynamic web sites Name: php -Version: 5.2.6 -Release: 7 +Version: 5.2.7 +Release: 1%{?dist} License: PHP Group: Development/Languages URL: http://www.php.net/ -Source0: http://www.php.net/distributions/php-%{version}.tar.gz +Source0: http://www.php.net/distributions/php-%{version}.tar.bz2 Source1: php.conf Source2: php.ini Source3: macros.php @@ -36,7 +36,7 @@ Patch31: php-5.2.4-easter.patch Patch32: php-5.2.6-systzdata.patch # Fixes for tests -Patch50: php-5.2.4-tests-dashn.patch +Patch50: php-5.2.7-tests-dashn.patch Patch51: php-5.0.4-tests-wddx.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -327,7 +327,7 @@ support for using the tidy library to PHP. %package mssql Summary: MSSQL database module for PHP Group: Development/Languages -Requires: php-common = %{version}-%{release} +Requires: php-common = %{version}-%{release}, php-pdo BuildRequires: freetds-devel %description mssql @@ -530,6 +530,7 @@ build --enable-force-cgi-redirect \ --with-pdo-mysql=shared,%{_prefix} \ --with-pdo-pgsql=shared,%{_prefix} \ --with-pdo-sqlite=shared,%{_prefix} \ + --with-pdo-dblib=shared,%{_prefix} \ --enable-json=shared \ --enable-zip=shared \ --with-readline \ @@ -613,7 +614,7 @@ install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session for mod in pgsql mysql mysqli odbc ldap snmp xmlrpc imap \ mbstring ncurses gd dom xsl soap bcmath dba xmlreader xmlwriter \ pdo pdo_mysql pdo_pgsql pdo_odbc pdo_sqlite json zip \ - dbase mcrypt mhash tidy mssql pspell; do + dbase mcrypt mhash tidy pdo_dblib mssql pspell; do cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini < files.xml cat files.mysqli >> files.mysql # Split out the PDO modules +cat files.pdo_dblib >> files.mssql cat files.pdo_mysql >> files.mysql cat files.pdo_pgsql >> files.pgsql cat files.pdo_odbc >> files.odbc @@ -729,6 +731,10 @@ rm files.* macros.php %files pspell -f files.pspell %changelog +* Fri Dec 05 2008 Remi Collet 5.2.7-1 +- update to 5.2.7 +- enable pdo_dblib driver in php-mssql + * Mon Nov 24 2008 Joe Orton 5.2.6-7 - tweak Summary, thanks to Richard Hughes diff --git a/sources b/sources index 780cc71..b0709ea 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1720f95f26c506338f0dba3a51906bbd php-5.2.6.tar.gz +9ffc42edbb7faad965699666ddd559bc php-5.2.7.tar.bz2