|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2012-01-26 19:47 UTC] root at ihack dot net
  [2012-01-27 10:56 UTC] pajoye@php.net
  [2012-01-27 10:56 UTC] pajoye@php.net
  [2012-01-27 10:56 UTC] pajoye@php.net
 
-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: pajoye
  [2012-04-18 09:46 UTC] laruence@php.net
  [2012-07-24 23:37 UTC] rasmus@php.net
  [2013-11-17 09:34 UTC] laruence@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 04:00:01 2025 UTC | 
Description: ------------ If php_win32_get_random_bytes() has never been called, then this line of code: + CryptReleaseContext(hCryptProv, 0); passes a null pointer, resulting in a C0000005 exception in CryptReleaseContext(). This line should be preceded by: if (has_crypto_ctx) This was specifically tested with the windows.php.net 32-bit TS build running on 64-bit Windows. I do not know how it behaves in other configurations. Test script: --------------- I do not have a short test case, but the bug is pretty obvious.