fix managermanager for php5.4
fix Ditto for php5.4
fix dbapi for php5.4