com php-src: Remove use of obsolete create_function(): ext/oci8/tests/connect_scope_try1.phpt ext/oci 8/tests/connect_scope_try2.phpt
ext/oci8/tests/co nnect_scope_try3.phpt ext/oci8/tests/connect_scop e_try4.phpt ext/oci8/tests/connect_scope_try5 .phpt
ext/oci8/tests/connect_scope_try6.phpt
| From: | Christopher Jones | Date: | Wed, 21 Jun 2017 05:02:58 +0000 |
| Subject: | com php-src: Remove use of obsolete create_function(): ext/oci8/tests/connect_scope_try1.phpt ext/oci 8/tests/connect_scope_try2.phpt ext/oci8/tests/co nnect_scope_try3.phpt ext/oci8/tests/connect_scop e_try4.phpt ext/oci8/tests/connect_scope_try5 .phpt ext/oci8/tests/connect_scope_try6.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98140@lists.php.net to get a copy of this message | ||
Commit: 3fbbcf7f939d9b33364b1301b9d47871bd2d3842
Author: Christopher Jones <sixd@php.net> Wed, 21 Jun 2017 15:02:58 +1000
Parents: 1bdc290017f6257e3fb1306cb8b826174bd3fe98
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3fbbcf7f939d9b33364b1301b9d47871bd2d3842
Log:
Remove use of obsolete create_function()
Changed paths:
M ext/oci8/tests/connect_scope_try1.phpt
M ext/oci8/tests/connect_scope_try2.phpt
M ext/oci8/tests/connect_scope_try3.phpt
M ext/oci8/tests/connect_scope_try4.phpt
M ext/oci8/tests/connect_scope_try5.phpt
M ext/oci8/tests/connect_scope_try6.phpt
Diff:
diff --git a/ext/oci8/tests/connect_scope_try1.phpt b/ext/oci8/tests/connect_scope_try1.phpt
index 7f26d43..2832b86 100644
--- a/ext/oci8/tests/connect_scope_try1.phpt
+++ b/ext/oci8/tests/connect_scope_try1.phpt
@@ -29,7 +29,7 @@ echo "Test 1\n";
// Make errors throw exceptions
-set_error_handler(create_function('$x, $y', 'throw new Exception($y, $x);'));
+set_error_handler(function($x, $y) { throw new Exception($y, $x); });
try
{
diff --git a/ext/oci8/tests/connect_scope_try2.phpt b/ext/oci8/tests/connect_scope_try2.phpt
index 94adb85..29daa9d 100644
--- a/ext/oci8/tests/connect_scope_try2.phpt
+++ b/ext/oci8/tests/connect_scope_try2.phpt
@@ -29,7 +29,7 @@ echo "Test 1\n";
// Make errors throw exceptions
-set_error_handler(create_function('$x, $y', 'throw new Exception($y, $x);'));
+set_error_handler(function($x, $y) { throw new Exception($y, $x); });
try
{
diff --git a/ext/oci8/tests/connect_scope_try3.phpt b/ext/oci8/tests/connect_scope_try3.phpt
index e7891a1..1af0813 100644
--- a/ext/oci8/tests/connect_scope_try3.phpt
+++ b/ext/oci8/tests/connect_scope_try3.phpt
@@ -29,7 +29,7 @@ echo "Test 1\n";
// Make errors throw exceptions
-set_error_handler(create_function('$x, $y', 'throw new Exception($y, $x);'));
+set_error_handler(function($x, $y) { throw new Exception($y, $x); });
try
{
diff --git a/ext/oci8/tests/connect_scope_try4.phpt b/ext/oci8/tests/connect_scope_try4.phpt
index 40369c6..5a2c9f0 100644
--- a/ext/oci8/tests/connect_scope_try4.phpt
+++ b/ext/oci8/tests/connect_scope_try4.phpt
@@ -29,7 +29,7 @@ echo "Test 1\n";
// Make errors throw exceptions
-set_error_handler(create_function('$x, $y', 'throw new Exception($y, $x);'));
+set_error_handler(function($x, $y) { throw new Exception($y, $x); });
try
{
diff --git a/ext/oci8/tests/connect_scope_try5.phpt b/ext/oci8/tests/connect_scope_try5.phpt
index 3afc87b..112ec6c 100644
--- a/ext/oci8/tests/connect_scope_try5.phpt
+++ b/ext/oci8/tests/connect_scope_try5.phpt
@@ -29,7 +29,7 @@ echo "Test 1\n";
// Make errors throw exceptions
-set_error_handler(create_function('$x, $y', 'throw new Exception($y, $x);'));
+set_error_handler(function($x, $y) { throw new Exception($y, $x); });
try
{
diff --git a/ext/oci8/tests/connect_scope_try6.phpt b/ext/oci8/tests/connect_scope_try6.phpt
index d7b4edf..96bd556 100644
--- a/ext/oci8/tests/connect_scope_try6.phpt
+++ b/ext/oci8/tests/connect_scope_try6.phpt
@@ -29,7 +29,7 @@ echo "Test 1\n";
// Make errors throw exceptions
-set_error_handler(create_function('$x, $y', 'throw new Exception($y, $x);'));
+set_error_handler(function($x, $y) { throw new Exception($y, $x); });
try
{