php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39889 pack
Submitted: 2006-12-19 15:44 UTC Modified: 2006-12-27 01:00 UTC
From: roberto at spadim dot com dot br Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 5.2.0 OS: any
Private report: No CVE-ID: None
 [2006-12-19 15:44 UTC] roberto at spadim dot com dot br
Description:
------------
since php don't have ntohl neither htonl i  tryed with
pack('N',$value)

but i can't get the same values that i get from C program
any idea or workaround for it?!

Reproduce code:
---------------
C result don't correspond to PHP pack value

Expected result:
----------------
same value as C

Actual result:
--------------
diferent values

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-19 16:10 UTC] iliaa@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2006-12-27 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC