Everything
php
Learn
Community
Releases
The PHP Project
Learn
Community
Releases
The PHP Project
Home
»
Project
»
RFCs
»
Allow throwing exceptions from __toString()
»
RFC: Allow throwing exceptions from __toString()
Project Governance
Author
nikic
Target
7.4
Throwing exceptions from __toString() is currently forbidden and will result in a fatal error. This makes it dangerous to call arbitrary code inside __toString(...
Mailing List Discussions
[RFC] Allow throwing exceptions from __toString()
[VOTE] Allow throwing exceptions from __toString()
View Original
Allow exceptions from __toString() in PHP 7.4?
Overall Results
Yes
No
Yes
42 Votes (100%)
No
0 Votes (0%)
Voting Timeline
Dates based on UTC
Voting Breakdown
Yes
42 Votes (100%)
brzuchal
duncan3dc
girgias
kalle
levim
ocramius
ramsey
santiagolizardo
sergey
trowski
bwoebi
derick
galvao
kguest
mbeccati
svpernova09
sebastian
mike
ashnazg
reywob
yunosh
jhdxr
kelunik
gasolwu
salathe
stas
carusogabriel
cmb
nikic
sammyk
bishop
jasny
marcio
mariano
rtheunissen
ab
ajf
mightyuhu
danack
subjective
rasmus
didou
No
0 Votes (0%)