Skip to content

Commit 9b76882

Browse files
committed
Update to version 2.0.5
1 parent 2fe972d commit 9b76882

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"type": "library",
99
"keywords": ["Sphinx Search","search-engine","api"],
1010
"homepage": "http://sphinxsearch.com/",
11-
"version": "2.0.4",
11+
"version": "2.0.5",
1212
"authors": [
1313
{
1414
"name": "Andrew Aksyonoff",

sphinxapi.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
//
4-
// $Id: sphinxapi.php 3087 2012-01-30 23:07:35Z shodan $
4+
// $Id: sphinxapi.php 3281 2012-07-08 20:45:52Z shodan $
55
//
66

77
//
@@ -511,9 +511,10 @@ function SetServer ( $host, $port = 0 )
511511
return;
512512
}
513513

514-
assert ( is_int($port) );
515514
$this->_host = $host;
516-
$this->_port = $port;
515+
if ( is_int($port) )
516+
if ( $port )
517+
$this->_port = $port;
517518
$this->_path = '';
518519

519520
}
@@ -1258,7 +1259,7 @@ function _ParseSearchResponse ( $response, $nreqs )
12581259
$nvalues = $val;
12591260
while ( $nvalues>0 && $p<$max )
12601261
{
1261-
$attrvals[$attr][] = sphUnpackU64 ( substr ( $response, $p, 8 ) ); $p += 8;
1262+
$attrvals[$attr][] = sphUnpackI64 ( substr ( $response, $p, 8 ) ); $p += 8;
12621263
$nvalues -= 2;
12631264
}
12641265
} else if ( $type==SPH_ATTR_STRING )
@@ -1708,5 +1709,5 @@ function FlushAttributes ()
17081709
}
17091710

17101711
//
1711-
// $Id: sphinxapi.php 3087 2012-01-30 23:07:35Z shodan $
1712+
// $Id: sphinxapi.php 3281 2012-07-08 20:45:52Z shodan $
17121713
//

0 commit comments

Comments
 (0)