| 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 | | }}} |