php 5.4 reference error  fixed