#88365<style> element in fluid templates breaks output since PHP 7.3.5
Description
With PHP 7.3.5 the frontend and mail output is broken and a php warning in the backend log is shown, if the <style> element is used in fluid templates or layouts.</p> <p>I use the <style> element in some plugin fluid templates (ext:powermail), with PHP 7.3.5 the frontend output is broken.</p> <p>I also use the <style> element in some plugin fluid layouts for mails (ext:powermail), with PHP 7.3.5 the mail output is broken. After each form submit, the following two warnings are shown in the backend log:</p> <p>
Core: Error handler (FE): PHP Warning: Invalid argument supplied for foreach() in /<REMOVED>/vendor/typo3fluid/fluid/src/Core/Parser/TemplateParser.php line 591 Core: Error handler (FE): PHP Warning: Invalid argument supplied for foreach() in /<REMOVED>/vendor/typo3fluid/fluid/src/Core/Parser/TemplateProcessor/NamespaceDetectionTemplateProcessor.php line 180</p> <p>Temporary fix: Moving styles from the <style> element in the fluid templates to a external file and remove the <style> rules to (only) inline styles in the fluid mail layouts.</p> <p>I don’t think this is a issue of ext:powermail, because this issue: <a href="https://github.com/TYPO3/Fluid/issues/452" target="_blank" rel="noreferrer">https://github.com/TYPO3/Fluid/issues/452</a></p></style>
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.