Fix enum for php 5.3