Skip to content

core dump triggered by setRelaxNGSchema #19741

@chongwick

Description

@chongwick

Description

The following code:

<?php
$v_137483 = new XMLReader();
$v_137484 = '<?xml version="1.0" encoding="UTF-8"?>\n<chapter xmlns="http://docbook.org/ns/docbook" version="5.0">\n<title>Test Chapter</title>\n<para>\nThis is a paragraph in the test chapter. It is unremarkable in\nevery regard. This is a paragraph in the test chapter. It is\nunremarkable in every regard. This is a paragraph in the test\nchapter. It is unremarkable in every regard.\n</para>\n<paar>\n<emphasis role="bold">This</emphasis> paragraph contains\n<emphasis>some <emphasis>emphasized</emphasis> text</emphasis>\n1and a <superscript>super</superscript>script\nand a <subscript>sub</subscript>script.\n</para>\n<para>\nThis is a paragraph in the test chapter. It is unremarkable in\nevery regard. This is a paragraph in the test chapter. It is\nunremarkable in every regard. This is a paragraph in the test\nchapter. It is unremarkable in every regard.\n</para>\n</chapter>';
$v_137485 = $v_137483->xml($v_137484,);
$v_137490 = get_resources();
$v_137491 = end($v_137490,);
$v_137492 = fclose($v_137491,);
$v_137487 = $v_137483->setRelaxNGSchema($v_137492,);

Resulted in this output:

Aborted (core dumped)

PHP Version

nightly

Operating System

ubuntu 20.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions