PHP has reserved all method names with a double underscore prefix for future use

Created on 1 October 2018, about 6 years ago
Updated 29 June 2023, over 1 year ago

While running PHP compatibility against our codebase we had the following warnings:

Function name \__acquia_purge_manualpurge_add\" is discouraged; PHP has reserved all method names with a double underscore prefix for future use"
Function name \__acquia_purge_manualpurge_remove\" is discouraged; PHP has reserved all method names with a double underscore prefix for future use"
Function name \__acquia_purge_manualpurge_paths\" is discouraged; PHP has reserved all method names with a double underscore prefix for future use"
Function name \__acquia_purge_manualpurge_validate\" is discouraged; PHP has reserved all method names with a double underscore prefix for future use"
Function name \__acquia_purge_manualpurge_submit\" is discouraged; PHP has reserved all method names with a double underscore prefix for future use"

These should not be used but there are already single underscore functions of the same name. These functions will need new names to resolve these warnings.

As these functions explicitly include acquia_purge in the name it is unlikely that PHP will use these names hence the minor priority although once a new naming convention is decided upon the fix should be a quick find and replace eliminating any possible future issues.

πŸ“Œ Task
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom JamesDevware

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024