Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27199 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26388 invoked by uid 1010); 25 Dec 2006 15:08:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26373 invoked from network); 25 Dec 2006 15:08:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Dec 2006 15:08:45 -0000 Authentication-Results: pb1.pair.com header.from=ademin@gmail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=ademin@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.230 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ademin@gmail.com X-Host-Fingerprint: 64.233.162.230 nz-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.162.230] ([64.233.162.230:40982] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/92-10583-739EF854 for ; Mon, 25 Dec 2006 10:08:10 -0500 Received: by nz-out-0506.google.com with SMTP id k1so1760010nzf for ; Mon, 25 Dec 2006 07:07:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=EG6tVzJbA/K9rOLyRYDTqAXZ7CUBrjWhza5uFoAxAAyufQtm5FaMawpiSHHJ+0/56bXJXClAkU7MJjBDuHhk64NnwOAVSpawaR+rOAsyiCoJCRiLyb7LT589agjmd5pL5iKsWY2DiaHmDrVLpdgSZNo5LyKTq+XBx9Ht3Lts9c0= Received: by 10.65.210.18 with SMTP id m18mr847071qbq.1167059252738; Mon, 25 Dec 2006 07:07:32 -0800 (PST) Received: by 10.64.91.13 with HTTP; Mon, 25 Dec 2006 07:07:32 -0800 (PST) Message-ID: <179d34610612250707w24963db5g7ed02340193a03c@mail.gmail.com> Date: Mon, 25 Dec 2006 18:07:32 +0300 Sender: ademin@gmail.com To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_50156_16289402.1167059252704" X-Google-Sender-Auth: 00b6670e03fd5aa6 Subject: Re: New hexdump manipulation functions for PHP5 From: demin@ots.ru ("Alexander Demin") ------=_Part_50156_16289402.1167059252704 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon Dec 25 09:46:13 2006, Antony Dovgal wrote: >> this patch for PHP5 adds four new string functions into the extension >> 'standard': >> - hexdump() >> - packhex() >> - smart_hexdump() >> - smart_packhex() >Please elaborate on how these functions can be useful, why in your opinion they should be added >to the core (and not PECL) and why this cannot be implemented in PHP itself. I think, hexdump manipulation functions are very useful string functions. I have been using hexdump(), packhex() and smart hex functions, written on PHP, and including it in many projects more than 2 years, and at last I've implemented it into php core. It helps in debugging: - communication protocols - any algorithms with binary data - any kind of logging etc why to the core? because pack() function is already in the core. It's good function, but it's a little bit complex for every minute using. hexdump manipulation is like md5, crc32 etc. It is every minute function, I think. -- Regards, Alexander Demin ------=_Part_50156_16289402.1167059252704--