Home | History | Annotate | Download | only in tests

Lines Matching refs:php

3 # Test of gettext facilities in the PHP language.
10 tmpfiles="$tmpfiles prog.php"
11 cat <<\EOF > prog.php
25 ${XGETTEXT} -o prog.pot --omit-header --no-location prog.php
32 #, php-format
49 #, php-format
68 # Test for presence of php version 4.0 or newer with gettext support.
69 (php -v) >/dev/null 2>/dev/null
71 || { echo "Skipping test: php not found"; rm -fr $tmpfiles; exit 77; }
72 case `php -v | sed -n -e 1p | sed -e 's/^[^0-9]*//'` in
74 *) echo "Skipping test: php version too old"; rm -fr $tmpfiles; exit 77;;
76 { php -m | grep '^gettext$' >/dev/null; } \
77 || { echo "Skipping test: php was built without gettext support"
123 LANGUAGE= LC_ALL=$LOCALE_FR php -q prog.php > prog.out || exit 1
127 LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 php -q prog.php > prog.out || exit 1