IDE needed to Hack on PHP (not with PHP)

Friday, December 1st, 2006

A piece I’m writing for IBM developerWorks has turned into the article that ate Pittsburgh. Trying to understand and document a certain class keeps leading me deeper into PHP internals, and is revealing some bugs in a certain PHP extension bundled with PHP 5.1 and later. Naturally I want to fix these.

However it’s all C code, and I haven’t done any serious C work in 15 years. (I did write some C++ about eight years ago, but this is straight C, not C++.)

What IDE are folks using on the Mac (or alternately Linux) to hack PHP itself? Xcode? Eclipse with the C development tools installed? Something else? This is just a short quick open source patch project (I hope) so I’d prefer not to pay multiple hundreds of dollars; just use the simplest, quickest thing that will get the job done.
(more…)

Upgrading PHP

Wednesday, November 29th, 2006

I’m getting ready to install PHP 5.2.0 here. Mostly I just want to try to make it link to a newer version of libxml. If it all goes pear-shaped, I’ll post a note on Cafe au Lait while I restore.
(more…)

Why I hate weak typing

Saturday, November 25th, 2006

I just wasted at least two hours hunting down a bug that turned out to be in this PHP code fragment:

      if ($reader->hasValue) {
        echo ": " + $reader->value;
      }

Do you see the bug?
(more…)

Compiling Javac

Thursday, November 16th, 2006

I downloaded the javac sources and gave them a whirl with ant on my PowerBook. No success. They wouldn’t compile. I’m not sure whether this is because I’m using a Mac or because I’m using Java 5, and they want Java 6. There seem to be several missing or incompatible classes.
(more…)

Interfaces vs. Classes

Tuesday, November 14th, 2006

Apparently XOM and JDOM aren’t the only projects to consider interfaces to be more trouble than they’re worth. I just noticed that JAXB 2.0 now uses singles classes for its generated files rather than separate interfaces and implementation classes like version 1.0 did. Given that these are generated code that should not be directly modified or extended by the programmer, this seems an obvious choice.

Estimated Complexity

Monday, November 13th, 2006

From the Apache Harmony bug tracker:

Unknown Novice Moderate Advanced Guru Needs James Gosling