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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shadow at ring dot by
New email:
PHP Version: OS:

 

 [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: Thu May 23 03:01:28 2024 UTC