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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 + 2 = ?
Subscribe to this entry?

 
 [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: Sat Jul 13 03:02:22 2024 UTC