Fix Register test on php 5.4