# [PATCH] New hexdump manipulation functions for PHP5

- Thread: https://externals.io/message/26952
- Original archive: https://news-web.php.net/php.internals/26952
- Started by Alexander Demin on 2006-12-14T12:16:30+00:00
- Messages: 3
- 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

---

## #26952 — Alexander Demin — 2006-12-14T12:16:30+00:00

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

Dear sirs,

this patch for PHP5 adds four new string functions into the extension
'standard':
- hexdump()
- packhex()
- smart_hexdump()
- smart_packhex()

The description of these functions and smart hexdump format in general is
attached in the file 'hexdump_descr.txt'.

I've tested this on PHP 5.2.0 and on the last CVS tree of PHP 5.2.0

Attachments:

1. hexdump_functions.patch - patch for the last CVS tree of the PHP 5.2.0.
It patches files 'ext/standard/basic_functions.c', 'ext/standard/config.m4',
'ext/standard/config.w32', 'win32/php5dllts.dsp'

2. hexdump.c and php_hexdump.h - files, that should be placed into
'ext/standard/', which implements the hexdump functions.

3. hexdump.phpt - test file for hexdump function, that should be placed into
'ext/standard/tests/strings/'

4. hexdump_descr.txt - detailed description of the hexdump functions
interface and smart hexdump format

If it needs to create any documentation stuff for help file (and translate
it, for example to russian), I will do it.

Thanks.

-- 
Regards,
Alexander Demin
demin@ots.ru

---

## #27197 — Alexander Demin — 2006-12-25T14:32:14+00:00

URL: https://externals.io/message/26952#27197 · In reply to: #26952

Dear sirs,

this patch for PHP5 adds four new string functions into the extension
'standard':
- hexdump()
- packhex()
- smart_hexdump()
- smart_packhex()

The description of these functions and smart hexdump format in general is
attached in the file 'hexdump_descr.txt'.

I've tested this on PHP 5.2.0 and on the last CVS tree of PHP 5.2.0

Attachments:

1. hexdump_functions.patch - patch for the last CVS tree of the PHP 5.2.0.
It patches files 'ext/standard/basic_functions.c', 'ext/standard/config.m4',
'ext/standard/config.w32', 'win32/php5dllts.dsp'

2. hexdump.c and php_hexdump.h - files, that should be placed into
'ext/standard/', which implements the hexdump functions.

3. hexdump.phpt - test file for hexdump function, that should be placed into
'ext/standard/tests/strings/'

4. hexdump_descr.txt - detailed description of the hexdump functions
interface and smart hexdump format

If it needs to create any documentation stuff for help file (and translate
it, for example to russian), I will do it.

Thanks.

-- 
Regards,
Alexander Demin
demin@ots.ru

---

## #27198 — Antony Dovgal — 2006-12-25T14:46:13+00:00

URL: https://externals.io/message/26952#27198 · In reply to: #27197

> Dear sirs,
> 
> this patch for PHP5 adds four new string functions into the extension
> 'standard':
> - hexdump()
> - packhex()
> - smart_hexdump()
> - smart_packhex()
> 
> The description of these functions and smart hexdump format in general is
> attached in the file 'hexdump_descr.txt'.

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.

-- 
Wbr, 
Antony Dovgal
