Return to ezmlm_hash_basic.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / mail |
1.1 misho 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: 14: echo "*** Testing ezmlm_hash() : basic functionality ***\n"; 15: 16: var_dump(ezmlm_hash(b"webmaster@somewhere.com")); 17: var_dump(ezmlm_hash(b"foo@somewhere.com")); 18: 19: ?> 20: ===Done=== 21: --EXPECT-- 22: *** Testing ezmlm_hash() : basic functionality *** 23: int(1) 24: int(7) 25: ===Done===