The PHP diagnostics service helps you identify potential issues in your apps' PHP code. You can address errors specifically and prepare adjustments for a PHP update. You can find the results in the app details and centrally in the edoc automate administration (burger menu).
What does the PHP diagnostic check?
The PHP diagnostic checks the plug-ins, add-ons, and PHP scripts in your apps. The service looks for potential errors, deprecated PHP functions, and the use of unreleased edoc automate interfaces. During the diagnostic, the files are only read; the PHP code they contain is not executed.
The results will distinguish between the currently used PHP version and PHP version 8.5, which is the next scheduled release. If the installation is already using PHP 8.5, the service will check this version only once.
A background service automatically checks for new or modified files. By default, unmodified files are checked again after one hour. The interval is configurable. The same results are displayed in the editor and in the administration section (burger menu).
Things to know
The diagnostic tool provides information about potential issues without modifying code, blocking apps, or preventing the system from booting. A result with no findings is not a guarantee of full PHP compatibility.
Recommendation: Continue to test your extensions, especially before updating PHP.
View results in the app details
In the app details, you can see the verification status of each plug-in and add-on.
Here's how
-
Open the app in the edoc automate editor.
-
Go to the App-Details tab and open the App plugins section.
-
Check the status icon in the Code analysis column. Hover your mouse pointer over the icon to view a preview.
-
Click the status icon to open the details. There you'll find the affected file, the line, the target PHP version, and the message.
As long as the section is open, the editor automatically updates the results. If the app details are unavailable due to a loading error, use the separate Code analysis link on the app's home page.
Meaning of the status symbols
The symbols indicate the status of the saved test. Also note the label, the messages, and the validation date and time.
-
Blue: A validation has been requested or is being performed.
-
Red: The service has detected errors for the current PHP version, or the validation failed for technical reasons. You can see which of the two cases applies in the details.
-
Yellow: There are warnings, findings that apply only to the next PHP version, outdated results, or an incomplete validation.
-
Green: No findings were identified within the specified scope of the inspection. This statement applies only to the recorded status and the validation performed.
-
Gray: A result is missing, or there are no PHP files in the scan scope. In the app list under Administration in the burger menu, you'll see a question mark indicating missing scan results. A gray minus sign means that the service detected the app but did not find any PHP files in the scan scope.
Manage PHP diagnostics in the administration
To open the burger menu in edoc automate, you need the appropriate administrative permissions.
Compare apps and view findings
Here's how
-
In edoc automate, open the Apps menu item in the burger menu.
-
If necessary, use the filter to narrow down the list of apps. Use the app IDs to filter the list.
-
Check the status symbol in the Code analysis column.
-
For an app, click on Findings and details.
The details page displays the overall status in color, findings for the current PHP version and PHP 8.5, as well as notes on unreleased interfaces. You will also see the validation date, outdated or incomplete results, and technical test errors. If a retried validation fails, the previous results are retained and marked as such.
You can refresh the app list in the administration by reloading the page. The diagnostics overview is still accessible even if app extensions are malfunctioning.
Validate the background service and request new validations
Here's how
-
In edoc automate, open the Services menu item in the burger menu.
-
In the PHP diagnostics, check the Current status, Last run, and Worker contact fields.
-
Click Request scan for all apps if you want to recalculate the results.
-
Please wait while the system processes this in the background. Then open Apps and reload the overview.
This confirmation refers to requested scans, not to completed results. The Active status confirms that the service is active, but not that all apps have been successfully scanned. If there are pending requests or a current worker contact is missing, check the service status or contact your system administrator.
Find out more