|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-12-15 01:47 UTC] adambaratz@php.net
-Package: PDO related
+Package: PDO PgSQL
[2018-01-16 03:20 UTC] mattficken@php.net
[2018-01-23 03:04 UTC] mattficken@php.net
[2018-02-06 03:21 UTC] mattficken@php.net
-Status: Open
+Status: Not a bug
[2018-02-06 03:21 UTC] mattficken@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 08:00:01 2025 UTC |
Description: ------------ I have a weird happening. On Windows, I executed below the script. {code} <?php $pdo = new PDO('pgsql:host=xxxxxxxx;dbname=postgres;port=5432', 'postgres', 'mypassword'); sleep(600); {code} After 10 seconds, I stopped the script by SIGINT(CTRL+C). And then I saw the 'netstat' in Postgresql server. I expected not to see the 'established connection'. However, I saw the 'established connection'. {code} tcp 0 0 xxx.xxx.xxx.xxx:5432 xxx.xxx.xxx.xxx:64682 ESTABLISHED 26620/postgres: pos {code} Why it happened? P.S On Linux(centos7), it was the same that I expected. (could not see 'established connection') Test script: --------------- <?php $pdo = new PDO('pgsql:host=xxxxxxxx;dbname=postgres;port=5432', 'postgres', 'mypassword'); sleep(600); Expected result: ---------------- close connection(not established) Actual result: -------------- tcp 0 0 xxx.xxx.xxx.xxx:5432 xxx.xxx.xxx.xxx:64682 ESTABLISHED 26620/postgres: pos