fix the eregi and ereg bugs in the php5.3.x