Searched refs:XMLReader (Results 1 – 25 of 62) sorted by relevance
123
/php-src/ext/xmlreader/ |
H A D | php_xmlreader_arginfo.h | 113 ZEND_METHOD(XMLReader, close); 118 ZEND_METHOD(XMLReader, isValid); 126 ZEND_METHOD(XMLReader, read); 127 ZEND_METHOD(XMLReader, next); 128 ZEND_METHOD(XMLReader, open); 129 ZEND_METHOD(XMLReader, fromUri); 130 ZEND_METHOD(XMLReader, fromStream); 133 ZEND_METHOD(XMLReader, readString); 134 ZEND_METHOD(XMLReader, setSchema); 138 ZEND_METHOD(XMLReader, XML); [all …]
|
/php-src/ext/xmlreader/tests/ |
H A D | 013.phpt | 2 XMLReader: Schema validation 6 <?php if (!method_exists('XMLReader','setSchema')) die('skip XMLReader::setSchema() not supported')… 18 $reader = new XMLReader(); 22 if ($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'item') { 38 $reader = new XMLReader(); 41 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT); 50 Warning: XMLReader::read(): Element 'foo': %s
|
H A D | 012.phpt | 2 XMLReader: accessing empty and non existing attributes 13 $reader = new XMLReader(); 30 $reader = new XMLReader(); 32 $reader->setParserProperty(XMLReader::DEFAULTATTRS, true); 33 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT); 39 $reader = new XMLReader(); 47 //$reader->setParserProperty(XMLReader::DEFAULTATTRS, true); 48 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT); 53 $reader = new XMLReader(); 55 $reader->setParserProperty(XMLReader::DEFAULTATTRS, true); [all …]
|
H A D | 005.phpt | 2 XMLReader: libxml2 XML Reader, parser property set/get 11 $reader = new XMLReader(); 16 $a = $reader->setParserProperty(XMLReader::LOADDTD, false); 17 $b = $reader->getParserProperty(XMLReader::LOADDTD); 23 $a = $reader->setParserProperty(XMLReader::SUBST_ENTITIES, true); 24 $b = $reader->getParserProperty(XMLReader::SUBST_ENTITIES);
|
H A D | bug73246.phpt | 2 Bug #73246 (XMLReader: encoding length not checked) 7 $reader = new XMLReader(); 19 XMLReader::fromStream(fopen('php://memory', 'r'), encoding: "UTF\0-8"); 25 XMLReader::open(): Argument #2 ($encoding) must not contain any null bytes 26 XMLReader::XML(): Argument #2 ($encoding) must not contain any null bytes 27 XMLReader::fromStream(): Argument #2 ($encoding) must not contain any null bytes
|
H A D | virtual_properties.phpt | 8 $rc = new ReflectionClass(XMLReader::class); 13 var_dump($prop->getRawValue(new XMLReader)); 14 var_dump($prop->getValue(new XMLReader)); 16 $reader = XMLReader::XML("<root>hi</root>"); 31 \XMLReader::__set_state(array(
|
H A D | setSchema_error.phpt | 2 XMLReader: setSchema Error 8 $reader = new XMLReader(); 16 $reader = new XMLReader(); 24 $reader = new XMLReader(); 31 $reader = new XMLReader(); 40 XMLReader::setSchema(): Argument #1 ($filename) must not be empty
|
H A D | expand_error.phpt | 2 XMLReader: Expand Error 7 <?php $reader = new XMLReader(); 16 $reader = new XMLReader(); 26 $reader = new XMLReader(); 34 Warning: XMLReader::expand(): An Error Occurred while expanding in %s on line %d
|
H A D | bug64230.phpt | 2 Bug #64230 (XMLReader does not suppress errors) 19 $x = new XMLReader; 28 $x = new XMLReader; 43 Warning: XMLReader::read(): %s: parser error : Specification mandate%A value for attribute att in %… 45 Warning: XMLReader::read(): <root att/> in %s on line %d 47 Warning: XMLReader::read(): ^ in %s on line %d
|
H A D | 002.phpt | 2 XMLReader: libxml2 XML Reader, file data 12 $reader = new XMLReader(); 19 $reader = new XMLReader(); 32 $reader = new XMLReader(); 39 XMLReader::open(): Argument #1 ($uri) must not be empty
|
H A D | bug81521.phpt | 2 Bug #81521: XMLReader::getParserProperty may throw with a valid property 7 $reader = new XMLReader(); 9 var_dump($reader->setParserProperty(XMLReader::LOADDTD, 1)); 14 var_dump($reader->getParserProperty(XMLReader::LOADDTD));
|
H A D | invalid_encoding.phpt | 7 $reader = new XMLReader(); 16 XMLReader::fromStream($h, encoding: "does not exist"); 29 XMLReader::open(): Argument #2 ($encoding) must be a valid character encoding 30 XMLReader::fromStream(): Argument #2 ($encoding) must be a valid character encoding 31 XMLReader::XML(): Argument #2 ($encoding) must be a valid character encoding
|
H A D | 001.phpt | 2 XMLReader: libxml2 XML Reader, string data 11 $reader = new XMLReader(); 19 $reader = new XMLReader(); 31 XMLReader::XML(): Argument #1 ($source) must not be empty
|
H A D | bug74457.phpt | 2 XMLReader: Bug #74457 Wrong reflection on XMLReader::expand 7 $rm = new ReflectionMethod(XMLReader::class, 'expand');
|
H A D | 011.phpt | 2 XMLReader: libxml2 XML Reader, string data 6 <?php $reader = new XMLReader(); 15 $reader = new XMLReader(); 23 $reader = new XMLReader();
|
H A D | 007.phpt | 2 XMLReader: libxml2 XML Reader, setRelaxNGSchema 13 $reader = new XMLReader(); 28 $reader = new XMLReader(); 42 $reader = new XMLReader(); 56 XMLReader::setRelaxNGSchema(): Argument #1 ($filename) must not be empty
|
H A D | fromStream_legit_usage.phpt | 2 XMLReader::fromStream() - legit usage 11 $reader = XMLReader::fromStream($h, encoding: "UTF-8"); 14 case XMLReader::ELEMENT: 17 case XMLReader::COMMENT:
|
H A D | open_error.phpt | 2 XMLReader: open error 7 $reader = new XMLReader(); 12 Warning: XMLReader::open(): Unable to open source data in %s on line %d
|
H A D | fromStream_broken_stream.phpt | 2 XMLReader::fromStream() - broken stream 11 $reader = XMLReader::fromStream($h, encoding: "UTF-8"); 16 case XMLReader::ELEMENT: 19 case XMLReader::COMMENT:
|
H A D | setParserProperty_error.phpt | 2 XMLReader: setParserProperty Error 11 $reader = new XMLReader(); 21 XMLReader::setParserProperty(): Argument #1 ($property) must be a valid parser property
|
H A D | gh14183.phpt | 2 GH-14183 (XMLReader::open() can't be overridden) 7 class MyXMLReader extends XMLReader 9 …public static function open(string $uri, ?string $encoding = null, int $flags = 0): bool|\XMLReader
|
H A D | bug51936.phpt | 2 Bug #51936 (Crash with clone XMLReader) 9 $xmlreader = new XMLReader(); 20 Fatal error: Uncaught Error: Trying to clone an uncloneable object of class XMLReader in %s:%d
|
H A D | static.phpt | 2 Calling XMLReader::open() and ::XML() statically 13 $reader = XMLReader::open($filename); 18 $reader = XMLReader::XML($xmlstring);
|
H A D | var_dump.phpt | 2 XMLReader - var_dump 7 $reader = XMLReader::fromString("<root>hi</root>"); 13 object(XMLReader)#%d (14) {
|
H A D | fromUri_custom_constructor.phpt | 2 XMLReader::fromUri() - custom constructor 7 class CustomXMLReader extends XMLReader { 21 $reader = XMLReader::fromUri($filename);
|
Completed in 17 milliseconds
123