Hello,

Daniel Lorch wrote:
> 
> hi,
> 
> > dirname was added to PHP 3.0a3 which was released more than 4 years ago.
> > Until a year ago it had a behaviour that Andi thought it was not correct,
> > so he fixed it for PHP 4.0.3 eventually breaking the code of people that
> > did not realize it then because they don't upgrade PHP on every minor
> > release.
> 
> > So, the point is that what he thought was just a fix, was rather a behaviour
> > change but he really didn't realize it until I reported today.
> 
> > 1) Admit that Andi did not make a wise decision then and so avoid any future
> > decisions like this.
> 
> although I completely agree with you, Manuel, your example somehow
> sounds ridiculous. It's like having someone in court room and
> " .. ADMIT IT! DID YOU EAT THE CANDY?? .. "

No, it seems you only read the first part of the phrase.

What I mean is that he made a mistake breaking backwards compatibility
of a PHP function that always behaved like that. So, he must avoid
making the same mistake.

The problem is that for many programmers is so hard to admit they make
mistakes because they think of themselves as "big shots" at programming.
If he does not admit he made a mistake here, he will keep making that
mistake over and over again.

I don't think it is a good idea to break backwards compatibility of
functions like dirname and strtok because when you attempt fix the
behaviour of long standing functions like these that worked like that
for over 4 years, you are opening a precedent that give other developers
the right to do that for any other function. I don't think anybody is
interested to open that can of worms.

Regards,
Manuel Lemos

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to