Bug #71949 [Opn->Nab]: simplexml_load_string() function not exists

From: Date: Sun, 03 Apr 2016 09:46:42 +0000
Subject: Bug #71949 [Opn->Nab]: simplexml_load_string() function not exists
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200317@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71949&edit=1

 ID:                 71949
 Updated by:         requinix@php.net
 Reported by:        andris dot petrams at gmail dot com
 Summary:            simplexml_load_string() function not exists
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            SimpleXML related
 Operating System:   Linux UBUNTU 15.10 x86_64
 PHP Version:        7.0.5
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Install php7.0-xml.


Previous Comments:
------------------------------------------------------------------------
[2016-04-03 09:38:46] andris dot petrams at gmail dot com

Description:
------------
---
From manual page: http://www.php.net/function.simplexml-load-string
---
$xml = simplexml_load_string("<root><test>TEST</test></root>");



Test script:
---------------
if(function_exists('simplexml_load_string')){
$xml = simplexml_load_string("<root><test>TEST</test></root>");
print_r($xml);
}
else {
echo "function not exists";
}

Expected result:
----------------
SimpleXMLElement Object
(
    [test] => TEST
)

Actual result:
--------------
function not exists


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=71949&edit=1


Thread (2 messages)

« previous php.bugs (#200317) next »