Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/simplexml/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/simplexml/tests/sxe_005.phpt |
--TEST-- SPL: SimpleXMLIterator and overriden count() --SKIPIF-- <?php if (!extension_loaded('simplexml')) print 'skip'; if (!extension_loaded("libxml")) print "skip LibXML not present"; ?> --FILE-- <?php $xml =<<<EOF <?xml version='1.0'?> <sxe> <elem1/> <elem2/> <elem2/> </sxe> EOF; class SXETest extends SimpleXMLIterator { function count() { echo __METHOD__ . "\n"; return parent::count(); } } $sxe = new SXETest((binary)$xml); var_dump(count($sxe)); var_dump(count($sxe->elem1)); var_dump(count($sxe->elem2)); ?> ===DONE=== --EXPECT-- SXETest::count int(3) SXETest::count int(1) SXETest::count int(2) ===DONE===
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare