fixed assertion in php 5.4