Skip to content

Commit

Permalink
Start adding documentation for changes in phpBB 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marc1706 committed Jun 2, 2024
1 parent 1c5e035 commit f8f5ba5
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 21 deletions.
25 changes: 4 additions & 21 deletions development/development/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,9 @@ Changes in phpBB

This document outlines changes introduced in different versions of phpBB. These changes may require adjustments to your existing code.

.. list-table::
:widths: 25 10 10 55
:header-rows: 1
Contents:

* - Feature/Function
- Introduced in
- Deprecated in
- Recommendation
* - feature_name
- X.X.X
- 3.3.10
- Use alternative_function
* - Row 2, column 1
- Row 2, column 2
- Row 2, column 3
- Migrate to new_approach
.. toctree::
:maxdepth: 3

**Explanation of columns:**

* **Feature/Function:** The name of the feature or function that has a version update.
* **Introduced (phpBB):** The phpBB version where the change was introduced.
* **Deprecated (phpBB) (if applicable):** The phpBB version where the feature or function was marked as deprecated (if applicable). If not applicable, use a hyphen (`-`).
* **Recommendation:** The suggested approach to handle the update. This could involve using an alternative function, migrating code to a new approach, or providing additional information.
changes/400
103 changes: 103 additions & 0 deletions development/development/changes/400.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
=========
phpBB 4.0
=========

phpBB 4.0 is a major release that contains backward compatibility breaks and also introduces some deprecations.

.. contents:: Table of Contents
:depth: 2
:local:
:backlinks: none

Basics
======

PHP
---
The minimum required version of PHP for phpBB 4.0 is ``8.1`` with full support for versions ``8.2`` and ``8.3``.
PHP code that worked with the supported versions of phpBB 3.3 should work with phpBB 4.0 as well but might require minor adjustments.Recommendation

Symfony
-------
phpBB 4.0 ships with Symfony 6.4. There are quite a few changes to the standard Symfony version that came with phpBB 3.3.
The following upgrade guides provides by Symfony might help with resolving some of the issues you might encounter when upgrading
custom PHP or Extension code for phpBB 4.0:

- `Upgrade Symfony from 3.x to 4.0 <https://github.com/symfony/symfony/blob/4.4/UPGRADE-4.0.md>`_
- `Upgrade Symfony from 4.4 to 5.0 <https://github.com/symfony/symfony/blob/5.4/UPGRADE-5.0.md>`_
- `Upgrade Symfony from 5.x to 6.0 <https://github.com/symfony/symfony/blob/6.4/UPGRADE-6.0.md>`_

You can find more upgrade guides in the `Symfony Repository <https://github.com/symfony/symfony/tree/6.4>`_ on GitHub.

Class and function changes
==========================
The following table lists class and function changes that might affect custom PHP or Extension code.
Also have a look at the `phpBB API documentation <https://area51.phpbb.com/docs/code/master/>`_ for further insight into the class and function API in phpBB 4.0.

.. list-table::
:widths: 15 15 10 10 50
:header-rows: 1

* - Class or function
- Path
- Type of change
- Version
- Recommendation
* - ``\phpbb\avatar\driver\remote``
- ``phpbb/avatar/driver/remote.php``
- Removed
- ``4.0.0-a1``
- Use alternative avatar like gravatar or upload avatar.
* - ``\phpbb\captcha\plugins\incomplete``
- ``phpbb/captcha/plugins/incomplete.php``
- Added
- ``4.0.0-a1``
- Placeholder CAPTCHA that prevents e.g. registration until safer captcha like reCAPTCHA or QA is enabled.
* - ``\phpbb\captcha\plugins\gd``
- ``phpbb/captcha/plugins/gd.php``
- Removed
- ``4.0.0-a1``
- Use safer captcha like reCAPTCHA or QA.
* - ``\phpbb\captcha\plugins\gd_wave``
- ``phpbb/captcha/plugins/gd_wave.php``
- Removed
- ``4.0.0-a1``
- Use safer captcha like reCAPTCHA or QA.
* - ``\phpbb\captcha\plugins\nogd``
- ``phpbb/captcha/plugins/nogd.php``
- Removed
- ``4.0.0-a1``
- Use safer captcha like reCAPTCHA or QA.
* - ``\phpbb\captcha\char_cube3d``
- ``phpbb/captcha/char_cube3d.php``
- Removed
- ``4.0.0-a1``
- No longer used due to removal of gd & nogd CAPTCHAs.
* - ``\phpbb\captcha\colour_manager``
- ``phpbb/captcha/colour_manager.php``
- Removed
- ``4.0.0-a1``
- No longer used due to removal of gd & nogd CAPTCHAs.
* - ``\phpbb\captcha\gd``
- ``phpbb/captcha/gd.php``
- Removed
- ``4.0.0-a1``
- No longer used due to removal of gd & nogd CAPTCHAs.
* - ``\phpbb\captcha\gd_wave``
- ``phpbb/captcha/gd_wave.php``
- Removed
- ``4.0.0-a1``
- No longer used due to removal of gd & nogd CAPTCHAs.
* - ``\phpbb\captcha\non_gd``
- ``phpbb/captcha/non_gd.php``
- Removed
- ``4.0.0-a1``
- No longer used due to removal of gd & nogd CAPTCHAs.

**Explanation of columns:**

* **Class or function:** The name of the class or function that was added, changed, deprecated, or removed in this version.
* **Path:** Path to file.
* **Type of change:** The type of change, e.g. added, changed, deprecated, or removed in this version.
* **Version:** Version in which this change was introduced.
* **Recommendation:** The suggested approach to handle the change. This could involve using an alternative function, migrating code to a new approach, or providing additional information.

0 comments on commit f8f5ba5

Please sign in to comment.