php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37712 Calling is_array on ArrayObject problem (even when casting)
Submitted: 2006-06-06 10:45 UTC Modified: 2006-06-14 01:00 UTC
From: ante at novisplet dot com Assigned:
Status: No Feedback Package: SimpleXML related
PHP Version: 5.1.4 OS: Win XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ante at novisplet dot com
New email:
PHP Version: OS:

 

 [2006-06-06 10:45 UTC] 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...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-06 10:57 UTC] tony2001@php.net
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.
 [2006-06-14 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 12:01:30 2024 UTC