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