[TYPO3-core] RFC: #13697: Add possibility to retrieve extension version

Oliver Klee typo3-german-02 at oliverklee.de
Wed Mar 10 12:06:41 CET 2010


Hi again,

Oliver Klee schrieb:
> So how can we prevent the abovementioned problem, and still make the
> function work?

Maybe we can backup $_EXTKEY first. I haven't tested whether it actually
needs to be global here, either.

> From the documentation of your original code, I read that the function
> was only to be used for *installed* extensions:
> 
> +	/**
> +	 * Retrieves the version of an installed extension
> 
> And so I added the exception for cases where the function is called
> incorrectly.
> 
> Is the original comment incorrect? If so, it needs to be corrected.

BTW, I have no problem if the function is also intended for cases of not
installed extensions. The comments just should be clear about this.

In that case, I'd prefer an empty string as return value so we have
clean typing.


Oliver
-- 
Certified TYPO3 Integrator | TYPO3 Security Team Member


More information about the TYPO3-team-core mailing list