diff --git a/ext/oci8/tests/connect_scope_try1.phpt b/ext/oci8/tests/connect_scope_try1.phpt index 7f26d4334d0..2832b863eaf 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 94adb85e938..29daa9d4039 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 e7891a10733..1af08137270 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 40369c67ba3..5a2c9f07275 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 3afc87b9156..112ec6ce978 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 d7b4edfdbe3..96bd5560928 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 {