global_to_string_exception.phpt 227 B

1234567891011121314
  1. --TEST--
  2. To string conversion failure in global
  3. --FILE--
  4. <?php
  5. try {
  6. global ${new stdClass};
  7. } catch (Error $e) {
  8. echo $e->getMessage(), "\n";
  9. }
  10. ?>
  11. --EXPECT--
  12. Object of class stdClass could not be converted to string