History log of /web-php/bin/bumpRelease (Results 1 – 15 of 15)
Revision Date Author Comments
# 97f5bbe6 12-Apr-2024 Ben Ramsey

Announce PHP 8.1.28


# 019de1fe 06-Dec-2023 Andreas Möller

Fix: Typo (#868)


# 1b83fd7a 03-Jul-2022 Ayesh Karunaratne

Multiple micro-optimizations

* Replace `ob_get_contents();ob_clean()` with `ob_get_clean()`

`ob_get_clean()` is equivalent to `ob_get_contents()` followed by `ob_clean()`.

Multiple micro-optimizations

* Replace `ob_get_contents();ob_clean()` with `ob_get_clean()`

`ob_get_clean()` is equivalent to `ob_get_contents()` followed by `ob_clean()`.

* Replace `intval()` calls with `(int)` type cast

This is a micro-optimization because `intval()` is a function call, and the type cast is about 6 times fast.

* Replace `preg_replace` call that could be done with an `rtrim()` call

In `./error.php`, there is a `preg_replace('!/+$!', '', $URI);` call that essentially is equivalent to `rtrim()`, that both calls removing trailing slash characters in `$URI`.
The `rtim()` call is more legible and faster.

* Combine consecutive `str_replace` calls to a single `str_replace` call

* Use short ternary operator where possible

Improves code readability.

* Cascade various `else` statements where possible

Cleans up the code by removing unnecessary `else` blocks and moving the code to the parent context if the previous `if` block exits the function by either terminating the script, or with a `return` statement.

* Combine multiple `isset()` calls to a single `isset()`

`isset()` accepts multiple parameters and returns `true` only if all of the parameters are `isset`. It makes sense to combine multiple individual `isset` calls to a single call for better readability.

* Replace `for` loop with a `foreach` loop

* Remove unnecessary character escapes in regular expressions

Regular expression special characters are context-sensitive. For example, special characters such as `.` are not considered special within square braces (`[]`).
This removes several of such instances that certain characters are escaped, but it is not strictly necessary within the context. This improves the readability of the expression.

See more information at [PHP.Watch: Writing better Regular Expressions in PHP](https://php.watch/articles/php-regex-readability#reduce-escape)

* Remove unnecessary break statement

* Remove unnecessary PHP close tags

* Remove redundant JSON_ERROR_NONE check

Remove unnecessary `json_last_error() == JSON_ERROR_NONE` where the decoded object is inspected already.

Closes GH-603.

show more ...


# 22f0d887 05-Jul-2021 Sara Golemon

Use simpler === for value check


# f4dfa851 07-Jan-2021 Sara Golemon

Allow bin/bumpReleases to work with new major versions


# 576f18a1 10-Jul-2019 Sara Golemon

Move recent release finding logic to branches.icn, clean up bumpRelease


# aa1a61c5 09-Jul-2019 Sara Golemon

Derive version and release date without global vars


# 563ed6e5 09-Jul-2019 Sara Golemon

Use strict comparison


# 39200fe1 09-Jul-2019 Sara Golemon

Make bin/bumpRelease relative to script, not invocation


# 112c3037 10-Jan-2019 Christoph M. Becker

Fix typo


# 190459c7 04-Nov-2018 Peter Kokot

Refactor each() function to foreach()

The each() function has been deprecated since PHP 7.2 and shouldn't be
used anymore:
- http://php.net/manual/en/function.each.php


# dd8d8bf8 17-Oct-2018 Peter Kokot

Sync final and leading newlines

This patch adds some missing newlines, trims some multiple redundant
final newlines into a single one, and trims few redundant leading
newlines.

Sync final and leading newlines

This patch adds some missing newlines, trims some multiple redundant
final newlines into a single one, and trims few redundant leading
newlines.

According to POSIX, a line is a sequence of zero or more non-'<newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2

show more ...


# 321007e0 20-Aug-2018 Sara Golemon

Update bin/bumpReleases to handle minor versions


# c698133a 06-Sep-2007 Hannes Magnusson

Whooopsy.
Fix logic, rather then blindly updating both PHP4 and PHP5 then read in
a major release parameter (4/5) which should be updated


# f4ca9489 06-Sep-2007 Hannes Magnusson

Add cute little script to prepend the current release to the historical release page
# Should be used by the RM when releasing a new stable release
# Note: this script should ofcourse be exec

Add cute little script to prepend the current release to the historical release page
# Should be used by the RM when releasing a new stable release
# Note: this script should ofcourse be executed *before* include/version.inc is updated

show more ...