| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* This file is part of the Symfony package. |
| 5 |
* |
| 6 |
* (c) Fabien Potencier <[email protected]> |
| 7 |
* |
| 8 |
* For the full copyright and license information, please view the LICENSE |
| 9 |
* file that was distributed with this source code. |
| 10 |
*/ |
| 11 |
|
| 12 |
use Symfony\Polyfill\Php83 as p; |
| 13 |
|
| 14 |
if (extension_loaded('mbstring')) { |
| 15 |
if (!function_exists('mb_str_pad')) { |
| 16 |
function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT, ?string $encoding = null): string { return p\Php83::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding); } |
| 17 |
} |
| 18 |
} |
| 19 |
|
| 20 |
if (\PHP_VERSION_ID >= 80100) { |
| 21 |
return require __DIR__.'/bootstrap81.php'; |
| 22 |
} |
| 23 |
|
| 24 |
if (!function_exists('ldap_exop_sync') && function_exists('ldap_exop')) { |
| 25 |
function ldap_exop_sync($ldap, string $request_oid, ?string $request_data = null, ?array $controls = null, &$response_data = null, &$response_oid = null): bool { return ldap_exop($ldap, $request_oid, $request_data, $controls, $response_data, $response_oid); } |
| 26 |
} |
| 27 |
|
| 28 |
if (!function_exists('ldap_connect_wallet') && function_exists('ldap_connect')) { |
| 29 |
function ldap_connect_wallet(?string $uri, string $wallet, string $password, int $auth_mode = \GSLC_SSL_NO_AUTH) { return ldap_connect($uri, $wallet, $password, $auth_mode); } |
| 30 |
} |