mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
Fix parameter list generation in build/gen_stub.php (#16764)
[ci skip]
<variablelist> is not valid within <simpara>, this should not be wrapped
at all in a paragraph.
Regressed in 32789c0047
.
This commit is contained in:
parent
a087442259
commit
7202d119cd
@ -1813,12 +1813,11 @@ ENDCOMMENT
|
||||
$parametersRefSec->appendChild($noParamEntity);
|
||||
return $parametersRefSec;
|
||||
} else {
|
||||
$parametersPara = $doc->createElement('simpara');
|
||||
$parametersRefSec->appendChild($parametersPara);
|
||||
$parametersContainer = $doc->createDocumentFragment();
|
||||
|
||||
$parametersPara->appendChild(new DOMText("\n "));
|
||||
$parametersContainer->appendChild(new DOMText("\n "));
|
||||
$parametersList = $doc->createElement('variablelist');
|
||||
$parametersPara->appendChild($parametersList);
|
||||
$parametersContainer->appendChild($parametersList);
|
||||
|
||||
/*
|
||||
<varlistentry>
|
||||
@ -1863,7 +1862,8 @@ ENDCOMMENT
|
||||
}
|
||||
$parametersList->appendChild(new DOMText("\n "));
|
||||
}
|
||||
$parametersPara->appendChild(new DOMText("\n "));
|
||||
$parametersContainer->appendChild(new DOMText("\n "));
|
||||
$parametersRefSec->appendChild($parametersContainer);
|
||||
$parametersRefSec->appendChild(new DOMText("\n "));
|
||||
return $parametersRefSec;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user