broker_free.phpt 470 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. enchant_broker_free() function
  3. --CREDITS--
  4. marcosptf - <marcosptf@yahoo.com.br>
  5. --EXTENSIONS--
  6. enchant
  7. --SKIPIF--
  8. <?php
  9. if (!is_object(enchant_broker_init())) {die("skip, resource dont load\n");}
  10. ?>
  11. --FILE--
  12. <?php
  13. $broker = enchant_broker_init();
  14. if (is_object($broker)) {
  15. echo "OK\n";
  16. enchant_broker_free($broker);
  17. } else {
  18. exit("init failed\n");
  19. }
  20. echo "OK\n";
  21. ?>
  22. --EXPECTF--
  23. OK
  24. Deprecated: Function enchant_broker_free() is deprecated in %s
  25. OK