1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
Commit Graph

204 Commits

Author SHA1 Message Date
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
Stanislav Malyshev
49c1b3ed2d Update some shortcuts 2018-12-12 12:08:51 -08:00
Peter Kokot
e235f79473 Trim trailing whitespace
This patch cleans all redundant trailing whitespace across the
repository except for the icalendar files.
2018-10-17 10:51:08 +02:00
Peter Kokot
0f95b8c709 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.
2018-10-17 07:29:46 +02:00
Kalle Sommer Nielsen
7c45284830 Added phpXXnews links for the 7.0 branches 2017-10-17 21:51:01 +02:00
Peter Cowburn
26ffd231f1 redirect callable to callable page 2017-10-09 23:39:12 +01:00
philip
fffcddab79 Temporary hack to fix PHP Bug #49956 for ext/mysqli. This does not close the bug. Using phd to merge search and manual-lookup.sqlite data is the likely real fix. This patch adds mysqli functions to . 2016-12-16 10:46:06 -08:00
Christoph M. Becker
d0fec39e73 Merge branch 'pull-request/101' 2016-09-28 01:53:11 +02:00
Jan Mueller
86df840901 Add ability to to download latest PHP7 stuff using PHP7-LATEST 2016-04-19 14:56:15 +02:00
Niklas Keller
410b34e361 Fix bug #71939 (Double escaped search) 2016-04-13 12:05:55 +02:00
Hannes Magnusson
6a3f798abf Allow php.net/migration7 2015-12-06 09:56:08 -08:00
Hannes Magnusson
0c7b3fd4c7 Fix URI aliases (like php.net/logos) after bug #67871 fixes 2015-12-06 09:53:47 -08:00
Hannes Magnusson
a1bfe95bcc Make php.net/mongodb the extension entry page, not subsection of the set 2015-11-02 13:15:15 -08:00
Adam Harvey
9664a449b4 http://php.net/callable should work.
I don't know why we didn't do this earlier.
2015-10-13 10:55:44 -07:00
Peter Cowburn
f496b51562 fix __debugInfo() redirect (bug #69918) 2015-06-24 13:58:53 +01:00
Hannes Magnusson
bd5c23f8f1 shortcut for __debugInfo 2015-04-21 15:21:48 -07:00
Peter Cowburn
b6f36cdcfc fix bugstats link
Also use https for bugs.php.net

[github] closes php/web-php#54
2015-01-20 21:26:33 +00:00
Hannes Magnusson
97041e478b That link is going down soon, no need anymore 2014-10-25 18:34:19 -07:00