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:
ethem
2006-11-20 08:20:30 +00:00
parent 0960421191
commit ef10728a74
+1
View File
@@ -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) {