|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-12 23:18 UTC] svn@php.net
[2009-11-12 23:18 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 18:00:02 2025 UTC |
Description: ------------ When using ReflectionException _toString requires a string value to be returned. Earlier versions will accept integers and arrays Reproduce code: --------------- <?php $e = new Exception("message"); $exc = new ReflectionException($e); var_dump($exc->getCode()); ?> Expected result: ---------------- int(%d) Actual result: -------------- Catchable fatal error: Method Exception::__toString() must return a string value in %s on line %d