--TEST-- mysqli_pconnect() - mysqli.allow_persistent = 0 --SKIPIF-- --INI-- mysqli.allow_persistent=0 mysqli.max_persistent=2 mysqli.max_links=2 --FILE-- '%s'\n", $row['_test']); mysqli_free_result($res); if (!$res = mysqli_query($link2, 'SELECT @pcondisabled AS _test')) printf("[005] [%d] %s\n", mysqli_errno($link2), mysqli_error($link2)); $row = mysqli_fetch_assoc($res); printf("Connecction 2 - SELECT @pcondisabled -> '%s'\n", $row['_test']); mysqli_free_result($res); if ($link1 === $link2) printf("[006] Links should not be identical\n"); mysqli_close($link1); mysqli_close($link2); print "done!"; ?> --EXPECTF-- Warning: my_mysqli_connect(): Persistent connections are disabled. Downgrading to normal in %s on line %d Warning: my_mysqli_connect(): Persistent connections are disabled. Downgrading to normal in %s on line %d Connecction 1 - SELECT @pcondisabled -> 'Connection 1' Connecction 2 - SELECT @pcondisabled -> '' done!