title: php blowfish hashing with crypt(): the CLI result differs from webserver's one
body: <p>When I use php function crypt() using Blowfish algorithm <strong>with web-server</strong>:</p>
  
  <pre><code>&lt;?php
  
      echo crypt('SAD123', sprintf('$2a$10$%s', '7711cbpe58dfpogiu049857f011werb0'));
  </code></pre>
  
  <p>I get this result: </p>
  
  <pre><code>$2a$10$7711cbpe58dfpogiu0498u5Vh773A3qx.3LE3ro3NX7F9c9N7.pOm
  </code></pre>
  
  <p>But if I'm using PHP interpretor <strong>with command line</strong>:</p>
  
  <pre><code>php -r "echo crypt('SAD123', sprintf('$2a$10$%s', '7711cbpe58dfpogiu049857f011werb0'));"
  </code></pre>
  
  <p>I'm getting another result:</p>
  
  <pre><code>a0SqNHxQ8/2mA
  </code></pre>
  
  <p>Do you have any ideas?</p>
  
  <p>The system is:
  Apache/2.2.3 (CentOS),
  PHP Version 5.4.26</p>