#26266 [Opn->Csd]: Concatenating overloaded objects causes crash

From: Date: Tue, 25 Nov 2003 19:52:23 +0000
Subject: #26266 [Opn->Csd]: Concatenating overloaded objects causes crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-51020@lists.php.net to get a copy of this message
ID: 26266 Updated by: sniper@php.net Reported By: adam at trachtenberg dot com -Status: Open +Status: Closed Bug Type: Zend Engine 2 problem Operating System: * PHP Version: 5CVS-2003-11-15 (dev) New Comment: Doesn't crash with latest CVS. Previous Comments: ------------------------------------------------------------------------ [2003-11-15 15:08:55] adam at trachtenberg dot com Description: ------------ Concatenating objects that define a __toString() method using the "." operator causes a bus error. Reproduce code: --------------- class foo { function __toString() { return "foo"; } } $foo = new foo; echo $foo . "\n"; Expected result: ---------------- foo Actual result: -------------- Bus error. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26266&edit=1

« previous php.bugs (#51020) next »