bug #1: Attempt to fix ereg* functions not existing anymore.