Skip to content

Commit

Permalink
Merge branch 'PHP-5.6' into PHP-7.0
Browse files Browse the repository at this point in the history
* PHP-5.6:
  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
  • Loading branch information
Tyrael committed Oct 19, 2015
2 parents 26e5429 + 395ef4e commit 03e1e88
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 21 deletions.
26 changes: 19 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
language: c
sudo: false
addons:
apt:
packages:
- locales
- language-pack-de
- re2c
- libgmp-dev
- libicu-dev
- libmcrypt-dev
- libtidy-dev
- libenchant-dev
- libaspell-dev
- libpspell-dev
- librecode-dev
- libsasl2-dev
- libxpm-dev
- libt1-dev
- libc-client2007e-dev

notifications:
email:
Expand Down Expand Up @@ -27,13 +46,6 @@ env:
- ENABLE_MAINTAINER_ZTS=0 ENABLE_DEBUG=0
- ENABLE_MAINTAINER_ZTS=1 ENABLE_DEBUG=1

before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libenchant-dev libaspell-dev libpspell-dev librecode-dev libsasl2-dev libxpm-dev libt1-dev libc-client2007e-dev
- sudo cp ./travis/de /var/lib/locales/supported.d/de
- sudo dpkg-reconfigure locales
- ./travis/install.sh

before_script:
# Compile PHP
- ./travis/compile.sh
Expand Down
4 changes: 2 additions & 2 deletions ext/intl/tests/bug67052.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ setlocale(LC_ALL, $l);

function ut_main()
{
setlocale(LC_ALL, 'de_DE');
setlocale(LC_ALL, 'de_DE.UTF-8');
$fmt = new NumberFormatter( 'sl_SI.UTF-8', NumberFormatter::DECIMAL);
$num = "1.234.567,891";
$res_str = $fmt->parse($num)."\n";
Expand All @@ -31,5 +31,5 @@ ut_run();
?>
--EXPECT--
1234567,891
de_DE
de_DE.UTF-8

6 changes: 3 additions & 3 deletions ext/standard/tests/file/filetype_variation2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Dave Kelsey <[email protected]>
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip no /dev on Windows');
}
if (!file_exists("/dev/console")) {
die('skip /dev/console not available');
if (!file_exists("/dev/null")) {
die('skip /dev/null not available');
}
?>
--FILE--
Expand All @@ -20,7 +20,7 @@ Description: Returns the type of the file. Possible values are fifo, char,
*/

echo "-- Checking for char --\n";
print( filetype("/dev/console") )."\n";
print( filetype("/dev/null") )."\n";
?>
===DONE===
--EXPECTF--
Expand Down
6 changes: 4 additions & 2 deletions travis/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ else
DEBUG="";
fi
./buildconf --force
./configure --quiet \
./configure \
--prefix=$HOME"/php-install" \
--quiet \
$DEBUG \
$TS \
--enable-phpdbg \
Expand Down Expand Up @@ -61,4 +63,4 @@ $TS \
--with-kerberos \
--enable-sysvmsg
make -j2 --quiet
sudo make install
make install
2 changes: 0 additions & 2 deletions travis/de

This file was deleted.

6 changes: 3 additions & 3 deletions travis/ext/curl/setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
export PHP_CURL_HTTP_REMOTE_SERVER="http://localhost"
export PHP_CURL_HTTP_REMOTE_SERVER="http://localhost:8080"
cd ./ext/curl/tests/responder
sudo php -S localhost:80 &
cd -
php -S localhost:8080 &
cd -
2 changes: 0 additions & 2 deletions travis/install.sh

This file was deleted.

0 comments on commit 03e1e88

Please sign in to comment.