500||preg_match('/[\x00-\x1f\x7f]/',$reason))throw new RuntimeException('Enter a reason of 8 to 500 characters.'); unset($session['shop_device_cancel']);$s['reason']=trim($reason);return $s; } }