Edit report at https://bugs.php.net/bug.php?id=53648&edit=1
ID: 53648
Updated by: nikic@php.net
Reported by: clicky at erebot dot net
Summary: Allow __toString() to throw exceptions
-Status: Assigned
+Status: Closed
Type: Feature/Change Request
Package: Class/Object related
PHP Version: 5.3.4
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
This has been fixed in PHP 7.4 by https://wiki.php.net/rfc/tostring_exceptions.
Previous Comments:
------------------------------------------------------------------------
[2019-02-27 17:50:57] carusogabriel@php.net
The following pull request has been associated:
Patch Name: Allow throwing from __toString()
On GitHub: https://github.com/php/php-src/pull/3887
Patch: https://github.com/php/php-src/pull/3887.patch
------------------------------------------------------------------------
[2019-02-26 18:00:47] carusogabriel@php.net
A PR was created for that https://github.com/php/php-src/pull/3887, that
will be voted as an RFC
------------------------------------------------------------------------
[2018-09-29 19:38:52] nikic@php.net
Related To: Bug #48622
------------------------------------------------------------------------
[2017-12-28 17:23:39] nikic@php.net
Related To: Bug #74830
------------------------------------------------------------------------
[2017-12-01 12:55:43] simohe at besonet dot ch
Forbidding to throw errors is a problem when generating proxy classes in doctrine.
See https://github.com/doctrine/common/issues/824
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=53648
--
Edit this bug report at https://bugs.php.net/bug.php?id=53648&edit=1