php5.2-compatible tests