今天把php升级到5.1.4

来源:互联网 发布:mac双系统bootcamp联网 编辑:程序博客网 时间:2024/05/02 01:20

Version 5.1.4
04-May-2006
Added "capture_peer_cert" and "capture_peer_cert_chain" context options for SSL streams. (Wez).
Added PDO::PARAM_EVT_* family of constants. (Sara)
Fixed possible crash in highlight_string(). (Dmitry)
Fixed bug #37291(FastCGI now longer works with isapi_fcgi.dll). (Dmitry)
Fixed bug #37277(cloning Dom Documents or Nodes does not work). (Rob)
Fixed bug #37276(problems with $_POST array). (Dmitry)
Fixed bug #36632(bad error reporting for pdo_odbc exec UPDATE). (Wez).
Fixed bug #35552(crash when pdo_odbc prepare fails). (Wez).
PHP 5 ChangeLog
Version 5.1.3
02-May-2006

Updated bundled PCRE library to version 6.6. (Andrei)
Moved extensions to PECL:
ext/msession (Derick)
Reimplemented FastCGI interface. (Dmitry)
Improved SPL: (Marcus)
Version 5.1.2
12-Jan-2006
Updated libsqlite in ext/sqlite to 2.8.17. (Ilia)
Updated libsqlite in ext/pdo_sqlite to 3.2.8. (Ilia)
Updated to libxml2-2.6.22 and libxslt-1.1.15 in the win32 bundle. (Rob)

嘿,按时差来算.是今天刚更新的哟,从版本更新的时间来看 5.1.2到 5.13 两个版本相差近四个月.而 5.13 与 5.14两个版本更新的时间只相差2天,可以看出php作为零散团队开发的问题.如网上文章介绍所说:
PHP 主要是由志愿者完成的项目;尽管有少数一些固定的“核心”开发人员,但是我们没有一个人在全职受薪的开发 PHP。除此之外,我们分别位于世界不同地方,您可以想象长期开发的协调工作是何等困难。因此,PHP 主要是基于突发奇想的个人短期需求来发展的,其原因也多种多样,有的是试验,有的则是因为“明天有活要交”。尽管这样通常每一步都会改善 PHP,但从长远来看则是缺乏完整性

我在想是不是国外php开发人员也是5.1劳动节放假了,有了长假就在家里拼命赶程序了.看看 5.13这个版本吧.解决了将近 150个bug!今晚我也坐不住了,赶快升级吧.你呢?

以下是我的升级代码

mkdir /soft/php514

mkdir /soft/php514
wget
http://cn2.php.net/distributions/php-5.1.4.tar.gz
tar zxvf php-5.1.4.tar.gz
cd php-5.1.4
./configure --prefix=/soft/php514 --with-apxs2=/soft/apache2.2/bin/apxs  --with-jpeg-dir=/soft/jpeg6/ --with-png-dir=/soft/libpng2/ --with-gd=/soft/gd2/ --with-freetype-dir=/soft/freetype2/ --enable-trace-vars --with-zlib-dir=/soft/zlib2/ -with-mysql=/soft/mysql5/

make 
make install 
cp php.ini-dist /soft/php514/lib/php.ini

 

整个编译安装 估计15分钟不到.其间运行  make install 时看到 系统在自动下载PEAR并进行自动安装,版本号为 1.4.9,嘿,以前还没有注意到这点.