Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/infrastructure_and_maintenance/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ In production setups:
- Always enable opcache for php-fpm/`mod_php`.
- Prefer php-fpm and web server using it over fast-cgi for lower overall memory usage.

!!! caution

To avoid deprecations when using PHP 8.2 or 8.3, [[= product_name =]] v4.6 needs an additional error handler.
The error handler is present by default for projects that started with 4.6.8 or later.
For projects that started with earlier versions, you need to add the error handler manually by running the following commands:

``` bash
composer config extra.runtime.error_handler "\\Ibexa\\Contracts\\Core\\MVC\\Symfony\\ErrorHandler\\Php82HideDeprecationsErrorHandler"
composer dump-autoload
```

Comment on lines +55 to +65
Copy link
Contributor

@adriendupuis adriendupuis Jul 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's clear that "update_from_4.6" is only about 4.6 and in the continuation "update_to_5.0" removes it.

But for "performance" when on 5.0 branch of our doc, this is less clear. It's not since 4.6 that this is needed, it's for 4.6 only. I would add something about 5.0 not needing this, or I would have it only on 4.6 branch but not on 5.0 branch.

### Symfony

- Review the [Symfony performance documentation]([[= symfony_doc =]]/performance.html) and apply matching suggestions, including OPCache configuration if enabled.
Expand Down
16 changes: 10 additions & 6 deletions docs/update_and_migration/from_4.6/update_from_4.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ First, run:

Then execute the instructions below starting from the version you're upgrading from.

!!! caution

To avoid deprecations when using PHP 8.2 or 8.3, run the following commands:

``` bash
composer config extra.runtime.error_handler "\\Ibexa\\Contracts\\Core\\MVC\\Symfony\\ErrorHandler\\Php82HideDeprecationsErrorHandler"
composer dump-autoload
```

<!-- vale Ibexa.VariablesVersion = NO -->

## v4.6.1
Expand Down Expand Up @@ -123,12 +132,7 @@ No additional steps needed.

## v4.6.8

To avoid deprecations when updating from an older PHP version to PHP 8.2 or 8.3, run the following commands:

``` bash
composer config extra.runtime.error_handler "\\Ibexa\\Contracts\\Core\\MVC\\Symfony\\ErrorHandler\\Php82HideDeprecationsErrorHandler"
composer dump-autoload
```
No additional steps needed.

## v4.6.9

Expand Down