mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +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
17 lines
307 B
PHP
17 lines
307 B
PHP
--TEST--
|
|
Bug #77569 (Write Access Violation in DomImplementation)
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
$imp = new DOMImplementation;
|
|
$dom = $imp->createDocument("", "");
|
|
try {
|
|
$dom->encoding = null;
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . \PHP_EOL;
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Invalid document encoding
|