1--TEST-- 2Bug #74099 Memory leak with openssl_encrypt() 3--EXTENSIONS-- 4openssl 5--FILE-- 6<?php 7$aad = random_bytes(32); 8$iv = random_bytes(16); 9$key = random_bytes(32); 10 11$plaintext = ''; 12$tag = null; 13 14$ciphertext = openssl_encrypt($plaintext, 'aes-256-gcm', $key, \OPENSSL_RAW_DATA, $iv, $tag, $aad); 15var_dump($ciphertext); 16?> 17--EXPECT-- 18string(0) "" 19