fix the eregi and ereg bugs in the php.5.3.x