mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
19 lines
487 B
Plaintext
19 lines
487 B
Plaintext
|
--TEST--
|
||
|
DOMDocumentType::publicId with empty value.
|
||
|
--CREDITS--
|
||
|
Eric Lee Stewart <ericleestewart@gmail.com>
|
||
|
# TestFest Atlanta 2009-05-25
|
||
|
--SKIPIF--
|
||
|
<?php require_once('skipif.inc'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$xml = '<?xml version="1.0" encoding="UTF-8" ?>';
|
||
|
$xml .= '<!DOCTYPE chapter SYSTEM "http://www.xmlwriter.net/logo.gif">';
|
||
|
$xml .= '<chapter>1</chapter>';
|
||
|
$doc = new DOMDocument();
|
||
|
$doc->loadXML($xml);
|
||
|
$doctype = $doc->doctype;
|
||
|
var_dump($doctype->publicId);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
string(0) ""
|