You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
404 B

  1. --TEST--
  2. sqlite-spl: Exception
  3. --SKIPIF--
  4. <?php # vim:ft=php
  5. if (!extension_loaded("sqlite")) print "skip";
  6. if (!extension_loaded("spl")) print "skip SPL is not present";
  7. ?>
  8. --FILE--
  9. <?php
  10. try
  11. {
  12. $db = sqlite_factory();
  13. }
  14. catch(SQLiteException $e)
  15. {
  16. $parents = class_parents($e);
  17. if (array_key_exists('RuntimeException', $parents))
  18. {
  19. echo "GOOD\n";
  20. }
  21. }
  22. ?>
  23. ===DONE===
  24. --EXPECT--
  25. GOOD
  26. ===DONE===