From: [EMAIL PROTECTED] Operating system: Linux 2.2.X PHP version: 4.1.0 PHP Bug Type: mcrypt related Bug description: mcrypt_create_iv: unterminated string & segfault
mcrypt_create_iv(mcrypt_get_iv_size (MCRYPT_DES , MCRYPT_MODE_ECB), MCRYPT_RAND) produces following error and causes apache to segfault: Warning - String is not zero-terminated source: zend_execute_API.c:274 Workaround: Replace the mcrypt_create_iv call with: $fp = fopen("/dev/random", "r"); $iv = fread($fp, mcrypt_get_iv_size (MCRYPT_DES , MCRYPT_MODE_ECB)); fclose($fp); Better: Should be fixed. -- Edit bug report at: http://bugs.php.net/?id=14456&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]