Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7464332
PcreException.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PcreException.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
phpDocumentor\Reflection\Exception
;
use
InvalidArgumentException
;
use
const
PREG_BACKTRACK_LIMIT_ERROR
;
use
const
PREG_BAD_UTF8_ERROR
;
use
const
PREG_BAD_UTF8_OFFSET_ERROR
;
use
const
PREG_INTERNAL_ERROR
;
use
const
PREG_JIT_STACKLIMIT_ERROR
;
use
const
PREG_NO_ERROR
;
use
const
PREG_RECURSION_LIMIT_ERROR
;
final
class
PcreException
extends
InvalidArgumentException
{
public
static
function
createFromPhpError
(
int
$errorCode
):
self
{
switch
(
$errorCode
)
{
case
PREG_BACKTRACK_LIMIT_ERROR
:
return
new
self
(
'Backtrack limit error'
);
case
PREG_RECURSION_LIMIT_ERROR
:
return
new
self
(
'Recursion limit error'
);
case
PREG_BAD_UTF8_ERROR
:
return
new
self
(
'Bad UTF8 error'
);
case
PREG_BAD_UTF8_OFFSET_ERROR
:
return
new
self
(
'Bad UTF8 offset error'
);
case
PREG_JIT_STACKLIMIT_ERROR
:
return
new
self
(
'Jit stacklimit error'
);
case
PREG_NO_ERROR
:
case
PREG_INTERNAL_ERROR
:
default
:
}
return
new
self
(
'Unknown Pcre error'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 04:31 (3 d, 6 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c1/0c/febefa316822a93f756b481b8bbb
Default Alt Text
PcreException.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment