diff options
author | Dennis1993 <marvin-wegener@outlook.com> | 2013-07-26 13:33:44 +0200 |
---|---|---|
committer | Dennis1993 <marvin-wegener@outlook.com> | 2013-07-26 13:33:44 +0200 |
commit | 60a79649f2a5f85d82af923e48cdf1cc895e9b10 (patch) | |
tree | d290e85893e0bed4c89f547aebed70a92d04643a | |
parent | e34e0fd2fa4806a06d92eef1b281f38242a9868a (diff) |
Update Socket.php
remove sensless version_compare(). Min PHP Version is 5.2.1 so is a check of PHP 5.1.0 sensless. So never occurs.
-rw-r--r-- | program/lib/Net/Socket.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/program/lib/Net/Socket.php b/program/lib/Net/Socket.php index bf1d1bbcd..a67a11af1 100644 --- a/program/lib/Net/Socket.php +++ b/program/lib/Net/Socket.php @@ -672,15 +672,10 @@ class Net_Socket extends PEAR */ function enableCrypto($enabled, $type) { - if (version_compare(phpversion(), "5.1.0", ">=")) { - if (!is_resource($this->fp)) { - return $this->raiseError('not connected'); - } - return @stream_socket_enable_crypto($this->fp, $enabled, $type); - } else { - $msg = 'Net_Socket::enableCrypto() requires php version >= 5.1.0'; - return $this->raiseError($msg); + if (!is_resource($this->fp)) { + return $this->raiseError('not connected'); } + return @stream_socket_enable_crypto($this->fp, $enabled, $type); } } |