md5_basic1.phpt 455 B

1234567891011121314151617
  1. --TEST--
  2. Test md5() function : basic functionality
  3. --FILE--
  4. <?php
  5. /* Prototype : string md5 ( string $str [, bool $raw_output= false ] )
  6. * Description: Calculate the md5 hash of a string
  7. * Source code: ext/standard/md5.c
  8. */
  9. echo "*** Testing md5() : basic functionality ***\n";
  10. var_dump(md5(b"apple"));
  11. ?>
  12. ===DONE===
  13. --EXPECTF--
  14. *** Testing md5() : basic functionality ***
  15. string(32) "1f3870be274f6c49b3e31a0c6728957f"
  16. ===DONE===