Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #51340, comment 12


Ignore:
Timestamp:
03/27/2023 11:22:48 AM (2 years ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51340, comment 12

    v4 v5  
    33> Atm when you have `chmod` (and `chown`) in your php.ini `disable_functions` directive, you run into errors all the time.
    44
    5 In that case, we could just guard calls to these functions with `function_exists()` checks. Where `chmod()` / `chown()` are returned, a disabled function would return `true`.
     5In that case, we could just guard calls to these functions with `function_exists()` checks. Where `return chmod()` / `return chown()` are used in Core, we would return `true` if the functions are disabled.
    66
    77That way: