User tests: Successful: Unsuccessful:
Pull Request resolves #48119.
Check if php_uname function exists before calling it.
Enhance server OS detection with fallback when php_uname() is not allowed
have an enviroment with php_uname listed as disabled
Call to undefined function
even if php_uname is disabled it gracefully have a fallback
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_admin |
| Labels |
Added:
PR-5.4-dev
|
||
| Category | Administration com_admin | ⇒ | Administration com_admin Modules Front End |
| Category | Administration com_admin Modules Front End | ⇒ | Administration com_admin Modules Front End Plugins |
| Title |
|
||||||
I have tested this item ✅ successfully on f40113f
I have tested this item ✅ successfully on f40113f
* Tested with JBT
docker exec -it jbt-54 php -r 'var_dump(function_exists("php_uname"));'disable_functions = php_uname to /usr/local/etc/php/php.ini filedocker restart jbt-54function_existsI have tested this item ✅ successfully on f40113f
* Tested with JBT
docker exec -it jbt-54 php -r 'var_dump(function_exists("php_uname"));'disable_functions = php_uname to /usr/local/etc/php/php.ini filedocker restart jbt-54function_exists| Status | Pending | ⇒ | Ready to Commit |
RTC
RTC
| Labels |
Added:
RTC
bug
|
||
I have tested this item ✅ successfully on 0841a8f
Final test before merging: System info and Stats checked without and with this PR with the php_uname function being enabled and disabled.
I have tested this item ✅ successfully on 0841a8f
Final test before merging: System info and Stats checked without and with this PR with the php_uname function being enabled and disabled.
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-08-23 17:35:27 |
| Closed_By | ⇒ | richard67 |
Thanks @alikon for this PR, and @ThomasFinnern and @muhme for testing.
I have tested this item ✅ successfully on f40113f
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48130.