--TEST-- Curl persistent share handle test with different options --EXTENSIONS-- curl --SKIPIF-- --FILE-- options != $sh2->options); // Expect the connect time on the subsequent request to be non-zero, since it's *not* reusing the connection. var_dump(curl_exec($ch1)); var_dump(curl_exec($ch2)); var_dump("second connect_time: " . (curl_getinfo($ch2)["connect_time"])); ?> --EXPECTREGEX-- bool\(true\) string\(23\) "Caddy is up and running" string\(23\) "Caddy is up and running" string\(\d+\) "second connect_time: .*[1-9].*"