Warning: eregi() [function.eregi]: REG_EESCAPE

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
SunInt
Forum Newbie
Posts: 1
Joined: Thu Oct 01, 2009 11:24 pm

Warning: eregi() [function.eregi]: REG_EESCAPE

Post by SunInt »

Can anyone tell me what this means and how this can be fixed. Is this a permissions issue? Or would it be an issue inside the php file? Any help would be very appreciated.

Below is a piece of code from the php file and line number where the error says it is occuring, maybe this would help:

// Base path is defined as a restriction on going to far up the directory structure
if (realpath($base) == realpath($path)):
$this->parent_dir = $path;
$this->parent_access = false;
else:
$this->parent_dir = realpath($path."/..");
$this->parent_access = true;
endif;

// If there is a base path and we're outside of it, return error and exit
if ($base != "" && !eregi(realpath($base), realpath($path)) && realpath($base) != realpath($path)):
$this->success = false;
return;
endif;
Post Reply