Hello Lester,
we have the same problem for functions since years, why is there suddenly
such a big problem with classes now? All new php/pecl classes will follow
one of the following rules:
- Prefix with the extension name
- Postfix with "Iterator"
- Postfix with "Exception"
that seems the same amount of protection as prefix functions with extension
name plus underscore. I don't see any problem since the above rule is in
place.
best regards
marcus
Sunday, November 5, 2006, 6:09:54 PM, you wrote:
> ( This should have been to the pigging list !!!! sorry Ilia )
> Ilia Alshanetsky wrote:
>>>> You can use old PHP too, or modify the source code, it is "open
>>>> source" after-all.
>>>
>>> Come on, that can't be the solution. Think about hosting companies for
>>> example.
>>
>> They as a rule use old versions, in fact I bet you'd be hard pressed to
>> find a big or even a medium size hosting company offering PHP 5.2 just
>> now. So you have plenty of time to fix your code.
> The main problem here Ilia is that people HAVE to fix their code JUST IN
> CASE the host updates. Some people will not even know they have a
> problem because they are using a third party application and then they
> will not know how to fix it IF their host updates.
> Since it would seem that most hosts have not even switched to PHP5
> anyway, this is probably all academic anyway, but we have been here
> before, with versions of PHP released that broke a large number of
> applications and it got to the state that host WOULD NOT update in case
> it broke something.
> DateTime is just another example of the fact that PHP has no management
> of conventions and these get changed version to version. We NEED a
> mechanism to pinch back common function names that does not break
> existing applications simply because the vast number of users have no
> knowledge that there is a problem!
> --
> Lester Caine - G8HFL
> -----------------------------
> L.S.Caine Electronic Services - http://home.lsces.co.uk
> Model Engineers Digital Workshop -
> http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
> Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php
Best regards,
Marcus