Annotation of embedaddon/php/ext/hash/tests/mhash_004.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: mhash() modifying algorithm parameter
        !             3: --INI--
        !             4: magic_quotes_runtime=0
        !             5: --SKIPIF--
        !             6: <?php
        !             7:        include "skip_mhash.inc";
        !             8: ?>
        !             9: --FILE--
        !            10: <?php
        !            11: 
        !            12: $algo = MHASH_MD5;
        !            13: var_dump($algo);
        !            14: var_dump(bin2hex(mhash($algo, "test")));
        !            15: var_dump($algo);
        !            16: 
        !            17: ?>
        !            18: --EXPECT--
        !            19: int(1)
        !            20: string(32) "098f6bcd4621d373cade4e832627b4f6"
        !            21: int(1)

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