summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/oci8/tests/connect_scope_try1.phpt2
-rw-r--r--ext/oci8/tests/connect_scope_try2.phpt2
-rw-r--r--ext/oci8/tests/connect_scope_try3.phpt2
-rw-r--r--ext/oci8/tests/connect_scope_try4.phpt2
-rw-r--r--ext/oci8/tests/connect_scope_try5.phpt2
-rw-r--r--ext/oci8/tests/connect_scope_try6.phpt2
6 files changed, 6 insertions, 6 deletions
diff --git a/ext/oci8/tests/connect_scope_try1.phpt b/ext/oci8/tests/connect_scope_try1.phpt
index 7f26d4334d..2832b863ea 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 94adb85e93..29daa9d403 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 e7891a1073..1af0813727 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 40369c67ba..5a2c9f0727 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 3afc87b915..112ec6ce97 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 d7b4edfdbe..96bd556092 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
{