Bug#821659: Bumping severity of PHP 7.0 transition bugs to serious
Wolfgang Schweer
wschweer at arcor.de
Sat May 14 07:45:52 UTC 2016
On Thu, May 05, 2016 at 10:20:58AM +0200, Ondřej Surý wrote:
> I am bumping the severity of this bug to serious, as we are going to
> remove src:php5 from Debian and your package is blocking the first
> step which is removal of php5 from testing. Please either update your
> package to support PHP 7.0 or remove the package from Debian unstable
> alltogether.
After testing (with smarty3 manually updated to use upstream release
3.1.29) this seems to make the package work with php7.
-------------------------------------
diff --git a/debian/control b/debian/control
index 68f7eac..1b15544 100644
--- a/debian/control
+++ b/debian/control
@@ -17,12 +17,12 @@ Package: slbackup-php
Architecture: all
Depends:
${misc:Depends},
- libapache2-mod-php5 | php5-cgi,
+ php,
apache2 | httpd,
ssh,
- php5-cli,
+ php-cli,
smarty3,
- smarty-gettext (>= 1.0b1-7),
+ smarty-gettext,
Suggests:
x-www-browser,
slbackup,
diff --git a/src/functions.php b/src/functions.php
index 7f52734..89524da 100644
--- a/src/functions.php
+++ b/src/functions.php
@@ -75,7 +75,7 @@ function loadLocale () {
$lang_accept = array () ;
$lang_accept = explode (",", $_SERVER['HTTP_ACCEPT_LANGUAGE']);
for ($i = 0 ; $i < count ($lang_accept) ; $i++ ) {
- $lang_accept[$i] = split(";", $lang_accept[$i]) ;
+ $lang_accept[$i] = preg_split(';', $lang_accept[$i]) ;
$lang_accept[$i] = $lang_accept[$i][0] ;
}
@@ -101,13 +101,13 @@ function loadLocale () {
$locales = array();
$locales_utf8 = array();
if (isset($found_locale) && !empty($lang_accept[0])) {
- $found_locale_tuple = split('_', $found_locale);
+ $found_locale_tuple = preg_split('_', $found_locale);
if (count($found_locale_tuple) > 1) {
$locales[] = $found_locale;
$locales_utf8[] = $found_locale.'.UTF-8';
}
foreach ($lang_accept as $lang) {
- $lang_tuple = split('-',$lang);
+ $lang_tuple = preg_split('-',$lang);
if (count($lang_tuple) > 1) {
$language = strtolower($lang_tuple[0]);
$country = strtoupper($lang_tuple[1]);
----------------------------------
Wolfgang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-edu-pkg-team/attachments/20160514/2441eab0/attachment.sig>
More information about the Debian-edu-pkg-team
mailing list