phpVMS adaptation for php5.5.x