substitute break outside of a loop by return false (#114)

* substitute break outside of a loop by `return false`

PHP 7 doesn't accept `break` statements outside of loop or switch structures and
returns an error. See https://www.php.net/manual/en/control-structures.break.php
I substituted the `break` by a `return false` which as far as I assume does the same.

* Update the version number

* Update the changelog with version 1.37.4
This commit is contained in:
Jens Kubieziel 2020-05-02 12:28:11 +00:00 committed by GitHub
parent 1c9a23418b
commit 3ae35d06c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,10 @@
#
1.37.4:
* substitute break outside of a loop by `return false`
PHP 7 doesn't accept `break` statements outside of loop or switch structures and
returns an error. See https://www.php.net/manual/en/control-structures.break.php
1.37.3: Fixed bad constand name "DDEFAULT" to "DEFAULT"
1.37.2:

View file

@ -278,7 +278,7 @@ class getid3_lib
}
} else {
throw new Exception('ERROR: Cannot have signed integers larger than '.(8 * PHP_INT_SIZE).'-bits ('.strlen($byteword).') in getid3_lib::BigEndian2Int()');
break;
return false;
}
}
return getid3_lib::CastAsInt($intvalue);

View file

@ -14,7 +14,7 @@ if (file_exists($probelang)) {
include_once dirname(__FILE__) . '/lang_en.inc.php';
include_once dirname(__FILE__) . '/podcast_player.php';
@define("SERENDIPITY_EVENT_PODCAST_VERSION", "1.37.3");
@define("SERENDIPITY_EVENT_PODCAST_VERSION", "1.37.4");
class serendipity_event_podcast extends serendipity_event {
/**