Bug #14162: wrong init with mcrypt_generic_init crashes php

From: Date: Wed, 21 Nov 2001 16:23:17 +0000
Subject: Bug #14162: wrong init with mcrypt_generic_init crashes php
Groups: php.dev 
Request: Send a blank email to php-dev+get-71253@lists.php.net to get a copy of this message
From: alberty@neptunelabs.com Operating system: i686-pc-linux-gnu PHP version: 4.0CVS-2001-11-21 PHP Bug Type: Unknown/Other Function Bug description: wrong init with mcrypt_generic_init crashes php Hi, php crashes with libmcrypt (ive test it with 2.4.17) with the follow php script. The problem is the complete wrong initalising with mcrypt_generic_init. The mcrypt_generic_init results -3 and mcrypt_generic crashes. <?php $stream='Hello World!'; $td = @mcrypt_module_open (MCRYPT_ARCFOUR , '', MCRYPT_MODE_STREAM, ''); if ($td!=false){ $result=@mcrypt_generic_init ($td, false, false); if ($result!=-1){ $stream = mcrypt_generic ($td, $stream); mcrypt_generic_deinit ($td); } } echo $stream; ?> -- Edit bug report at: http://bugs.php.net/?id=14162&edit=1

« previous php.dev (#71253) next »