bugfix: another patch for php5.4