PHP 5 Compatibility

Posted in: Tasks Pro™, Development

At the moment, I don’t think any of my PHP software will run on PHP 5. This isn’t that big a deal as most ISPs don’t even offer PHP 5 as an option (and won’t for a little while), but it is something I plan to work on. I’d read so much about the backward compatibility of PHP 5 with PHP 4 scripts, I foolishly expected it to work. ;)

One thing that I discovered in my brief testing: from within a class, you can no longer replace an object entirely. I have code in a class like this:

$this = foo($this);

that now throws a fatal error. I used this syntax with functions that would translate the encoding of a task, user, group, etc. and I’ll have to rewrite those. When I commented those lines out, things failed in a different way, so I’ll need to spend some time with it.

I don’t plan to support PHP 5 in the next release of Tasks Pro™ or Tasks, but I’d like to add PHP 5 support in a subsequent release.

Popularity: 3% [?]

Posted August 11th, 2004 @ 3:54 PM

3 Replies

  1. Geof adds this Comment:

    How many object changes will this cause you? :(

    August 11th, 2004 at 4:51 pm

  2. Alex adds this Comment:

    Well, I’m not sure yet. I think the objects themselves will be fine, just some of the methods and ways I interact with them need to change.

    August 11th, 2004 at 4:52 pm

  3. alexking.org: Blog adds this Trackback:

    PHP 5 Compatibility
    In the last two weeks or so, I’ve started hearing from more and more people who are running PHP 5. I even heard from some people whose ISP has upgraded to PHP 5. I’m amazed and baffled that ISP are doing this already.

    I had planned to wait unt…

    September 14th, 2004 at 1:14 pm

Add a Comment

Please note: Use of a non-personal web site or blog in the field below and/or comments that are off-topic, personal attacks, or support requests will likely be removed at my discretion.

Note: This post is over 4 years old. You may want to check later in this blog to see if there is new information relevant to your comment.

Scout as Color Commentator » « Photos 4.1

About This Site

This is the personal web site of Alex King, a web developer in Denver, Colorado USA. More...


Crowd Favorite

Crowd Favorite is my software and web development business.

We build web applications, design and develop custom WordPress themes and plugins, and build custom sites using WordPress as a CMS.


I also have a tumblog that aggregates my online content from other services (Twitter, Flickr, del.icio.us. etc.).

America

Ads