From: adam at trachtenberg dot com
Operating system: *
PHP version: 5CVS-2003-11-15 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description: Concatenating overloaded objects causes crash
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 bug report at http://bugs.php.net/?id=26266&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26266&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26266&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26266&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26266&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26266&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26266&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26266&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26266&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26266&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26266&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26266&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26266&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26266&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26266&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26266&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26266&r=float