Source for file version_test.php

Documentation is available at version_test.php

  1. <?php
  2. /**
  3.  * A Compatibility library with PHP 5.5's simplified password hashing API.
  4.  *
  5.  * @author Anthony Ferrara <ircmaxell@php.net>
  6.  * @license http://www.opensource.org/licenses/mit-license.html MIT License
  7.  * @copyright 2012 The Authors
  8.  */
  9. /**
  10.  * Modififations
  11.  * Open Source Matters 2013
  12.  * CMS version 3.2
  13.  *
  14.  */
  15. {
  16.     public function version_test()
  17.     {
  18.         $hash '$2y$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG';
  19.         $test crypt("password"$hash);
  20.         $pass $test == $hash;
  21.  
  22.         return $pass;
  23.     }
  24. }

Documentation generated on Tue, 19 Nov 2013 15:16:46 +0100 by phpDocumentor 1.4.3