17 lines
339 B
Plaintext
17 lines
339 B
Plaintext
|
|
--TEST--
|
||
|
|
DOMEntityReference - DOM_INVALID_CHARACTER_ERR raised if name contains an invalid character
|
||
|
|
--EXTENSIONS--
|
||
|
|
dom
|
||
|
|
--FILE--
|
||
|
|
<?php
|
||
|
|
try {
|
||
|
|
new DOMEntityReference('!');
|
||
|
|
} catch (DOMException $e) {
|
||
|
|
var_dump($e->getCode() === DOM_INVALID_CHARACTER_ERR);
|
||
|
|
echo $e->getMessage();
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
--EXPECT--
|
||
|
|
bool(true)
|
||
|
|
Invalid Character Error
|