[TYPO3-core] RFC #10497: Mark t3lib_div::makeInstanceClassName() as deprecated

Michael Stucki michael at typo3.org
Tue Mar 3 15:44:42 CET 2009


Hi folks,

Niels Pardon schrieb:
> Ingo Renner schrieb:
>> In case you didn't understand the issue: Please see my responses to
>> Dmitry. Extensions will _at the earliest_ break with 4.5. I wouldn't
>> care for extension authors that didn't notice the deprecation warnings
>> until then...
> 
> I noticed that there is a depreciation warning issued every time a call
> to a deprecated method is made.
> 
> I think as soon as this function is marked deprecate and a warning is
> issued there will be a lot of user requests who are asking what this
> warning is about and how to get rid of it.

I didn't notice that 99% of this thread is about the deprecation
warnings when I sent my first answer.

I agree that the warnings are disturbing and they should not have been
committed until the feature is finished (= error handling will catch the
errors).

But it is really too simple to solve it: Just disable the lines until
error handling is implemented by Ingo (he's currently working on it).

That's what I just did now, so hopefully we can now focus on the main
part of this RFC.

> The only way to avoid this for an extension author is to have two
> branches of his extensions. One which uses the way in < 4.3 and one
> which uses the way in >= 4.3.
> 
> I would appreciate a two phase depreciation solution.
> 
> 1. Mark the function deprecated in 4.3.
> 2. Issue the warning in 4.4.
> 
> If I see this correctly this is the same as it is done in PHP. First
> functions get deprecated "by convention" and then in a following version
> calls to this functions issue a warning.

Developers should already see the warnings in 4.3, but always and only
developers (= devIPmask). Waiting for 4.4 with the warning is not a good
alternative therefore.

Bottomline: For now the warnings are gone.

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/


More information about the TYPO3-team-core mailing list