mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

For rationale, see https://github.com/php/php-src/pull/6787 Make extension checks lowercase, add a special case for opcache that has internal name not matching .so filename. Extensions migrated in part 2: * dom * exif * fileinfo * ffi
18 lines
395 B
PHP
18 lines
395 B
PHP
--TEST--
|
|
DomDocument::createEntityReference() - DOM_INVALID_CHARACTER_ERR raised if name contains an invalid character
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
$objDoc = new DomDocument();
|
|
|
|
try {
|
|
$objDoc->createEntityReference('!');
|
|
} catch (DOMException $e) {
|
|
var_dump($e->getCode() === DOM_INVALID_CHARACTER_ERR);
|
|
echo $e->getMessage();
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
Invalid Character Error
|