summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-07-11 17:04:36 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-07-22 11:39:52 +0200
commite9e2fa4ad4983961bb6e0c495cb0d94a5445714c (patch)
tree18bc578904f9df4d5416d8ceddbe339d0c79e128 /ext
parent39e756e7fe7b08092b4a75cf253442cba826e910 (diff)
downloadphp-git-e9e2fa4ad4983961bb6e0c495cb0d94a5445714c.tar.gz
Deprecate ezmlm_hash()
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/basic_functions.c2
-rw-r--r--ext/standard/tests/mail/ezmlm_hash_basic.phpt6
2 files changed, 6 insertions, 2 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 6410bfaacc..d0a4043a23 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -3291,7 +3291,7 @@ static const zend_function_entry basic_functions[] = { /* {{{ */
/* functions from mail.c */
PHP_FE(mail, arginfo_mail)
- PHP_FE(ezmlm_hash, arginfo_ezmlm_hash)
+ PHP_DEP_FE(ezmlm_hash, arginfo_ezmlm_hash)
/* functions from syslog.c */
#ifdef HAVE_SYSLOG_H
diff --git a/ext/standard/tests/mail/ezmlm_hash_basic.phpt b/ext/standard/tests/mail/ezmlm_hash_basic.phpt
index da629e9e12..aa1f4c63c9 100644
--- a/ext/standard/tests/mail/ezmlm_hash_basic.phpt
+++ b/ext/standard/tests/mail/ezmlm_hash_basic.phpt
@@ -14,8 +14,12 @@ var_dump(ezmlm_hash("foo@somewhere.com"));
?>
===Done===
---EXPECT--
+--EXPECTF--
*** Testing ezmlm_hash() : basic functionality ***
+
+Deprecated: Function ezmlm_hash() is deprecated in %s on line %d
int(1)
+
+Deprecated: Function ezmlm_hash() is deprecated in %s on line %d
int(7)
===Done===