#37712 [NEW]: Calling is_array on ArrayObject problem (even when casting)

From: Date: Tue, 06 Jun 2006 10:45:31 +0000
Subject: #37712 [NEW]: Calling is_array on ArrayObject problem (even when casting)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98084@lists.php.net to get a copy of this message
From: ante at novisplet dot com Operating system: Win XP PHP version: 5.1.4 PHP Bug Type: SimpleXML related Bug description: Calling is_array on ArrayObject problem (even when casting) 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 bug report at http://bugs.php.net/?id=37712&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37712&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37712&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37712&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37712&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37712&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37712&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37712&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37712&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37712&r=support Expected behavior: http://bugs.php.net/fix.php?id=37712&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37712&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37712&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37712&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37712&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37712&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37712&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37712&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37712&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37712&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37712&r=mysqlcfg

« previous php.bugs (#98084) next »