ezmlm_hash_basic.phpt 574 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Test ezmlm_hash() function : basic functionality
  3. --SKIPIF--
  4. <?php
  5. if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
  6. ?>
  7. --FILE--
  8. <?php
  9. /* Prototype : int ezmlm_hash ( string $addr )
  10. * Description: Calculate the hash value needed by EZMLM.
  11. * Source code: ext/standard/mail.c
  12. */
  13. echo "*** Testing ezmlm_hash() : basic functionality ***\n";
  14. var_dump(ezmlm_hash(b"webmaster@somewhere.com"));
  15. var_dump(ezmlm_hash(b"foo@somewhere.com"));
  16. ?>
  17. ===Done===
  18. --EXPECT--
  19. *** Testing ezmlm_hash() : basic functionality ***
  20. int(1)
  21. int(7)
  22. ===Done===