ID: 26266
User updated by: adam at trachtenberg dot com
Reported By: adam at trachtenberg dot com
-Status: Feedback
+Status: Open
Bug Type: Zend Engine 2 problem
Operating System: Mac OS X 10.3
PHP Version: 5CVS-2003-11-15 (dev)
New Comment:
This is what I get from gdb:
Core was generated by `/Users/adam/CVS/php/php-src/sapi/
cli/php'.
#0 0x0022e2c4 in ns_default.2 ()
(gdb) bt
#0 0x0022e2c4 in ns_default.2 ()
#1 0x0022e214 in ns_default.2 ()
#2 0x0022a4dc in ns_default.2 ()
#3 0x00260b3c in zend_concat_handler
(execute_data=0x22a4dc, op_array=0x26d35c) at /Users/
adam/CVS/php/php-src/Zend/zend_execute.c:1359
#4 0x0026020c in execute (op_array=0xb11750) at /Users/
adam/CVS/php/php-src/Zend/zend_execute.c:1269
#5 0x00231300 in ns_default.2 ()
#6 0x001d4f20 in ns_default.2 ()
#7 0x00273124 in main (argc=2353640, argv=0xe) at /
Users/adam/CVS/php/php-src/sapi/cli/php_cli.c:910
Previous Comments:
------------------------------------------------------------------------
[2003-11-28 23:51:15] [EMAIL PROTECTED]
Nope doesn't crash with the provided example script (on linux)
No leaks, nothing. Can you provide a GDB backtrace of the crash?
------------------------------------------------------------------------
[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