I find this proposal to be a backwards step in the age when we are moving away from resources and their explicit closure. We have disabled this in PHP 8.0 for curl_close(), imagedestroy(), openssl_pkey_free(), shmop_close() and xml_parser_free(). Sure, mysqli_close() still works, but the whole extension is mostly a historical artefact and a bunch of bad design choices due to what that extension is (quick replacement of mysql_* API). PDO was designed much better and it deliberately avoided the foot gun that is explicit connection closure. I really wish we would not introduce bad design choices into the language, and because of this, I wish this proposal were unsuccessful.
- [PHP-DEV] [Discuss] Add PDO disconnect() and isConnected() Robert Wolf
- Re: [PHP-DEV] [Discuss] Add PDO disconnect() and isCon... Kamil Tekiela
- Re: [PHP-DEV] [Discuss] Add PDO disconnect() and i... Andrey Andreev
- Re: [PHP-DEV] [Discuss] Add PDO disconnect() a... Kamil Tekiela
- Re: [PHP-DEV] [Discuss] Add PDO disconnect... Robert Wolf
- Re: [PHP-DEV] [Discuss] Add PDO disconnect... Larry Garfield
- Re: [PHP-DEV] [Discuss] Add PDO disco... Claude Pache
- Re: [PHP-DEV] [Discuss] Add PDO d... Larry Garfield
- Re: [PHP-DEV] [Discuss] Add P... Claude Pache
- RE: External Message: Re: [PH... Jeffrey Dafoe
- Re: [PHP-DEV] [Discuss] Add PDO disconnect() and i... BohwaZ
- Re: [PHP-DEV] [Discuss] Add PDO disconnect() and isCon... Claude Pache
