Hi, I'm about to start adding support for platform-specific stuff in the PEAR installer (prebuilt extensions, .bat/.cmd scripts for windows, shell scripts for unix and so on). To do this I need a standard way of describing the system PHP runs on. I guess the important bits of information are:
* CPU (i386, usparc etc.) * Operating System (windows, linux, solaris etc.) * Extra information such as OS version or libc version The general format could be "CPU-OS[-EXTRA]", for example: "i386-windows-nt" "nt" for nt/2k/xp, "9x" for 95/98/me "i386-linux-glibc21" Which glibc versions are incompatible? Anyone? "usparc3-solaris" "powerpc-macos-x" Is there a need to distinguish between different MacOS X revisions? "powerpc-aix-4.3" "hppa-hpux-10" "mips-irix-6.4" "m68k-linux-amiga" it never dies, does it? The trickiest part here seems to be detecting libc version on Linux. Or is it enough to try reading symlinks in /lib? Sterling, do you still have the code from your old OS class lying around? - Stig -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php