#37712 [Opn->Fbk]: Calling is_array on ArrayObject problem (even when casting)
| From: | tony2001@php.net | Date: | Tue, 06 Jun 2006 10:57:40 +0000 |
| Subject: | #37712 [Opn->Fbk]: Calling is_array on ArrayObject problem (even when casting) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98085@lists.php.net to get a copy of this message | ||
ID: 37712
Updated by: tony2001@php.net
Reported By: ante at novisplet dot com
-Status: Open
+Status: Feedback
Bug Type: SimpleXML related
Operating System: Win XP
PHP Version: 5.1.4
New Comment:
Slow network connection, slow server, firewall etc. etc.
Lots of possible reasons and you didn't give us a chance to know which
exactly is the cause.
Previous Comments:
------------------------------------------------------------------------
[2006-06-06 10:45:31] ante at novisplet dot com
Description:
------------
Huh..this is a strange one....
If I want to load an XML file using
define('PATH', 'http://www.somedomain.com/');
$xml = simplexml_load_file(PATH . 'settings.xml'); print_r($xml);
it will take ages for the xml file to load...it took me 3 hours to
trace the bug in my application to simple xml...
but if I use
define('PATH', '/usr/home/path_to_domain_folder/');
$xml = simplexml_load_file(PATH . 'settings.xml'); print_r($xml);
then it will be ok....
so I'm guessing simplexml_load_file has some issues with PATH's to
file....
Reproduce code:
---------------
define('PATH', 'http://www.somedomain.com/');
$xml = simplexml_load_file(PATH . 'settings.xml'); print_r($xml);
Expected result:
----------------
quick display of results...
Actual result:
--------------
it takes about 20-30 seconds to display the xml structure...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37712&edit=1