Php bad merge