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

49 Commits

Author SHA1 Message Date
Andreas Möller
59c070f557 Enhancement: Enable blank_line_after_opening_tag fixer (#875) 2023-12-07 16:57:19 +01: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
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
f3585d9bdf Enhancement: Enable indentation_type fixer
Closes GH-622.
2022-07-11 20:34:20 +02:00
Ayesh Karunaratne
38d4e0721c phpversion() replacements and code branch collapsing for older PHP versions
Closes GH-600.
2022-07-02 12:37:14 +02:00
Mathias Reker ⚡️
89ac76cd81 No alias functions
Canonical functions shall be used instead of aliases.

Closes GH-530.
2022-06-17 17:14:03 +02:00
Mathias Reker ⚡️
855860ae25 Single blank line at eof
A PHP file without end tag should always end with a single empty line feed.

Closes GH-541.
2022-06-17 16:36:32 +02:00
Sara Golemon
0a39d89148 Fix mirror-info.php to work on PHP8 (arg order to join/implode) 2021-07-08 19:52:35 +00:00
Sara Golemon
5c0721b72a Remove self-test logic from mirror-info.php
Technically, we could kill this whole file since the
mirror program has been discontinued.
However, the info is still probably useful to anyone PRing against web-php.
2019-06-18 01:36:12 -04: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
2735e5f03f Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__
1/n - Update / and /include/ only.
2019-05-31 11:19:09 -04:00
Christoph M. Becker
ad7a1e4401 MD5 checksums are gone 2019-01-31 15:45:20 +01:00
Christoph M. Becker
75c94377e9 Update mirror check
PHP 5.6 is gone; 7.3 is current.
2019-01-31 15:45:20 +01:00
Peter Kokot
dd8d8bf863 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
2018-10-17 12:37:26 +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
Sara Golemon
80cd8f4bd7 Teach mirror-info.php about sha256
MD5 is likely to be deprecated/removed soon,
best to make all the tools ready for that.
2017-06-07 11:28:08 -04:00
Hannes Magnusson
d75969f9bc Update the rsync check now that 5.3 is bye bye 2014-11-22 10:52:00 -08:00
Daniel P. Brown
5421e405f3 Let's get the IP address, too, because a lot of mirrors aren't going to have FQDNs or even unique hostnames. 2012-10-10 14:43:53 -04:00
Daniel P. Brown
bc773fe1be First part of a series of commits designed to repair the missing sponsorship info on round-robin enabling. 2012-10-10 14:23:47 -04:00
Ferenc Kovacs
cba7dd7ec8 add the list of the enabled php exts to the response 2012-09-11 15:12:22 +02:00
Hannes Magnusson
b25f1618fe Make sure it uses the correct variables for the self test 2009-06-30 14:19:34 +00:00
Philip Olson
302014466f Edited sqlite check to include checking of every possible sqlite version 2009-04-07 17:05:40 +00:00
Hannes Magnusson
5abd69f1e8 Return the error, not dump it 2008-12-05 09:01:39 +00:00
Hannes Magnusson
78a8a792c2 Add more debug info
(Still trying to figure out why some mirrors don't like this)
2008-06-08 19:46:14 +00:00
Hannes Magnusson
82116e76db Heh? Must have been high :) 2008-06-06 20:38:05 +00:00
Hannes Magnusson
f7f5f74c88 Add debug info into failure messages 2008-06-01 15:52:06 +00:00
Hannes Magnusson
c7084c75e3 Add self-testing
# Will use this for the mirror-test script once mirrors sync
2008-04-21 11:10:54 +00:00
Hannes Magnusson
746f3f9fdd Improve the rsync problem detection
- Remove the hardcode filename (now uses the last released php5 .tar.bz2)
 - Compare the md5 sum against the registered official md5
2007-03-29 18:24:31 +00:00
Hannes Magnusson
543d376f35 Misuse the 'has_search' field to check for SQLite availability 2007-03-07 21:02:04 +00:00
Gabor Hojtsy
d308807952 lifted up the requirement to use PHP as an Apache module for the mirror (this was requested way back in time) 2006-09-12 11:36:23 +00:00
Gabor Hojtsy
3771201e21 start moving mirror-info.php to the manual folder,
to overcome Apache specific virtual() usage, which ties the mirror sites to Apache and
running PHP as an Apache module.

This is just a start, so that the bot is continually working, until all mirror
sites update, when we can start to step further.

Also discontinue checks for the local search setup, which is a leftover
from the old days.
2005-08-20 12:48:44 +00:00
Gabor Hojtsy
02c0a91589 check with an existing file 2005-05-23 14:53:37 +00:00
Gabor Hojtsy
c11fbf0991 ups, a separator is needed here 2004-08-22 15:07:07 +00:00
Gabor Hojtsy
b6d05697d1 check for uptodate rsnyc settings on mirror sites 2004-08-22 15:02:10 +00:00
Gabor Hojtsy
62d3da8339 try to flush a php.ini started output buffer (problem noticed by shimi) 2004-08-06 11:58:44 +00:00
Gabor Hojtsy
b756370c5c Depend on local mirror stats setup 2003-08-20 17:06:20 +00:00
Gabor Hojtsy
e119a51d42 Use text/plain type here for better readability in browsers, when
human intervention is needed
2003-08-14 13:40:02 +00:00
Gabor Hojtsy
c61f1b21f0 Only report local stats if it is set to 1, for those who think that the
local stats env var is only a flag...
2003-08-08 10:17:55 +00:00
Gabor Hojtsy
a0727e58e9 Let this be included from anywhere 2003-08-01 20:59:26 +00:00
Gabor Hojtsy
4275bd6c19 Let's have a better looking error report 2003-06-07 18:18:32 +00:00
Gabor Hojtsy
c2805609c9 Report on local manual availability too 2003-06-07 10:16:52 +00:00
Gabor Hojtsy
0b29dc46fe Provide information about local stats (using new setenv). As not all sites are
updated to use this setting, we cannot be sure, that no env var means no local
stats, so provide "2" as a status code in that case...

Also provide default langauge setting (enhanced with env var setting now) back
to the central server...
2003-01-18 15:20:27 +00:00
Gabor Hojtsy
4d52272bb9 Supress warning message. is_executable() outputs a warning in case there is
no such file...
2003-01-10 09:59:23 +00:00
Gabor Hojtsy
2b484c1786 Provide one more search type 2003-01-05 12:02:34 +00:00
Gabor Hojtsy
351bf7a98b Add local search support test, so we can update the searchable mirrors
list automatically, without needed human intervention
2003-01-03 21:41:13 +00:00
James Cox
8428c99b4c committing new format. 2002-04-19 22:22:39 +00:00
James Cox
2c42d285eb adding ?> 2002-02-14 00:04:13 +00:00
jim winstead
3e21fa5e90 duh. 2002-02-13 23:08:24 +00:00
jim winstead
0e785b572f tiny file to get mirror info for using in tracking mirror status 2002-02-13 22:04:53 +00:00