473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

php4 end of life

How long will PHP4 be supported ? When is PHP4 end of life scheduled ?

DG

Feb 17 '07 #1
12 2268
Drazen Gemic schrieb:
How long will PHP4 be supported ? When is PHP4 end of life scheduled ?
Two answers:

1. As of yet no official end of life for PHP4 has been announced. For
the time being security fixes will be released for PHP4 as well as PHP5.
This is due to the widespread use of PHP4 installations.

2. PHP4 has already reached its end of life because no new features will
be available for the PHP4 branch. PHP5 is out already two and a half
years and it is recommended that ALL developers switch to PHP5.

And remember: It's a myth that PHP5 is incompatible to PHP4. There a far
more compatibility issues between 4.3 and 4.4 than between 4.4 and the
5.x versions.
OLLi
Feb 18 '07 #2
Two answers:
And remember: It's a myth that PHP5 is incompatible to PHP4. There a far
more compatibility issues between 4.3 and 4.4 than between 4.4 and the
5.x versions.
I don't agree. If $a and $b are arrays or objects, then
$a=$b; produces different results in PHP5 and PHP4 respectively.

DG

Feb 18 '07 #3
Rik
On Sun, 18 Feb 2007 17:10:03 +0100, Drazen Gemic <tr*******@yahoo.com
wrote:
>Two answers:
And remember: It's a myth that PHP5 is incompatible to PHP4. There a far
more compatibility issues between 4.3 and 4.4 than between 4.4 and the
5.x versions.

I don't agree. If $a and $b are arrays or objects, then
$a=$b; produces different results in PHP5 and PHP4 respectively.
Arrays the same, objects are by default passed by reference indeed.
--
Rik Wasmus
Feb 18 '07 #4
Drazen Gemic kirjoitti:
>Two answers:
And remember: It's a myth that PHP5 is incompatible to PHP4. There a far
more compatibility issues between 4.3 and 4.4 than between 4.4 and the
5.x versions.

I don't agree. If $a and $b are arrays or objects, then
$a=$b; produces different results in PHP5 and PHP4 respectively.
Oliver didn't claim that there are *no* incompatibility issues between 4
and 5 because there are and everybody knows that. All he meant was that
there are *less* of them between 4 and 5 than between 4.3 and 4.4.

--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö
sp**@outolempi.net | Gedoon-S @ IRCnet | rot13(xv***@bhgbyrzcv.arg)
Feb 18 '07 #5
On Feb 18, 6:01 pm, Kimmo Laine <s...@outolempi.netwrote:
Oliver didn't claim that there are *no* incompatibility issues between 4
and 5 because there are and everybody knows that. All he meant was that
there are *less* of them between 4 and 5 than between 4.3 and 4.4.
Well, he also said that incompatibility is a myth. But, that was
not the question, anyway. Since we are chatting, I'll reveal why I am
asking it. It is a strange story, indeed.

I have a customer that refuses to upgrade application in a way that it
could
handle past years. They are cloning the database and the application
code and
use it as archive. Database name, username and password are defined in
a single
file, which makes that easy. To make things worse, archived versions
are mutually similar,
but not identical. They probably think that the solution is
cheap......

What am I trying to explain them is that they will have to upgrade
someday,
and I am not willing to upgrade unknown number of versions.

DG

Feb 18 '07 #6
Drazen Gemic wrote:
On Feb 18, 6:01 pm, Kimmo Laine <s...@outolempi.netwrote:
>Oliver didn't claim that there are *no* incompatibility issues between 4
and 5 because there are and everybody knows that. All he meant was that
there are *less* of them between 4 and 5 than between 4.3 and 4.4.

Well, he also said that incompatibility is a myth. But, that was
not the question, anyway. Since we are chatting, I'll reveal why I am
asking it. It is a strange story, indeed.

I have a customer that refuses to upgrade application in a way that it
could
handle past years. They are cloning the database and the application
code and
use it as archive. Database name, username and password are defined in
a single
file, which makes that easy. To make things worse, archived versions
are mutually similar,
but not identical. They probably think that the solution is
cheap......

What am I trying to explain them is that they will have to upgrade
someday,
and I am not willing to upgrade unknown number of versions.

DG
People who refuse to update are PITA's. The good thing is eventually
they will suffer from their stubbornness and stupidity. The bad thing is
often consultants get taken down with it.

The secret of being a successful is to make your recommendations - then
distance your self from their stupidity/stubbornness. And when they
suffer because of their decisions, you can become the hero by bailing
them out.

But trying to argue with them because of their stupidity/stubbornness is
a losing proposition from the start.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Feb 19 '07 #7
But trying to argue with them because of their stupidity/stubbornness is
a losing proposition from the start.
I agree, no use trying to argue. I am going to offer them a creation
of spreadsheet
(Excel) document with the most important data. They will probably be
fine with that,
and probably willing to pay for it.

DG

Feb 19 '07 #8
Kimmo Laine schrieb:
Oliver didn't claim that there are *no* incompatibility issues between 4
and 5 because there are and everybody knows that. All he meant was that
there are *less* of them between 4 and 5 than between 4.3 and 4.4.
Exactly. The biggest chance in PHP regarding compatibility issues was
the bug fix that caused the "only variables can be passed by reference"
error messages. And this fix was deployed on PHP4 (4.4.0 I think) as
well as PHP5 (5.0.5 I think), causing a huge amount of applications to
break. People started to shout at the PHP devs to revert this change
because they didn't want to hear that this was the fix of a nasty bug
causing memory leaks AND they didn't realize that the previous
implementation could cause their applications to produce unexpected
results anytime.

