source: branches/version-2_5-dev/data/module/Compat/Compat/Function/hash_algos.php @ 20119

Revision 20119, 588 bytes checked in by nanasess, 13 years ago (diff)

module 以下は svn:keywords を除外

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
Line 
1<?php
2
3/**
4 * Replace hash_algos()
5 *
6 * @category    PHP
7 * @package     PHP_Compat
8 * @license     LGPL - http://www.gnu.org/licenses/lgpl.html
9 * @copyright   2004-2007 Aidan Lister <aidan@php.net>, Arpad Ray <arpad@php.net>
10 * @link        http://php.net/function.hash_algos
11 * @author      revulo <revulon@gmail.com>
12 * @since       PHP 5.1.2
13 * @require     PHP 4.0.0
14 */
15function php_compat_hash_algos()
16{
17    return array('md5', 'sha1', 'sha256');
18}
19
20
21// Define
22if (!function_exists('hash_algos')) {
23    function hash_algos()
24    {
25        return php_compat_hash_algos();
26    }
27}
Note: See TracBrowser for help on using the repository browser.