1--TEST-- 2DOMDocumentType::publicId with empty value. 3--CREDITS-- 4Eric Lee Stewart <ericleestewart@gmail.com> 5# TestFest Atlanta 2009-05-25 6--SKIPIF-- 7<?php require_once('skipif.inc'); ?> 8--FILE-- 9<?php 10$xml = '<?xml version="1.0" encoding="UTF-8" ?>'; 11$xml .= '<!DOCTYPE chapter SYSTEM "http://www.xmlwriter.net/logo.gif">'; 12$xml .= '<chapter>1</chapter>'; 13$doc = new DOMDocument(); 14$doc->loadXML($xml); 15$doctype = $doc->doctype; 16var_dump($doctype->publicId); 17?> 18--EXPECT-- 19string(0) "" 20