RE: [PHP] PHP3 vs PHP4 -- anybody know the numbers?
| From: | Don Read | Date: | Fri, 28 Sep 2001 02:39:08 +0000 |
| Subject: | RE: [PHP] PHP3 vs PHP4 -- anybody know the numbers? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69105@lists.php.net to get a copy of this message | ||
On 27-Sep-2001 Joel Ricker wrote:
>
> I'm preparing a script to release on some of the script directories and had
> a quick question about PHP3 and PHP4 usage. Does anyone know roughly how
> many more people are still using PHP3 or have switched to PHP4. What I've
> done since I'm using objects and also PHP3 is to explicity set class names
> since commands like get_class() isn't available in PHP4, plus a few other
> things that I've had to hard code to get around some things that PHP4 has
> that I wanted in my PHP3 code.
>
> The reason I wanted to know was, should I in the code I release, keep it in
> PHP3 functionality or switch it up to PHP4-only routines? In other words,
> are there enough people besides myself using PHP3 to both making it PHP3
> compatible? Any advice?
>
I've a couple of clients still on PHP3 (2 of 5), for them i write an include:
if (! function_exists('array_pop'))
include('libphp4.php3');
libphp4.php3 fakes the missing functions where possible .
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.