Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Don't throw exceptions in __toString #48

Closed
Daniel15 opened this issue Nov 22, 2013 · 1 comment
Closed

Don't throw exceptions in __toString #48

Daniel15 opened this issue Nov 22, 2013 · 1 comment

Comments

@Daniel15
Copy link
Member

:xhp:raw-pcdata-element::stringify() can throw an exception, which is not allowed by PHP as it can occur in a __toString call (renderChild method). This is enforced by PHP 5.5 which will throw a fatal error if you try to throw an exception in a __toString call (effectively getting rid of all the exception information 👎)

@Swahvay
Copy link
Contributor

Swahvay commented Apr 2, 2014

aced031

@Swahvay Swahvay closed this as completed Apr 2, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants