1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 07:12:16 +01:00
Commit Graph

221 Commits

Author SHA1 Message Date
Shivam Mathur
1dc14f9638 Add windows QA builds
Rename release-candidates to pre-release-builds
2025-11-15 11:30:40 +05:30
Ben Ramsey
e424f88479 Add shortcut for Composer manual page 2025-08-25 21:18:18 -05:00
Gina Peter Banyard
af6da3d8d9 Add redirection after IntervalBoundary enum XML id change 2025-03-06 14:42:14 +00:00
Derick Rethans
faf6fae38a Fix URL, which google has gotten wrong for some odd mysterious reason 2024-12-17 17:32:11 +00:00
Maurício Meneghini Fauth
cdf59074d3 Replace languages.inc globals with I18n\Languages consts (#1121)
The include/languages.inc file was not removed as it's used in other
repositories. It should be removed after migration.

Tests were added to ensure that the global variables and the constants
are in sync with each other.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-11-14 11:37:00 +03:00
Maurício Meneghini Fauth
817a3e7fd9 Move myphpnet_* functions to the UserPreferences class (#1075) 2024-11-11 11:50:15 +03:00
Jim Winstead
b0763029a1 doc.php.net is on HTTPS now, and contribution guide URL changed (#1108) 2024-10-27 00:27:06 +03:00
Jeremy Mikola
08cc46bd86 Additional redirects for mongodb set-to-book conversion (#1103) 2024-10-25 11:42:44 +08:00
Christoph M. Becker
5a5ff74a26 Redirect MongoDB from set to book (#1100)
Co-authored-by: Luffy <52o@qq52o.cn>
2024-10-22 17:46:57 +08:00
Maurício Meneghini Fauth
f252981e5b Replace MYPHPNET global var with the UserPreferences class (#1071) 2024-09-17 15:55:10 +08:00
Maurício Meneghini Fauth
96d1508e8f Remove special cases for the gettext shorthand function (#1029)
- Related to https://github.com/php/doc-en/pull/3556
2024-07-20 07:17:41 +08:00
Luffy
b3f760d71f Fix missing __invoke (#971) 2024-04-07 23:10:23 +03:00
Lu Fei
d14eb56a0d Fix redirection of ChangeLog link (#907) 2023-12-31 16:56:13 +00:00
Andreas Möller
00342c402f Fix: Remove vim instruction (#880) 2023-12-07 15:01:52 +01:00
Andreas Möller
c093fb5382 Enhancement: Enable trailing_comma_in_multiline fixer (#647)
* Enhancement: Enable and configure trailing_comma_in_multiline fixer

* Fix: Run 'make coding-standards'
2023-12-06 23:16:28 +00:00
Andreas Möller
b8df60d5a9 Enhancement: Update friendsofphp/php-cs-fixer (#849)
* Enhancement: Update friendsofphp/php-cs-fixer

* Fix: Run 'make coding-standards'

* Fix: Do not configure deprecated fixers
2023-12-05 14:10:35 +01:00
Lu Fei
1c3b4d273c Fix iterator alias redirection issue (#823)
Closes GH-822
2023-11-14 01:16:01 +00:00
Máté Kocsis
3fe0672074 Add redirection for moved SimpleXMLIterator methods (#774) 2023-05-10 19:20:17 +02:00
Máté Kocsis
8b59e9ce42 Fix redirection rules and add some new rules (#747)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2023-01-09 15:21:23 +01:00
Christoph M. Becker
8e8bed3a4d Add fallback redirects for recently renamed classes
Cf. <https://github.com/php/doc-en/pull/2126>
2023-01-03 12:04:21 +01:00
Kamil Tekiela
4a30b32e56 Remove security section (#595)
It contains PHP 5 info and the never finished security center
2022-09-28 20:03:11 +01:00
Máté Kocsis
a0352f2138 Redirect curl_file_create() to CURLFile::__construct() (#696) 2022-09-09 16:17:55 +02:00
Andreas Möller
1ebc2c4996 Enhancement: Enable binary_operator_spaces fixer
Closes GH-667.
2022-08-22 19:17:38 +02:00
Andreas Möller
57f505ed58 Enhancement: Enable and configure concat_space fixer
Closes GH-657.
2022-08-22 19:04:47 +02:00
Andreas Möller
d9bcfed482 Enhancement: Enable array_syntax fixer
Co-authored-by: MathiasReker <mathias@reker.dk>

Closes GH-659.
2022-08-22 18:59:14 +02:00
Andreas Möller
cdb83249d3 Enhancement: Enable switch_case_space fixer
Closes GH-669.
2022-08-22 16:59:10 +02:00
Peter Cowburn
63f9200695 redirect php.net/hrtime to function rather than pecl ext (thanks Benjamin) 2022-08-11 11:16:37 +01:00
Andreas Möller
f127de5db9 Enhancement: Enable strict_param fixer
We set strict param to false to ensure current behavior,
except for two cases where it is safe to go with true.

Closes GH-658.
2022-07-15 14:48:44 +02:00
Andreas Möller
b3c9551c93 Enhancement: Enable no_extra_blank_lines fixer
Closes GH-646.
2022-07-12 14:26:18 +02:00
Andreas Möller
c68e5a9e4a Enhancement: Enable single_space_after_construct fixer
Closes GH-640.
2022-07-12 11:44:23 +02:00
Ayesh Karunaratne
1b83fd7ab7 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.
2022-07-03 12:24:14 +02:00
Andreas Möller
e5ad28094f Fix: Remove duplicate key-value pairs (#565) 2022-06-27 21:06:30 +01:00
Sara Golemon
77f24fa72c Remove 'oop4' redirect, because it's 2022 2022-03-21 16:36:24 +00:00
Sara Golemon
3e95ce2859 Add shortcuts for enum/enums 2022-03-21 16:26:10 +00:00
Máté Kocsis
99479aa988 Fix ext/oci redirections (#490) 2022-01-16 18:42:00 +01:00
Máté Kocsis
fa955451b2 Redirect old to new OCI-Lob and OCI-Collection URLs
Closes GH-488.
2022-01-14 14:26:55 +01:00
Nikita Popov
1e832e0a8d 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.
2021-12-04 15:25:05 +01:00
Sara Golemon
bfb30b5a2d Handle ?:, ??, and ??= in index.php 2021-05-20 15:04:25 +00:00
Sara Golemon
cf6c402b48 Add search aliases for ?:, ??, and ??= 2021-05-20 13:14:56 +00:00
George Peter Banyard
c2db08cdbe Remove load checker (#404)
We do not use mirrors anymore, thus this is irrelevant.
2021-05-19 14:03:57 -05:00
Sergey Panteleev
a587291fea Replace references to git.php.net (#396) 2021-04-01 15:01:40 +03:00
Anna Filina
d56830dfce Display custom 404 page when legacy manuals found
Closes GH-385.
2020-12-14 19:50:51 +01:00
Peter Cowburn
0f8cc98cc5 error redirects for "fn" and "arrow" to Arrow Functions manual page 2020-08-14 11:40:27 +01:00
Sara Golemon
8311184380 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.
2019-06-05 18:51:07 -04:00
Sara Golemon
c0afd74bf7 Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__
2/4 - Update remaining except archives/ and release/.
2019-05-31 12:31:21 -04:00
Sara Golemon
2735e5f03f Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__
1/n - Update / and /include/ only.
2019-05-31 11:19:09 -04:00
Derick Rethans
b2b48ca1e0 Remove references, redirects, and selection of mirrors 2019-04-01 11:27:09 +01:00
Peter Kokot
b8332da255 Remove unused legacy reST redirections
The php.net/reST pages once served some source code files. It has been
removed via 74bc9e6ad7 in 2013 so these
redirections are most likely not relevant anymore for PHP.net audience.
2019-03-30 15:26:24 +01:00
Peter Cowburn
4716c2ba20 friendlier error page for manual pages under inactive languages (fix bug #77637) 2019-03-26 21:46:22 +00:00
Christoph M. Becker
27160d28ec Regular PHP 5 or even PHP 4 downloads are no longer available 2019-01-31 15:45:21 +01:00