-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
What steps will reproduce the problem?
1. https://www.textmagic.com not reachable
2. Try to use API
3. Exception is thrown with misleading error message
What is the expected output?
Could not connect to https://www.textmagic.com
What do you see instead?
Please check does PHP have OpenSSL support.
What version of the product are you using?
Latest release - has no version number in source code
On what operating system?
Debian GNU/Linux Squeeze
Please provide any additional information below.
TextMagicAPI.php
private function _executeFOpenRequestAndReturn($params)
{
$raw_data = '';
$url = $this->_config['gateway'];
foreach ($params as $key=>$value) {
$url .= "&" . $key . "=" . $value;
}
$handler = @fopen($url, 'r');
if ($handler) {
while ($line = @fgets($handler, 1024)) {
$raw_data .= $line;
}
fclose($handler);
} else {
throw new Exception("Please check does PHP have OpenSSL support.");
}
return $raw_data;
}
It just doesn't make sense to give the engineers the impression something
might be wrong with SSL support in PHP or SSL support is even missing
when in reality the gateway https://www.textmagic.com/app/api just can not
be connected to (because of what reason whatsoever).
Original issue reported on code.google.com by voodoofo...@googlemail.com on 25 Sep 2012 at 7:58