[TYPO3-core] RFC #16574: Bug/Cleanup: PHP notices from XCLASS inclusions
Susanne Moog
typo3 at susannemoog.de
Fri Nov 26 12:54:38 CET 2010
Hey,
This is an SVN patch request.
Type: bug / cleanup
Bugtracker references:
http://bugs.typo3.org/view.php?id=16574
Branches:
trunk
Problem:
The default XCLASS inclusion generates PHP notices as it uses
$TYPO3_CONF_VARS and tries to access undefined array indexes.
Solution:
Fix by using $GLOBALS['TYPO3_CONF_VARS'] and isset()
Notes / How to test:
Apply the patch and see that everything including XClasses still works.
I additionally checked for syntax errors by using "find ./ -name '*.php'
| xargs -I% /usr/bin/php -l %"
Best regards,
Susanne
--
What's worth the price is always worth the fight
Every second counts 'cause there's no second try
TYPO3 Core Team Member
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16574_v1.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101126/cebaf2d6/attachment-0001.txt>
More information about the TYPO3-team-core
mailing list