php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79021 SimpleXML not installed on 7.3 by default
Submitted: 2019-12-23 11:41 UTC Modified: 2019-12-23 13:01 UTC
From: php4fan at gmail dot com Assigned: cmb (profile)
Status: Not a bug Package: Documentation problem
PHP Version: 7.3.13 OS: debian 10
Private report: No CVE-ID: None
 [2019-12-23 11:41 UTC] php4fan at gmail dot com
Description:
------------
---
From manual page: https://php.net/simplexml.installation
---

> This extension is enabled by default.

That is BULLSHIT.
On php 7.3, it is not enabled by default.

On debian, you need to install php-xml with "apt install php-xml".


Test script:
---------------
<?php

new SimpleXMLElement('<kjsdc/>');

Expected result:
----------------
empty output

Actual result:
--------------
Fatal error: Class 'SimpleXMLElement' not found in .....

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-12-23 13:01 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2019-12-23 13:01 UTC] cmb@php.net
SimpleXML is enabled by default for the source distribution of
php.net.  We cannot document distribution specifics.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 22:01:31 2024 UTC