|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-06-30 16:44 UTC] laruence@php.net
[2013-06-30 16:46 UTC] laruence@php.net
[2013-06-30 16:53 UTC] oliver at x10 dot pe
[2013-07-03 19:12 UTC] johannes@php.net
-Status: Open
+Status: Not a bug
[2013-07-03 19:12 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 07:00:01 2025 UTC |
Description: ------------ Hi, Casting $this as string inside __toString() magic function makes php crash. It seems it ran into an infinite loop. Tested on PHP 5.5 and 5.4.11, even 5.3.6 Test script: --------------- class base { function __toString() { return "$this"; } } echo new base(); Expected result: ---------------- Exception thrown, or an error message. Actual result: -------------- Violación de segmento (`core' generado) [Segmentation Fault ('core' dumped)]