* PHP-7.2:
Validate subject encoding in mb_split and mb_ereg_match
Validate pattern against mbregex encoding
SQLite3: add DEFENSIVE config for SQLite >= 3.26.0 as a mitigation strategy against potential security flaws
--EXPECTF--
Notice: Undefined variable: var in %s on line %d
- Warning: mb_ereg_replace(): mbregex compile err: invalid code point value in %sbug72994.php on line %d
-Warning: mbereg_replace(): Pattern is not valid under UTF-8 encoding in %s on line %d
++Warning: mb_ereg_replace(): Pattern is not valid under UTF-8 encoding in %sbug72994.php on line %d
bool(false)
===DONE===
--- /dev/null
- array(2) {
- [0]=>
- string(0) ""
- [1]=>
- string(0) ""
- }
+--TEST--
+Bug #77367 (Negative size parameter in mb_split)
+--SKIPIF--
+<?php
+if (!extension_loaded('mbstring')) die('mbstring extension not available');
+if (!function_exists('mb_split')) die('mb_split() not available');
+?>
+--FILE--
+<?php
+mb_regex_encoding('UTF-8');
+var_dump(mb_split("\\w", "\xfc"));
+?>
+===DONE===
+--EXPECT--
++bool(false)
+===DONE===