# New hexdump manipulation functions for PHP5

- Thread: https://externals.io/message/27199
- Original archive: https://news-web.php.net/php.internals/27199
- Started by Alexander Demin on 2006-12-25T15:07:32+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #27199 — Alexander Demin — 2006-12-25T15:07:32+00:00

URL: https://externals.io/message/27199#27199

> > […]

>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

---

## #27200 — Antony Dovgal — 2006-12-25T15:21:59+00:00

URL: https://externals.io/message/27199#27200 · In reply to: #27199

> 
> 
> > […]
> 
> > […]
> opinion they should be added
> > […]
> 
> 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.

Well, what about PEAR package then?
I don't see any certain reasons to add them into the core, if they can be easily implemented in PHP.
While I can understand your needs, I'm against adding to the core each & every function that can be 
useful for a couple of persons using PHP, especially if this function can be implemented in PHP.

So -1 from me.

-- 
Wbr, 
Antony Dovgal

---

## #27201 — Stanislav Malyshev — 2006-12-25T23:13:08+00:00

URL: https://externals.io/message/27199#27201 · In reply to: #27200

> > […]
> 
> Well, what about PEAR package then?

Yes, sounds like great one for PEAR. Especially that it seems to be 
debugging function, i.e. not performance-critical, so no problem doing 
it in pure PHP.

-- 
Stanislav Malyshev, Zend Products Engineer
stas@zend.com  http://www.zend.com/

---

## #27202 — Alexander Demin — 2006-12-26T08:52:50+00:00

URL: https://externals.io/message/27199#27202 · In reply to: #27201

>
> > […]
> functions.
> > […]
>
> Yes, sounds like great one for PEAR. Especially that it seems to be
> debugging function, i.e. not performance-critical, so no problem doing
> it in pure PHP.
>

Ok, let's do this way. I'll alter the sources into PEAR.

-- 
Regards,
Alexander Demin
demin@ots.ru
