|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-18 10:41 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 12:00:01 2025 UTC |
Description: ------------ Hi... The script below causes a fatal error. This is just the simplest example I could find of a whole class of these problems. Makes comparing any object problematical. yours, Marcus Reproduce code: --------------- <?php class Recursive { private $me; function __construct() { $this->me = $this; } } new Recursive() != new Recursive(); ?> Expected result: ---------------- Nothing as the comparison is not output. Actual result: -------------- Fatal error with nesting too deep.