From: eugen at iwep dot ab dot ru Operating system: Windows 2000 PHP version: 5CVS-2003-03-03 (dev) PHP Bug Type: Scripting Engine problem Bug description: Pack&Unpack
Hi all, Please try
<?
$dat=pack ("f", 1.1);
$ar=unpack('fx',$dat);
print 'x='.$ar['x'].'<br>';
?>
Output:
x=1.10000002384
^^^^^^^^^^^^^^^^?????????????? maybe bug with float ?
--
Edit bug report at http://bugs.php.net/?id=22516&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22516&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22516&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22516&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22516&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22516&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22516&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22516&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22516&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22516&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22516&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22516&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22516&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22516&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22516&r=gnused
