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