#6247 - Deprecated: preg_match() at install.php
| Identifier | #6247 |
|---|---|
| Issue type | Trivial issue (does not break functionality) |
| Title | Deprecated: preg_match() at install.php |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) |
| Handling member | PDStig |
| Version | 11 beta7 |
| Addon | health_check |
| Description | Installed v11 beta 7 on a VPS and at install.php got: Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/collapse/public_html/sources/hooks/systems/health_checks/performance_server.php on line 576 and Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/collapse/public_html/sources/hooks/systems/health_checks/performance_server.php on line 578 |
| Steps to reproduce | Install v11 best 7 on VPS AlmaLinux v9.6.0 STANDARD kvm, I believe PHP 8.3 |
| Additional information | Minor bug I confirm I searched the tracker for an existing issue. I grant permission for the core developers to investigate this issue remotely on my site, in accordance with the server access policies ( https://composr.app/server-access.htm ), via the FTP credentials provided on my member profile (developers: you must exchange an e-mail contact with the user and send a digital copy [not just a link] of the server access policy for them to agree to via e-mail before accessing the server). |
| Funded? | No |
| Commits |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
If the command for detecting RAM fails in performance_server, then a passing null deprecated error will be thrown in PHP 8.
This fix adds handles for when shell_exec does not return a string.