1--TEST--
2Check that arguments are freed when calling a deprecated function
3--FILE--
4<?php
5
6set_error_handler(function($code, $msg) {
7    throw new Error($msg);
8});
9
10try {
11    ezmlm_hash(new stdClass);
12} catch (Error $e) {
13    echo $e->getMessage(), "\n";
14}
15
16$ret = new stdClass;
17try {
18    $ret = ezmlm_hash(new stdClass);
19} catch (Error $e) {
20    echo $e->getMessage(), "\n";
21}
22
23try {
24    $fn = 'ezmlm_hash';
25    $fn(new stdClass);
26} catch (Error $e) {
27    echo $e->getMessage(), "\n";
28}
29
30$ret = new stdClass;
31try {
32    $fn = 'ezmlm_hash';
33    $ret = $fn(new stdClass);
34} catch (Error $e) {
35    echo $e->getMessage(), "\n";
36}
37
38?>
39--EXPECT--
40Function ezmlm_hash() is deprecated
41Function ezmlm_hash() is deprecated
42Function ezmlm_hash() is deprecated
43Function ezmlm_hash() is deprecated
44