1--TEST--
2openssl_pkey_export_to_file memory leak
3--EXTENSIONS--
4openssl
5--FILE--
6<?php
7
8$path = "file://" . __DIR__ . "/private_rsa_1024.key";
9$key = [$path, ""];
10var_dump(openssl_pkey_export_to_file($key, str_repeat("a", 10000), passphrase: ""));
11
12?>
13--EXPECTF--
14Warning: openssl_pkey_export_to_file(output_filename): must be a valid file path %s
15bool(false)
16