From eaeecc523b665cfa856a376b9c55ca7fc9b7b596 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 30 Jan 2017 22:09:32 +0100 Subject: Deprecate create_function() --- tests/lang/bug17115.phpt | 3 ++- tests/lang/bug22690.phpt | 4 +++- tests/lang/bug24926.phpt | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/lang/bug17115.phpt b/tests/lang/bug17115.phpt index 0cb3bf44d2..9500352799 100644 --- a/tests/lang/bug17115.phpt +++ b/tests/lang/bug17115.phpt @@ -10,7 +10,8 @@ var_dump($func()); var_dump($func()); var_dump($func()); ?> ---EXPECT-- +--EXPECTF-- +Deprecated: Function create_function() is deprecated in %s on line %d int(0) int(1) int(2) diff --git a/tests/lang/bug22690.phpt b/tests/lang/bug22690.phpt index 6aed5be6e9..9d5444051b 100644 --- a/tests/lang/bug22690.phpt +++ b/tests/lang/bug22690.phpt @@ -7,6 +7,8 @@ Bug #22690 (ob_start() is broken with create_function() callbacks) echo $foo("bar\n"); ?> bar ---EXPECT-- +--EXPECTF-- + +Deprecated: Function create_function() is deprecated in %s on line %d BAR BAR diff --git a/tests/lang/bug24926.phpt b/tests/lang/bug24926.phpt index 8f853dba47..e7fd86ce76 100644 --- a/tests/lang/bug24926.phpt +++ b/tests/lang/bug24926.phpt @@ -23,6 +23,7 @@ class foo { $a = new foo (); ?> ---EXPECT-- +--EXPECTF-- +Deprecated: Function create_function() is deprecated in %s on line %d FOO FOO -- cgit v1.2.1