ID: 26266
Updated by: [EMAIL PROTECTED]
Reported By: adam at trachtenberg dot com
-Status: Open
+Status: Feedback
Bug Type: Zend Engine 2 problem
Operating System: Mac OS X 10.3
PHP Version: 5CVS-2003-11-15 (dev)
New Comment:
Nope doesn't crash with the provided example script (on linux)
No leaks, nothing. Can you provide a GDB backtrace of the crash?
Previous Comments:
------------------------------------------------------------------------
[2003-11-25 16:06:31] adam at trachtenberg dot com
Just updated to the latest CVS and it's still broken on
my machine.
[EMAIL PROTECTED]:~/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
------------------------------------------------------------------------
[2003-11-25 14:52:23] [EMAIL PROTECTED]
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