ID: 30033 Updated by: [EMAIL PROTECTED] Reported By: jsgoupil at lookstrike dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: WinXP - Linux PHP Version: 5.0.1 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. http://php.net/pack: n unsigned short (always 16 bit, big endian byte order) Previous Comments: ------------------------------------------------------------------------ [2004-09-09 06:21:40] jsgoupil at lookstrike dot com Description: ------------ With the following code, i receive the max positive value. Same error in PHP4.3.7. Reproduce code: --------------- <?php $val = -1; $val2 = pack('n',$val); $val3 = unpack('nint',$val2); echo $val3['int']; ?> Expected result: ---------------- -1 Actual result: -------------- 65535 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30033&edit=1