Steps to replicate the issue (include links if applicable):
Create a simple xml file "somefile.xml" in some directory and run the following code snipplet:
<?php print date('Y-m-d H:i:s', time()) . " Start Test XMLReader\n"; $xmlFile = new XMLReader(); $xmlFile->open("somefile.xml"); $didRead = 0; while($xmlFile->read()) { ++ $didRead; } $xmlFile->close(); print date('Y-m-d H:i:s', time()) . " End Test XMLReader, did read $didRead items\n"; ?>
What happens?:
With php 7.3 (the default on tools-sgebastion-11) it runs fine
With php 8.2.7 (the version which is provided by "webservice php8.2 shell") it crashes
What should have happened instead?:
No crash ;^)
Software version (skip for WMF-hosted wikis like Wikipedia):
This php version causes a crash with Segmentation fault
php -v
PHP 8.2.7 (cli) (built: Jun 9 2023 19:37:27) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies