Added support for php 5.5

...e cannot be used with replacement callback