In fact, getting your application past this problem i usually more work
than making it compatible with PHP5 afterwards. If you upgraded to 5.0.0
from 4.3.x than the same work arises when upgrading to 5.0.5 inside PHP5
but this problems are NOT PHP5 SPECIFIC.

As for the change from passing references instead of copies when
assigning objects: This is almost never a problem because if your
application used & to create references then this code works without
changes (with suboptimal speed but it works). Only if you ABSOLUTELY
depend on the two being independent instances after the assignment then
you run into problems.

OLLi
Feb 20 '07 #9
Drazen Gemic schrieb:
How long will PHP4 be supported ? When is PHP4 end of life scheduled ?
As a "barometer" of things to come you can use the nexen.net statistics
about the adoption of the different PHP versions:

http://www.nexen.net/chiffres_cles/phpversion/

You can see two things (Jan 2007):

1. PHP4 is still available on 85% of the
servers where PHP5 only reaches 14%.

2. PHP4 is declining, PHP5 is rising,
and both speeds are increasing.

Another point could be the figures for the downloads of the different
versions on the php.net mirrors. I don't know a source for them but the
PHP devs might think of an end-of-life for PHP4 when the count for PHP4
downloads per month sinks below a certain level.

OLLi
Feb 20 '07 #10
As for the change from passing references instead of copies when
assigning objects: This is almost never a problem because if your
application used & to create references then this code works without
changes (with suboptimal speed but it works). Only if you ABSOLUTELY
depend on the two being independent instances after the assignment then
you run into problems.
I am very well aware of references and I used '=' to intentionaly
clone objects
(class instances). In fact, not clone, but make deep copies. I was
creating new rows
of the report and putting them into associative array. It does not
work any more.

I don't mind, things need to move ahead, and PHP5 is important
improvement.
The problem is my customer, as I explained

DG
Feb 23 '07 #11
Rik wrote:
On Sun, 18 Feb 2007 17:10:03 +0100, Drazen Gemic <tr*******@yahoo.com>
wrote:
>>Two answers:
And remember: It's a myth that PHP5 is incompatible to PHP4. There a far
more compatibility issues between 4.3 and 4.4 than between 4.4 and the
5.x versions.

I don't agree. If $a and $b are arrays or objects, then
$a=$b; produces different results in PHP5 and PHP4 respectively.
Can anyone tell me if this is still possible in PHP5?

$VarName = "testdata";
$$VarName = "this is the test data";
echo $testdata;
Output: this is the test data

The double $$ thing?
ke*****@yahoo.com
Feb 23 '07 #12
Ken Williams wrote:
Rik wrote:
>On Sun, 18 Feb 2007 17:10:03 +0100, Drazen Gemic <tr*******@yahoo.com>
wrote:
>>>Two answers:
And remember: It's a myth that PHP5 is incompatible to PHP4. There a
far
more compatibility issues between 4.3 and 4.4 than between 4.4 and the
5.x versions.
I don't agree. If $a and $b are arrays or objects, then
$a=$b; produces different results in PHP5 and PHP4 respectively.

Can anyone tell me if this is still possible in PHP5?

$VarName = "testdata";
$$VarName = "this is the test data";
echo $testdata;
Output: this is the test data

The double $$ thing?
ke*****@yahoo.com
Yes, and it is documented to work that way.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Feb 24 '07 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nisha_tm | last post by:
Hello: I have a form in which I have checkboxes. Right now, I wrote the form's html and the php4 script. I use associative arrays in the form to capture the checkboxes that are checked. My...
0
by: Klaus Boehmer | last post by:
Hello, I'm trying to install gd2 with gif-support as an extension with php4. I compiled the patched version of gd2 - fine. I compiled php4 with gd=shared - fine. I installed it and restarted...
1
by: Erik | last post by:
I understand, that PHP4 has a MySQL client built in. I was warned, that this client does not support the MySQL 4.1.1 system, which I installed on my RH9 box end that I need to install that version...
5
by: Tim Tyler | last post by:
I'm sure this is a FAQ - but I could not find a coherent statement of the answer: Some of my clients want PHP4. Other ones want PHP5. Can I run both PHP4 and PHP5 under the same instance of...
0
by: Dave Pham | last post by:
I just cleaned my comp, and I am trying to re-config my webserver... I am trying to setup apache 2 so it runs both php4 and php5, I also have two instances of mysql running. I know this can be...
2
by: Stefan Huber | last post by:
Hi I've got a really strange problem, and can't find out why it's not working as intended. in order to use php4 and 5 together on a webserver and the requirement for running as different...
3
by: doctorhardik | last post by:
hai all i am try configure php4.3.9 on my FC-3 machine. and my mysql database version 5.0.1, in phpinfo file it show mysql but when i run php -v command it show error like
8
by: FFMG | last post by:
Hi, I am slowly moving my code to php5. But I would like to make it backward compatible in case something bad happens, (and to make sure I understand what the changes are). The way the...
3
by: vmethod82 | last post by:
I have a couple accounts through godaddy.com and they can't tech support it because it's a custom script. But on one account (i'm assuming its running php4) the script works fine, on the other...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.