[Midnightbsd-cvs] mports [24251] trunk/converters/php56-mbstring/files/patch-php__mbregex.c: aadd patch

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Sep 9 10:42:54 EDT 2018


Revision: 24251
          http://svnweb.midnightbsd.org/mports/?rev=24251
Author:   laffer1
Date:     2018-09-09 10:42:54 -0400 (Sun, 09 Sep 2018)
Log Message:
-----------
aadd patch

Added Paths:
-----------
    trunk/converters/php56-mbstring/files/patch-php__mbregex.c

Added: trunk/converters/php56-mbstring/files/patch-php__mbregex.c
===================================================================
--- trunk/converters/php56-mbstring/files/patch-php__mbregex.c	                        (rev 0)
+++ trunk/converters/php56-mbstring/files/patch-php__mbregex.c	2018-09-09 14:42:54 UTC (rev 24251)
@@ -0,0 +1,11 @@
+--- php_mbregex.c.orig	2018-02-27 23:15:25 UTC
++++ php_mbregex.c
+@@ -454,7 +454,7 @@ static php_mb_regex_t *php_mbregex_compi
+ 	OnigUChar err_str[ONIG_MAX_ERROR_MESSAGE_LEN];
+ 
+ 	found = zend_hash_find(&MBREX(ht_rc), (char *)pattern, patlen+1, (void **) &rc);
+-	if (found == FAILURE || (*rc)->options != options || (*rc)->enc != enc || (*rc)->syntax != syntax) {
++	if (found == FAILURE || onig_get_options(*rc) != options || onig_get_encoding(*rc) != enc || onig_get_syntax(*rc) != syntax) {
+ 		if ((err_code = onig_new(&retval, (OnigUChar *)pattern, (OnigUChar *)(pattern + patlen), options, enc, syntax, &err_info)) != ONIG_NORMAL) {
+ 			onig_error_code_to_str(err_str, err_code, &err_info);
+ 			php_error_docref(NULL TSRMLS_CC, E_WARNING, "mbregex compile err: %s", err_str);


Property changes on: trunk/converters/php56-mbstring/files/patch-php__mbregex.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list