[PATCH] New hexdump manipulation functions for PHP5

php.internals

Alexander Demin

19 years ago
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

Alexander Demin

19 years ago
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

Antony Dovgal

19 years ago
On 12/25/2006 05:32 PM, Alexander Demin wrote:
> 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