Skip to content

Commit 6c1b1b4

Browse files
authored
Merge pull request #206 from FoolCode/update-travis
2 parents 041c821 + 273abd9 commit 6c1b1b4

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

.travis.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
dist: bionic
12
language: php
23

34
php:
4-
- 7.1
5-
- 7.2
6-
- 7.3
75
- 7.4
86
- 8.0
97
- 8.1.0

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### 3.0.2
2+
* Dropped support for PHP 7.3 and lower
3+
14
#### 3.0.1
25
* Fixed Exception Error for PDO Driver
36
* Dropped support for PHP 7.0 and lower

src/SphinxQL.php

+4
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,10 @@ public function compileEscapeChars($array = array())
13681368
*/
13691369
public function escapeMatch($string)
13701370
{
1371+
if (is_null($string)) {
1372+
return '';
1373+
}
1374+
13711375
if ($string instanceof Expression) {
13721376
return $string->value();
13731377
}

tests/install.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
case $SEARCH_BUILD in
44
SPHINX2)
5-
wget --quiet http://ppa.launchpad.net/builds/sphinxsearch-rel22/ubuntu/dists/`lsb_release -cs`/main/binary-amd64/Packages.gz
6-
gzip -d Packages.gz
7-
SPHINX_DEB=`grep -m1 Filename Packages | cut -f2 -d' '`
8-
wget --quiet -O search.deb http://ppa.launchpad.net/builds/sphinxsearch-rel22/ubuntu/${SPHINX_DEB}
9-
dpkg -x search.deb .
5+
wget --quiet http://sphinxsearch.com/files/sphinx-2.2.11-release.tar.gz
6+
tar zxvf sphinx-2.2.11-release.tar.gz
7+
cd sphinx-2.2.11-release
8+
./configure --prefix=/usr/local/sphinx
9+
sudo make && sudo make install
1010
;;
1111
SPHINX3)
1212
wget --quiet http://sphinxsearch.com/files/sphinx-3.0.3-facc3fb-linux-amd64.tar.gz

tests/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ case $SEARCH_BUILD in
44
SPHINX2)
55
WORK=$HOME/search
66
gcc -shared -o data/test_udf.so test_udf.c
7-
$WORK/usr/bin/searchd -c sphinx.conf
7+
/usr/local/sphinx/bin/searchd -c sphinx.conf
88
;;
99
SPHINX3)
1010
WORK=$HOME/search/sphinx-3.0.3

0 commit comments

Comments
 (0)