Skip to content

Commit 395ef4e

Browse files
committed
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: fixup, both catched by nikic use another character device in this test as /dev/console seems that it is different for lxc containers the de_DE(iso-8859-1) locale is not available on ubuntu by default, but there is no reason to require that over the utf-8 one let's try running our testsuite without sudo
2 parents 0b35e0c + f3838a9 commit 395ef4e

File tree

7 files changed

+27
-21
lines changed

7 files changed

+27
-21
lines changed

.travis.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
language: c
2+
sudo: false
3+
addons:
4+
apt:
5+
packages:
6+
- locales
7+
- language-pack-de
8+
- re2c
9+
- libgmp-dev
10+
- libicu-dev
11+
- libmcrypt-dev
12+
- libtidy-dev
13+
- libenchant-dev
14+
- libaspell-dev
15+
- libpspell-dev
16+
- librecode-dev
217

318
notifications:
419
email:
@@ -27,13 +42,6 @@ env:
2742
- ENABLE_MAINTAINER_ZTS=0 ENABLE_DEBUG=0
2843
- ENABLE_MAINTAINER_ZTS=1 ENABLE_DEBUG=1
2944

30-
before_install:
31-
- sudo apt-get update -qq
32-
- sudo apt-get install -y libenchant-dev libaspell-dev libpspell-dev librecode-dev
33-
- sudo cp ./travis/de /var/lib/locales/supported.d/de
34-
- sudo dpkg-reconfigure locales
35-
- ./travis/install.sh
36-
3745
before_script:
3846
# Compile PHP
3947
- ./travis/compile.sh

ext/intl/tests/bug67052.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ setlocale(LC_ALL, $l);
1717

1818
function ut_main()
1919
{
20-
setlocale(LC_ALL, 'de_DE');
20+
setlocale(LC_ALL, 'de_DE.UTF-8');
2121
$fmt = new NumberFormatter( 'sl_SI.UTF-8', NumberFormatter::DECIMAL);
2222
$num = "1.234.567,891";
2323
$res_str = $fmt->parse($num)."\n";
@@ -31,5 +31,5 @@ ut_run();
3131
?>
3232
--EXPECT--
3333
1234567,891
34-
de_DE
34+
de_DE.UTF-8
3535

ext/standard/tests/file/filetype_variation2.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Dave Kelsey <[email protected]>
77
if (substr(PHP_OS, 0, 3) == 'WIN') {
88
die('skip no /dev on Windows');
99
}
10-
if (!file_exists("/dev/console")) {
11-
die('skip /dev/console not available');
10+
if (!file_exists("/dev/null")) {
11+
die('skip /dev/null not available');
1212
}
1313
?>
1414
--FILE--
@@ -20,7 +20,7 @@ Description: Returns the type of the file. Possible values are fifo, char,
2020
*/
2121

2222
echo "-- Checking for char --\n";
23-
print( filetype("/dev/console") )."\n";
23+
print( filetype("/dev/null") )."\n";
2424
?>
2525
===DONE===
2626
--EXPECTF--

travis/compile.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ else
1010
DEBUG="";
1111
fi
1212
./buildconf --force
13-
./configure --quiet \
13+
./configure \
14+
--prefix=$HOME"/php-install" \
15+
--quiet \
1416
$DEBUG \
1517
$TS \
1618
--enable-fpm \
@@ -58,4 +60,4 @@ $TS \
5860
--enable-wddx \
5961
--enable-sysvmsg
6062
make -j2 --quiet
61-
sudo make install
63+
make install

travis/de

Lines changed: 0 additions & 2 deletions
This file was deleted.

travis/ext/curl/setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
export PHP_CURL_HTTP_REMOTE_SERVER="http://localhost"
2+
export PHP_CURL_HTTP_REMOTE_SERVER="http://localhost:8080"
33
cd ./ext/curl/tests/responder
4-
sudo php -S localhost:80 &
5-
cd -
4+
php -S localhost:8080 &
5+
cd -

travis/install.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)