We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Apache has stopped working when running function hash()

I'm using xampp 1.8.3, apache 2.4.9, php 5.5.11, phalcon 1.3.2

This is my code that make apache stopped:

$app->get("/change-password", function () use ($app) {
    $password = $app->security->hash('123456');
    return $password;
});

Full log:

Problem Event Name: APPCRASH
  Application Name: httpd.exe
  Application Version:  2.4.9.0
  Application Timestamp:    532585f0
  Fault Module Name:    php_phalcon.dll
  Fault Module Version: 5.5.10.0
  Fault Module Timestamp:   538f7a09
  Exception Code:   c0000005
  Exception Offset: 00034e9e
  OS Version:   6.1.7600.2.0.0.256.48
  Locale ID:    1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  https://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt


1.4k

Phalcon\Security->hash() has a known bug on Windows with Phalcon 1.3.1+ See https://github.com/phalcon/cphalcon/issues/2277 for more info

Thank you, @phanthos. And the bug were not fixed in version 1.3.2. I'm waiting for the fix on the next release. Hope on 1.3.3.