com php-src: more doc on replace.php: compat/PECL_PORTING
| From: | Anatol Belski | Date: | Wed, 29 Jan 2014 12:10:57 +0000 |
| Subject: | com php-src: more doc on replace.php: compat/PECL_PORTING | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75845@lists.php.net to get a copy of this message | ||
Commit: 9fedc08613b8fac017d3fc824c5da7559fb0d7b2
Author: Anatol Belski <ab@php.net> Wed, 29 Jan 2014 13:10:57 +0100
Parents: e2bdd427580c89b12471862d783dd9b8e1304ee5
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9fedc08613b8fac017d3fc824c5da7559fb0d7b2
Log:
more doc on replace.php
Changed paths:
M compat/PECL_PORTING
Diff:
diff --git a/compat/PECL_PORTING b/compat/PECL_PORTING
index 639be4d..380c4fd 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
+ <str_size_and_int64>.
+
+ 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