Bug->Req #19770 [Opn]: html image cid generation on windows

From: Date: Thu, 03 Jan 2013 14:22:56 +0000
Subject: Bug->Req #19770 [Opn]: html image cid generation on windows
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9449@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19770&edit=1 ID: 19770 Updated by: php-pear@rrelmy.ch Reported By: php-pear at rrelmy dot ch Summary: html image cid generation on windows Status: Open -Type: Bug +Type: Feature/Change Request Package: Mail_Mime Operating System: Windows Package Version: 1.8.7 PHP Version: 5.3.1 Roadmap Versions: New Comment: -Type: Bug +Type: Feature/Change Request Previous Comments: ------------------------------------------------------------------------ [2013-01-03 14:16:33] remy Description: ------------ In certain circumstances the uniqid can produce the same id multiple times at the same time on windows machines. (yes, WTF) When multiple images are added to the mail they could have the same id, and the images are replacing each other. The solution for the problem is easy. Setting the $more_entropy argument of the uniqid to true would suffice. Other random functions like mt_rand would work as well. Would it be possible to change the cid generation like that? ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19770&edit=1

« previous php.pear.bugs (#9449) next »