This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
24 lines
411 B
PHP
24 lines
411 B
PHP
--TEST--
|
|
Bug #51936 (Crash with clone XMLReader)
|
|
--EXTENSIONS--
|
|
xmlreader
|
|
--FILE--
|
|
<?php
|
|
echo "Test\n";
|
|
|
|
$xmlreader = new XMLReader();
|
|
$xmlreader->xml("<a><b/></a>");
|
|
|
|
$xmlreader->next();
|
|
$xmlreader2 = clone $xmlreader;
|
|
$xmlreader2->next();
|
|
?>
|
|
Done
|
|
--EXPECTF--
|
|
Test
|
|
|
|
Fatal error: Uncaught Error: Trying to clone an uncloneable object of class XMLReader in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|