Friday, October 5, 2007

PHP 5.2:Indirect modification of overloaded property

PHP 5.1 升級到 5.2 需要注意一些事情
What has changed in PHP 5.2.x
Backward Incompatible Changes
New Error Messages
Changes in PHP datetime support
New Parameters
New Functions
New Methods
Removed Extensions
New Extensions
New Classes
New Global Constants
New Class Constants
New INI Configuration Directives
Error Reporting
Other Enhancements
例如下列原本在 PHP 5.1 可順利執行:
$objColumn->Datas[$strLang]->$strColumnName = $strValue;

但在 PHP 5.2 需改成需改成:
$arrDatas = $objColumn->Datas;
$arrDatas[$strLang]->$strColumnName = $strValue;

0 comments: