xref: /PHP-8.0/ext/openssl/tests/bug71475.phpt (revision 9975986b)
1--TEST--
2Bug #71475: openssl_seal() uninitialized memory usage
3--SKIPIF--
4<?php
5if (!extension_loaded("openssl")) die("skip openssl not loaded");
6?>
7--FILE--
8<?php
9$_ = str_repeat("A", 512);
10try {
11    openssl_seal($_, $_, $_, array_fill(0,64,0));
12} catch (TypeError $e) {
13    echo $e->getMessage(), "\n";
14}
15?>
16DONE
17--EXPECT--
18openssl_seal() expects at least 5 arguments, 4 given
19DONE
20