#39889 [Opn->Fbk]: pack

From: Date: Tue, 19 Dec 2006 16:10:56 +0000
Subject: #39889 [Opn->Fbk]: pack
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106589@lists.php.net to get a copy of this message
ID: 39889 Updated by: iliaa@php.net Reported By: roberto at spadim dot com dot br -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: any PHP Version: 5.2.0 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2006-12-19 15:44:13] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39889&edit=1

« previous php.bugs (#106589) next »