Make Zend Studio happy :)
Code Analyzer Output: Variable $errno was used before it was defined (line 221) Variable $errstr was used before it was defined (line 221) Category: Coding Style A local variable is used before it is defined. Even though PHP initializes variables with empty values on the first use, it is considered a good practice to explicitly initialize variables to make code more readable and avoid unnecessary bugs.
This commit is contained in:
@@ -217,6 +217,7 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $
|
||||
$referer = "Referer: $CFG->an_referer\r\n";
|
||||
}
|
||||
|
||||
$errno = 0; $errstr = '';
|
||||
$host = $test ? 'certification.authorize.net' : 'secure.authorize.net';
|
||||
$fp = fsockopen("ssl://$host", 443, $errno, $errstr, 60);
|
||||
if (!$fp) {
|
||||
|
||||
Reference in New Issue
Block a user