Browse Source

Remove use of obsolete create_function()

pull/2587/merge
Christopher Jones 9 years ago
parent
commit
3fbbcf7f93
  1. 2
      ext/oci8/tests/connect_scope_try1.phpt
  2. 2
      ext/oci8/tests/connect_scope_try2.phpt
  3. 2
      ext/oci8/tests/connect_scope_try3.phpt
  4. 2
      ext/oci8/tests/connect_scope_try4.phpt
  5. 2
      ext/oci8/tests/connect_scope_try5.phpt
  6. 2
      ext/oci8/tests/connect_scope_try6.phpt

2
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
{

2
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
{

2
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
{

2
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
{

2
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
{

2
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
{

Loading…
Cancel
Save