KBD

Keith Devens .com

Friday, July 30, 2010 Flag waving
Make the most of your regrets; never smother your sorrow, but tend and cherish it till it comes to have... – Henry David Thoreau
← Fun chess game!Spam →

Daily link icon Tuesday, July 13, 2004

PHP 5 released!

We all had a feeling it was coming really soon now, what with the last-and-probably-final release candidate being on June 8, as well as because of some other intangible things, but PHP 5 has been released.

I can't wait until my host installs it so I can play Smiley

Update: Check out Zend's PHP 5 center, and this in depth look at what's new in the Zend Engine II (which powers PHP 5).

PHP is a much different language this time around. I just noticed for the first time that it has Python-like overloading features. Also check out this stuff about PHP 5's improved XML support.

Update: Here's a really detailed article on Migrating from PHP 4 to PHP 5.

← Fun chess game!Spam →

Comments XML gif

Tom Sommer (http://blog.dreamcoder.dk) wrote:

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

Just wondering.

∴ Tom Sommer | 13-Jul-2004 8:06pm est | http://blog.dreamcoder.dk | #4992

Keith (http://keithdevens.com/) wrote:

Hosting Matters. There's a button down at the bottom Smiley

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.

Keith | 13-Jul-2004 8:21pm est | http://keithdevens.com/ | #4993

Alexander (http://shelter.nu/) wrote:

Dang, register_ns() has been taken out in PHP 5's simpleXML as compared to RC3. What the ... ?

∴ Alexander | 13-Jul-2004 11:04pm est | http://shelter.nu/ | #4994

Keith (http://keithdevens.com/) wrote:

What, so SimpleXML doesn't handle namespaces now?? How do you know that the function has been removed?

Keith | 14-Jul-2004 11:58am est | http://keithdevens.com/ | #4996

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.

∴ Alexander | 15-Jul-2004 5:42am est | http://shelter.nu/ | #5004

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.

Keith | 25-Jul-2004 1:18pm est | http://keithdevens.com/ | #5083

Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

July 2010
SunMonTueWedThuFriSat
 123
45678910
11121314151617
18192021222324
25262728293031



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 2 posts

Recent comments XML

DTerm: A command line anywhere and everywhere

They wrote back. It turns out that,​when I launched it a second time, I​was...

Revence: Jul 26, 2:28am

Minimum Wage Increase Leads to Higher Teen Unemployment Rate - WSJ.com

Sorry, I don't believe it.  My son​was working as a dishwasher, making​$10/...

Bryan Price: Jul 25, 2:50pm

Generated in about 0.236s.

(Used 8 db queries)