RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
21 Jul 2026

Pull Request resolves #48119.

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

Check if php_uname function exists before calling it.
Enhance server OS detection with fallback when php_uname() is not allowed

Testing Instructions

have an enviroment with php_uname listed as disabled

Actual result BEFORE applying this Pull Request

Call to undefined function

Expected result AFTER applying this Pull Request

even if php_uname is disabled it gracefully have a fallback

Link to documentations

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

avatar alikon alikon - open - 21 Jul 2026
avatar alikon alikon - change - 21 Jul 2026
Status New ⇒ Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jul 2026
Category ⇒ Administration com_admin
avatar alikon alikon - change - 21 Jul 2026
Labels Added: PR-5.4-dev
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jul 2026
Category Administration com_admin ⇒ Administration com_admin Modules Front End
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jul 2026
Category Administration com_admin Modules Front End ⇒ Administration com_admin Modules Front End Plugins
avatar alikon alikon - change - 21 Jul 2026
The description was changed
avatar alikon alikon - edited - 21 Jul 2026
avatar alikon alikon - change - 22 Jul 2026
Title
…
Safeguard php_uname function call
[5.4] Safeguard php_uname function call
avatar alikon alikon - edited - 22 Jul 2026
avatar ThomasFinnern ThomasFinnern - test_item - 14 Aug 2026 - Tested successfully
avatar ThomasFinnern
ThomasFinnern - comment - 14 Aug 2026

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.

avatar ThomasFinnern
ThomasFinnern - comment - 14 Aug 2026

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.

avatar muhme muhme - test_item - 14 Aug 2026 - Tested successfully
avatar muhme
muhme - comment - 14 Aug 2026

I have tested this item ✅ successfully on f40113f

* Tested with JBT

  • Disabling function with:
    • docker exec -it jbt-54 php -r 'var_dump(function_exists("php_uname"));'
    • Appened disable_functions = php_uname to /usr/local/etc/php/php.ini file
    • docker restart jbt-54
  • Seen error before
  • Applied PR with Patch Tester
avatar muhme
muhme - comment - 14 Aug 2026

I have tested this item ✅ successfully on f40113f

* Tested with JBT

  • Disabling function with:
    • docker exec -it jbt-54 php -r 'var_dump(function_exists("php_uname"));'
    • Appened disable_functions = php_uname to /usr/local/etc/php/php.ini file
    • docker restart jbt-54
  • Seen error before
  • Applied PR with Patch Tester
avatar muhme muhme - change - 14 Aug 2026
Status Pending ⇒ Ready to Commit
avatar muhme
muhme - comment - 14 Aug 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48130.

avatar muhme
muhme - comment - 14 Aug 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48130.

avatar richard67 richard67 - change - 23 Aug 2026
Labels Added: RTC bug
avatar richard67 richard67 - test_item - 23 Aug 2026 - Tested successfully
avatar richard67
richard67 - comment - 23 Aug 2026

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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48130.

avatar richard67
richard67 - comment - 23 Aug 2026

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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48130.

avatar richard67 richard67 - alter_testresult - 23 Aug 2026 - ThomasFinnern: Tested successfully
avatar richard67 richard67 - alter_testresult - 23 Aug 2026 - muhme: Tested successfully
avatar richard67 richard67 - change - 23 Aug 2026
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
avatar richard67 richard67 - close - 23 Aug 2026
avatar richard67 richard67 - merge - 23 Aug 2026
avatar richard67
richard67 - comment - 23 Aug 2026

Thanks @alikon for this PR, and @ThomasFinnern and @muhme for testing.

Add a Comment

Login with GitHub to post a comment