I just posted a couple of responses to get around this problem. Basically, php4's ext/java/config.m4 needs to be fixed to accomodate the new JDK directory structure.
Change the line (around line 69):
test -d $i/classic && AC_ADD_LIBPATH($i/classic)
to:
test -d $i/hotspot && AC_ADD_LIBPATH($i/hotspot)
test -d $i/server && AC_ADD_LIBPATH($i/server)
test -d $i/classic && AC_ADD_LIBPATH($i/classic)
and rerun ./buildconf before retrying configure/make/make install.
I'll look into making this change in CVS after I check with the code owner.