mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-28 11:25:44 +00:00
Merge branch 'PHP-7.0'
* PHP-7.0: 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
This commit is contained in:
commit
1eb8e74834
7 files changed
+31
-21
No files matched your search
+19
-7
@@ -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:
|
||||
@@ -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
|
||||
|
||||
@@ -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";
|
||||
@@ -31,5 +31,5 @@ ut_run();
|
||||
?>
|
||||
--EXPECT--
|
||||
1234567,891
|
||||
de_DE
|
||||
de_DE.UTF-8
|
||||
|
||||
@@ -7,8 +7,8 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
|
||||
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--
|
||||
@@ -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--
|
||||
|
||||
+4
-2
@@ -10,7 +10,9 @@ else
|
||||
DEBUG="";
|
||||
fi
|
||||
./buildconf --force
|
||||
./configure --quiet \
|
||||
./configure \
|
||||
--prefix=$HOME"/php-install" \
|
||||
--quiet \
|
||||
$DEBUG \
|
||||
$TS \
|
||||
--enable-phpdbg \
|
||||
@@ -61,4 +63,4 @@ $TS \
|
||||
--with-kerberos \
|
||||
--enable-sysvmsg
|
||||
make -j2 --quiet
|
||||
sudo make install
|
||||
make install
|
||||
@@ -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 -
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
sudo apt-get install re2c libgmp-dev libicu-dev libmcrypt-dev libtidy-dev
|
||||
Reference in new issue
Block a user