Home
last modified time | relevance | path

Searched refs:XMLReader (Results 1 – 25 of 62) sorted by relevance

123

/php-src/ext/xmlreader/
H A Dphp_xmlreader_arginfo.h113 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 D013.phpt2 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 D012.phpt2 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 D005.phpt2 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 Dbug73246.phpt2 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 Dvirtual_properties.phpt8 $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 DsetSchema_error.phpt2 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 Dexpand_error.phpt2 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 Dbug64230.phpt2 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 D002.phpt2 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 Dbug81521.phpt2 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 Dinvalid_encoding.phpt7 $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 D001.phpt2 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 Dbug74457.phpt2 XMLReader: Bug #74457 Wrong reflection on XMLReader::expand
7 $rm = new ReflectionMethod(XMLReader::class, 'expand');
H A D011.phpt2 XMLReader: libxml2 XML Reader, string data
6 <?php $reader = new XMLReader();
15 $reader = new XMLReader();
23 $reader = new XMLReader();
H A D007.phpt2 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 DfromStream_legit_usage.phpt2 XMLReader::fromStream() - legit usage
11 $reader = XMLReader::fromStream($h, encoding: "UTF-8");
14 case XMLReader::ELEMENT:
17 case XMLReader::COMMENT:
H A Dopen_error.phpt2 XMLReader: open error
7 $reader = new XMLReader();
12 Warning: XMLReader::open(): Unable to open source data in %s on line %d
H A DfromStream_broken_stream.phpt2 XMLReader::fromStream() - broken stream
11 $reader = XMLReader::fromStream($h, encoding: "UTF-8");
16 case XMLReader::ELEMENT:
19 case XMLReader::COMMENT:
H A DsetParserProperty_error.phpt2 XMLReader: setParserProperty Error
11 $reader = new XMLReader();
21 XMLReader::setParserProperty(): Argument #1 ($property) must be a valid parser property
H A Dgh14183.phpt2 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 Dbug51936.phpt2 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 Dstatic.phpt2 Calling XMLReader::open() and ::XML() statically
13 $reader = XMLReader::open($filename);
18 $reader = XMLReader::XML($xmlstring);
H A Dvar_dump.phpt2 XMLReader - var_dump
7 $reader = XMLReader::fromString("<root>hi</root>");
13 object(XMLReader)#%d (14) {
H A DfromUri_custom_constructor.phpt2 XMLReader::fromUri() - custom constructor
7 class CustomXMLReader extends XMLReader {
21 $reader = XMLReader::fromUri($filename);

Completed in 17 milliseconds

123