php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21457 Error in pack() function
Submitted: 2003-01-06 04:32 UTC Modified: 2005-04-14 00:48 UTC
From: shadow at ring dot by Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.3.0 OS: Windows 98 SE
Private report: No CVE-ID: None
 [2003-01-06 04:32 UTC] shadow at ring dot by
Error in pack() function, see code below.
<?
$type = "n";
// n unsigned short (*always 16 bit*, big endian byte order) 
$fa = fopen("test","w");
fwrite($fa,pack($type,266));
?>
file "test":
00000000: 01 0D 0A

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-06 04:56 UTC] shadow at ring dot by
:)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC