xref: /php-src/ext/openssl/tests/gh16357.phpt (revision 549bcdb7)
1--TEST--
2GH-16357 (openssl may modify member types of certificate arrays)
3--EXTENSIONS--
4openssl
5--FILE--
6<?php
7$infile = __DIR__ . "/cert.crt";
8$outfile = __DIR__ . "/gh16357.txt";
9$certs = [123];
10var_dump(openssl_pkcs7_encrypt($infile, $outfile, $certs, null));
11var_dump($certs);
12?>
13--CLEAN--
14<?php
15unlink(__DIR__ . "/gh16357.txt");
16?>
17--EXPECT--
18bool(false)
19array(1) {
20  [0]=>
21  int(123)
22}
23