#26266 [Csd->Opn]: Concatenating overloaded objects causes crash
| From: | adam at trachtenberg dot com | Date: | Tue, 25 Nov 2003 21:06:37 +0000 |
| Subject: | #26266 [Csd->Opn]: Concatenating overloaded objects causes crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-51060@lists.php.net to get a copy of this message | ||
ID: 26266
User updated by: adam at trachtenberg dot com
Reported By: adam at trachtenberg dot com
-Status: Closed
+Status: Open
Bug Type: Zend Engine 2 problem
-Operating System: *
+Operating System: Mac OS X 10.3
PHP Version: 5CVS-2003-11-15 (dev)
New Comment:
Just updated to the latest CVS and it's still broken on
my machine.
[adam@benlev:~/Documents/php/php5] $ php -v
PHP 5.0.0b3-dev (cli) (built: Nov 25 2003 15:56:32)
(DEBUG)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend
Technologies
Previous Comments:
------------------------------------------------------------------------
[2003-11-25 14:52:23] sniper@php.net
Doesn't crash with latest CVS.
------------------------------------------------------------------------
[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