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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-06 04:56 UTC] shadow at ring dot by
:)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 09:01:27 2025 UTC