preg_match() error line 2993

See all posts Reply

preg_match() error line 2993 new!
by MrPhi, 7 years, 8 months ago
My code:

include 'class.upload.php';

$handle = new upload('images/Capture.jpg');
$handle->image_resize          = true;
$handle->image_ratio_y         = true;
$handle->image_x               = 600;
$handle->jpeg_quality			= 90;

$handle->Process('./images/test/');

if ($handle->processed) {
  echo 'ok';
  // $handle->Clean();
} else {
  echo 'error : ' . $handle->error;
}

I got this error:

Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in D:\UniServerZ_12\www\vidu\crop\class.upload.php on line 2993 Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in D:\UniServerZ_12\www\vidu\crop\class.upload.php on line 3011

How to fix itReply
Re: preg_match() error line 2993 new!
by colin, 7 years, 8 months ago
Are you using the latest version of the class?Reply