View Single Post
Old January 27th, 2010, 11:50 AM   #1 (permalink)
Larry Stowell
Junior Member
Verified Customer
 
Join Date: Dec 2004
Posts: 26
eregi() function depricated php 5.3.1

I am running PP 6.2 and recently upgraded our server to php 5.3.1 and we now encounter a problem with the eregi() function. Is there a simple fix for this issue. Here is the code in the pp-inc.php file (line 79) that throws error messages.

function typecast_wc($pattern, $type)
{
// Let's import the GPC variables
global $_GET, $_POST, $_COOKIE;

foreach ($_GET AS $key => $val)
{
if ( eregi("^".$pattern, $key) )
{
typecast($_GET, array( $key => $type));
}
}

// Overwrites GET with POST
foreach ($_POST as $key => $val)
{
if ( eregi("^".$pattern, $key) )
{
typecast($_POST, array( $key => $type));
}
}
}

Thanks for the help.
Larry Stowell is offline   Reply With Quote