From: Remi Collet Date: Sun, 25 Jun 2017 06:27:52 +0000 (+0200) Subject: note about php_pcre_replace* X-Git-Tag: php-7.2.0alpha3~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59c30c01b33d630d8ea10921f411d13899dea08c;p=php note about php_pcre_replace* --- diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index e4860fd1aa..e182839f2a 100644 --- a/UPGRADING.INTERNALS +++ b/UPGRADING.INTERNALS @@ -51,6 +51,12 @@ PHP 7.2 INTERNALS UPGRADE NOTES 3. Module changes ======================== +- Pcre: + . php_pcre_replace and php_pcre_replace_impl expect a zend_string instead of a zval and + is_callable_replace options is removed: + - PHPAPI zend_string *php_pcre_replace(zend_string *regex, zend_string *subject_str, char *subject, int subject_len, zend_string *replace_str, int limit, int *replace_count); + - PHPAPI zend_string *php_pcre_replace_impl(pcre_cache_entry *pce, zend_string *subject_str, char *subject, int subject_len, zend_string *replace_str, int limit, int *replace_count); + - Session: . php_session_start()/session_reset_id() return value is changed from void to int. It returns SUCCESS/FAILURE.