mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
ignore utf8 offset error for unit tests
This commit is contained in:
parent
e575d67969
commit
1440786c31
1 changed files with 3 additions and 1 deletions
|
@ -13,12 +13,14 @@
|
||||||
var $debug=false;
|
var $debug=false;
|
||||||
|
|
||||||
private function _preg_error(){
|
private function _preg_error(){
|
||||||
|
|
||||||
switch(preg_last_error()){
|
switch(preg_last_error()){
|
||||||
case PREG_INTERNAL_ERROR: echo('PREG_INTERNAL_ERROR'); break;
|
case PREG_INTERNAL_ERROR: echo('PREG_INTERNAL_ERROR'); break;
|
||||||
case PREG_BACKTRACK_LIMIT_ERROR: echo('PREG_BACKTRACK_LIMIT_ERROR'); break;
|
case PREG_BACKTRACK_LIMIT_ERROR: echo('PREG_BACKTRACK_LIMIT_ERROR'); break;
|
||||||
case PREG_RECURSION_LIMIT_ERROR: echo('PREG_RECURSION_LIMIT_ERROR'); break;
|
case PREG_RECURSION_LIMIT_ERROR: echo('PREG_RECURSION_LIMIT_ERROR'); break;
|
||||||
case PREG_BAD_UTF8_ERROR: echo('PREG_BAD_UTF8_ERROR'); break;
|
case PREG_BAD_UTF8_ERROR: echo('PREG_BAD_UTF8_ERROR'); break;
|
||||||
case PREG_BAD_UTF8_OFFSET_ERROR: echo('PREG_BAD_UTF8_OFFSET_ERROR'); break;
|
// This is only valid for php > 5.3, not certain how to code around it for unit tests
|
||||||
|
// case PREG_BAD_UTF8_OFFSET_ERROR: echo('PREG_BAD_UTF8_OFFSET_ERROR'); break;
|
||||||
default:
|
default:
|
||||||
//die("Unknown preg error.");
|
//die("Unknown preg error.");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue