polyfill icon indicating copy to clipboard operation
polyfill copied to clipboard

PHP 8.3 polyfill for ldap_exop_sync() is not compatible with PHP 7.2

Open jrfnl opened this issue 2 months ago • 0 comments

The PHP 8.3 polyfills have a minimum supported PHP version of PHP 7.2.

The polyfill code for ldap_exop_sync(): https://github.com/symfony/polyfill-php83/blob/dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9/bootstrap.php#L43

... passes the $controls parameter, while that parameter did not exist on the function in PHP 7.2.

This will (should) result in a Warning: ldap_exop() expects at most 3 parameters, 4 given.

Ref: https://www.php.net/manual/en/function.ldap-exop.php

jrfnl avatar Oct 22 '25 03:10 jrfnl