phpBB Development: phpBB is a popular open-source bulletin board written in PHP. This repository also contains the history of version 2.
Find a file
EA117 1276d2fdf3 [ticket/16708] Update the UTF-8 check for multiple encoding settings
Update the mbstring.http_input and mbstring.http_output configuration check, from being the deprecated PHP 5.6.x "PASS, or blank" to now be "UTF-8, or blank".  PHP documentation specifies this configuration should be left blank, in order to inherit default_charset, which phpBB requires to be configured as UTF-8.

For a phpBB customer where mbstring.http_input and mbstring.http_output is set to UTF-8 rather than being left blank, and is a shared hosting configuration that the customer isn't permitted to change, the phpBB ACP warning that "your http_input/http_output configuration is invalid" isn't helpful.

Their setting is UTF-8, which is the encoding http_input/http_output would be using if it had been left blank and allowed to inherit default_charset.  Our "warning" isn't advising the user of a misconfiguration which is causing a phpBB functionality problem.  phpBB is getting exactly the UTF-8 encoding it was intending to get; same as when it was checking whether the setting was left blank, too.

Also update the default_charset test to permit "UTF-8, or blank".  This had been correctly changed to effectively test "UTF-8, or NULL" during PHPBB3-16698, based on code inspection of /vendor/bantu/ini-get-wrapper/src/IniGetWrapper.php which confirmed IniGetWrapper::getString() will return NULL for any setting which does not exist.

However, testing on some PHP platforms shows PHP itself returning an empty string for a parameter which isn't defined in the PHP.INI, and so we receive an empty string instead of NULL.  So the test was updated so that we effectively check for "UTF-8, or blank, or NULL", all of which result in UTF-8 being used.

PHPBB3-16708
2021-02-25 09:30:19 -06:00
.github [ticket/16707] Disable unstable PHP 8.1 builds 2021-02-16 20:33:12 +01:00
build Merge branch 'prep-release-3.3.3' into 3.3.x 2021-01-29 20:15:16 +01:00
git-tools [ticket/16675] Restore commit message checks 2021-01-06 00:26:08 +07:00
phpBB [ticket/16708] Update the UTF-8 check for multiple encoding settings 2021-02-25 09:30:19 -06:00
tests [ticket/16690] Fix htmlspecialchars and htmlspecialchars_decode default flag 2021-01-20 00:21:24 +07:00
travis [ticket/16636] Add PHP 8.0 builds to TravisCI 2020-11-20 21:14:34 +07:00
vagrant [ticket/16131] Force vagrant to install phpBB with php7.2 2019-08-14 12:23:00 +00:00
.editorconfig [ticket/12951] Made editorconfig file comments better 2014-08-10 15:55:02 +02:00
.gitignore Merge branch '3.2.x' into 3.3.x 2020-05-03 11:06:08 +02:00
.jscsrc [ticket/13898] Moved jshint and jscs rcs to correct dir. 2015-05-31 13:50:48 +02:00
.jshintrc [ticket/14720] Add "phpbb" as allowed global to jshintrc 2016-07-23 19:14:30 -07:00
composer.phar [prep-release-3.3.3] Update composer to 2.0.8 2021-01-11 21:14:07 +01:00
doctum.phar [ticket/16587] Add Doctum phar file 2020-09-07 12:11:31 +02:00
LICENSE [ticket/15768] Add a license to a repository 2018-09-15 12:51:32 +02:00
phpunit.xml.dist [ticket/16549] Rename class phpbb_lint_test rather than the test file 2020-10-18 11:26:44 +07:00
README.md [ticket/16661] Remove Appveyor builds 2020-12-22 21:13:58 +01:00
Vagrantfile [ticket/14547] Use package compatible with phpBB requirements 2016-04-28 08:36:49 -07:00

phpBB

phpBB is a free open-source bulletin board written in PHP.

🧑🏻🤝🏻🧑🏽 Community

Get your copy of phpBB, find support and lots more on phpBB.com. Discuss the development on area51.

👨‍💻 Contribute

  1. Create an account on phpBB.com
  2. Create a ticket (unless there already is one)
  3. Read our Coding guidelines and Git Contribution Guidelines
  4. Send us a pull request

🏗️ Setting up a development build of phpBB

To run an installation from the repo (and not from a pre-built package) on a local server, run the following commands:

  • Fork phpbb/phpbb to your GitHub account, then create a local clone of it:
    git clone https://github.com/your_github_name/phpbb.git
    
  • Install phpBB's dependencies (from the root of your phpbb repo):
    cd phpBB
    php ../composer.phar install
    

Alternatively, you can read our Vagrant documentation to find out how to use Vagrant to develop and contribute to phpBB.

📓 Documentation

phpBB's Development Documentation contains all the information you'll need to learn about developing for phpBB's core, extensions and automated testing.

🔬 Automated Testing

We have unit and functional tests in order to prevent regressions. You can view the bamboo continuous integration here or check our travis builds below:

Branch Description Github Actions
master Latest development version Tests
3.3.x Development of version 3.3.x Tests

📜 License

GNU General Public License v2