Yii framework PHP extension porting