mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
Added Dependancy check on XML - previously pear installer failed silently
This commit is contained in:
parent
4e37016cb6
commit
19b63d5f87
@ -742,6 +742,9 @@ class PEAR_Common extends PEAR
|
||||
*/
|
||||
function infoFromString($data)
|
||||
{
|
||||
require_once('PEAR/Dependency.php');
|
||||
if ($error = PEAR_Dependency::checkExtension('xml'))
|
||||
return $this->raiseError($error);
|
||||
$xp = @xml_parser_create();
|
||||
if (!$xp) {
|
||||
return $this->raiseError('Unable to create XML parser');
|
||||
|
Loading…
Reference in New Issue
Block a user