History log of /web-php/error.php (Results 26 – 50 of 216)
Revision Date Author Comments
# c68e5a9e 12-Jul-2022 Andreas Möller

Enhancement: Enable `single_space_after_construct` fixer

Closes GH-640.


# 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 ...


# e5ad2809 27-Jun-2022 Andreas Möller

Fix: Remove duplicate key-value pairs (#565)


# 77f24fa7 21-Mar-2022 Sara Golemon

Remove 'oop4' redirect, because it's 2022


# 3e95ce28 21-Mar-2022 Sara Golemon

Add shortcuts for enum/enums


# 99479aa9 16-Jan-2022 Máté Kocsis

Fix ext/oci redirections (#490)


# fa955451 14-Jan-2022 Máté Kocsis

Redirect old to new OCI-Lob and OCI-Collection URLs

Closes GH-488.


# 1e832e0a 26-Nov-2021 Nikita Popov

Add redirect for php.net/GH-123

Redirect `php.net/GH-123` to the corresponding issue or pull request
on php/php-src. This is part of https://wiki.php.net/rfc/github_issues,
but is al

Add redirect for php.net/GH-123

Redirect `php.net/GH-123` to the corresponding issue or pull request
on php/php-src. This is part of https://wiki.php.net/rfc/github_issues,
but is also useful independently for pull request references.

show more ...


# bfb30b5a 20-May-2021 Sara Golemon

Handle ?:, ??, and ??= in index.php


# cf6c402b 19-May-2021 Sara Golemon

Add search aliases for ?:, ??, and ??=


# c2db08cd 19-May-2021 George Peter Banyard

Remove load checker (#404)

We do not use mirrors anymore, thus this is irrelevant.


# a587291f 01-Apr-2021 Sergey Panteleev

Replace references to git.php.net (#396)


# d56830df 11-Dec-2020 Anna Filina

Display custom 404 page when legacy manuals found

Closes GH-385.


# 0f8cc98c 14-Aug-2020 Peter Cowburn

error redirects for "fn" and "arrow" to Arrow Functions manual page


# 83111843 05-Jun-2019 Sara Golemon

Cleanup version.inc

With this diff, version.inc will ONLY export one "variable" named
$RELEASES which will continue to have the same format as previous.

It will also export a he

Cleanup version.inc

With this diff, version.inc will ONLY export one "variable" named
$RELEASES which will continue to have the same format as previous.

It will also export a helper method named release_get_latest()
for quickly accessing the most recent version published.

All other globals previously exported by this function are
no longer used on web-php.

show more ...


# c0afd74b 31-May-2019 Sara Golemon

Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__

2/4 - Update remaining except archives/ and release/.


# 2735e5f0 31-May-2019 Sara Golemon

Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__

1/n - Update / and /include/ only.


# b2b48ca1 29-Mar-2019 Derick Rethans

Remove references, redirects, and selection of mirrors


# b8332da2 27-Mar-2019 Peter Kokot

Remove unused legacy reST redirections

The php.net/reST pages once served some source code files. It has been
removed via 74bc9e6ad77fb860ae8e171d46b4914a3737d7a9 in 2013 so these
re

Remove unused legacy reST redirections

The php.net/reST pages once served some source code files. It has been
removed via 74bc9e6ad77fb860ae8e171d46b4914a3737d7a9 in 2013 so these
redirections are most likely not relevant anymore for PHP.net audience.

show more ...


# 4716c2ba 26-Mar-2019 Peter Cowburn

friendlier error page for manual pages under inactive languages (fix bug #77637)


# 27160d28 31-Jan-2019 Christoph M. Becker

Regular PHP 5 or even PHP 4 downloads are no longer available


# 49c1b3ed 12-Dec-2018 Stanislav Malyshev

Update some shortcuts


# e235f794 17-Oct-2018 Peter Kokot

Trim trailing whitespace

This patch cleans all redundant trailing whitespace across the
repository except for the icalendar files.


# 0f95b8c7 30-Jun-2018 Peter Kokot

Remove unused Git attributes ident

The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
use

Remove unused Git attributes ident

The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.

show more ...


# 7c452848 17-Oct-2017 Kalle Sommer Nielsen

Added phpXXnews links for the 7.0 branches


123456789