File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / mail / ezmlm_hash_basic.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:04 2012 UTC (12 years, 5 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

--TEST--
Test ezmlm_hash() function : basic functionality 
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--FILE--
<?php
/* Prototype  : int ezmlm_hash  ( string $addr  )
 * Description: Calculate the hash value needed by EZMLM.
 * Source code: ext/standard/mail.c
 */

echo "*** Testing ezmlm_hash() : basic functionality ***\n";

var_dump(ezmlm_hash(b"webmaster@somewhere.com"));
var_dump(ezmlm_hash(b"foo@somewhere.com"));

?>
===Done===
--EXPECT--
*** Testing ezmlm_hash() : basic functionality ***
int(1)
int(7)
===Done===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>