Keith Devens .com |
Sunday, September 7, 2008 | ![]() |
| Linux is only free if your time has no value – Jamie Zawinski | ||
|
| ← Fun chess game! | Spam → |

Tom Sommer (http://blog.dreamcoder.dk) wrote:
Keith (http://keithdevens.com/) wrote:
Hosting Matters. There's a button down at the bottom 
They must not care about BC since they upgrade from PHP4 to PHP5 in the blink of an eye
Care about BC? What's BC? Backward compatibility? PHP 5 is mostly backward compatible. But, who says they'll upgrade in the blink of an eye? I expect them to wait until at least one patch release is out before upgrading.
Alexander (http://shelter.nu/) wrote:
Dang, register_ns() has been taken out in PHP 5's simpleXML as compared to RC3. What the ... ?
Keith (http://keithdevens.com/) wrote:
What, so SimpleXML doesn't handle namespaces now?? How do you know that the function has been removed?
Alexander (http://shelter.nu/) wrote:
Well, I had http://shelter.nu/blog-094.html working in both RC 2 and 3, and now I just installed 5.0.0 and I got errors that the method didn't exist. Looking up php.net/simplexml yeilds nothing (in fact, register_ns isn't found at all at the php.net site), and the articles I dug that out from were from when RC2 got released. sigh
It looks like it doesn't handle namespaces. Not calling register_ns() for the namespaces in question yields no result from simpleXML at all. I've searched around, but I can't find anything apart from people saying "use register_ns()". Duh.
Keith (http://keithdevens.com/) wrote:
registerNamespace() has been added to SimpleXML and will be in 5.1: http://blog.bitflux.ch/p1746.html
It's pretty silly that SimpleXML doesn't handle namespaces. It's especially silly because SimpleXML was one of the big touted new features of PHP 5, yet it seems like it's mostly useless for much (most?) XML out there.
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):
Generated in about 0.19s.
(Used 8 db queries)

Which host is that? They must not care about BC since they upgrade from PHP4 to PHP5 in the blink of an eye
Just wondering.