Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54877, comment 18


Ignore:
Timestamp:
04/10/2022 07:43:53 AM (5 years ago)
Author:
costdev

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54877, comment 18

    initial v1  
    11I think this docs issue is unlikely to lead to a change in PHP source. There are open issues for other pages where nullable parameters aren't shown as such.
    2 
    3 That said, if this change is desired:
    4 
    5  **ini_get**
    6  Returns the value of the configuration option as a string on success, or an empty string for null values. Returns false if the configuration option doesn't exist. [https://www.php.net/manual/en/function.ini-get.php PHP.net]
    7 
    8 For a `""` or `false` result, we'd have to set `$port` to `null` anyway in order to send the correct type to `mysqli_real_connect()`.
    9 
    10 {{{
    11 $port = ini_get( 'mysqli.default_port' );
    12 $port = $port ? $port : null;
    13 }}}