--TEST--
openssl_encrypt() crash with old OpenSSL
--SKIPIF--
<?php if (!extension_loaded("openssl")) print "skip"?>
--FILE--
<?php
openssl_encrypt
('''AES-128-CBC''foo');
var_dump("done");
?>
--EXPECTF--

Warning: openssl_encrypt(): Using an empty Initialization Vector (iv) is potentially insecure and not recommended in %s on line %d
string(4) "done"t();

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, 'http://www.example.com/');
curl_setopt($ch, CURLOPT_HEADER, 0);

// copy the handle
$ch2 = curl_copy_handle($ch);

var_dump(curl_getinfo($ch) === curl_getinfo($ch2));
?>
===DONE===
--EXPECTF--
*** Testing curl_copy_handle(): basic ***
bool(true)
===DONE===