From 9fedc08613b8fac017d3fc824c5da7559fb0d7b2 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Wed, 29 Jan 2014 13:10:57 +0100 Subject: [PATCH] more doc on replace.php --- compat/PECL_PORTING | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/compat/PECL_PORTING b/compat/PECL_PORTING index 639be4dafb..380c4fd5c9 100644 --- a/compat/PECL_PORTING +++ b/compat/PECL_PORTING @@ -104,7 +104,19 @@ II. Porting steps complicated cases the manual intrusion is unavoidable. Still, this tool will save a lot of time while porting. - XXX more on replace.php and it's modes + To mention are also the following options + --zpp will replace "lLsp" with "iISP" at appropriate places only + --zpp-compat will replace things like + "slO" with (PHP_NEED_STRSIZE_COMPAT ? "slO" : "SiO") + + The PHP_NEED_STRSIZE_COMPAT is defined in the compat.h for versions lower than + . + + You can also use --reverse if you want to have all the changes back to old. One + exception though is when the --zpp-compat is used - this case isn't yet + implemented as if some used a custom macros name instead of + PHP_NEED_STRSIZE_COMPAT or some other custom #ifdef, it will be hard to catch. + Though it should be implemented to cover the standard case. ii. Compatibility header