#36234 [Opn->WFx]: segfault when testing property of an overloaded class in switch a statement
| From: | sniper@php.net | Date: | Tue, 11 Apr 2006 17:23:50 +0000 |
| Subject: | #36234 [Opn->WFx]: segfault when testing property of an overloaded class in switch a statement | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95618@lists.php.net to get a copy of this message | ||
ID: 36234
Updated by: sniper@php.net
Reported By: matt dot flaherty at hildebrand dot co dot uk
-Status: Open
+Status: Wont fix
Bug Type: Reproducible crash
Operating System: SUSE LINUX 10.0 (i586)
PHP Version: 4.4.2
New Comment:
As there is no maintainer and any serious OO stuff should be done with
5.1 anyway -> wont fix. (there are more important things to fix than
hacks like this)
Previous Comments:
------------------------------------------------------------------------
[2006-02-13 19:38:18] andrei@php.net
I am not maintaining this anymore.
------------------------------------------------------------------------
[2006-02-13 15:53:49] matt dot flaherty at hildebrand dot co dot uk
Thank you for this. I'm aware that the OO implementation in PHP5 is
very different and I intend to use 5 for any serious OO development
from now on. However, there is a project I'm working on which requires
PHP 4 and needs a drop-in replacement for the PEAR DB libraries within
a third-party framework. As support for PHP 4 is still a going concern
I decided to raise this ticket. Since posting this bug report, I have
also encountered the same problem in PHP 4.3.11. Thank you again for
your response.
------------------------------------------------------------------------
[2006-02-11 13:19:50] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2006-01-31 23:51:27] judas dot iscariote at gmail dot com
Program received signal SIGSEGV, Segmentation fault.
0x0000000000417258 in overload_get_property
(property_reference=0x7fffffe61af8)
at /home/cristian/php-src/ext/overload/overload.c:363
363 if (Z_TYPE_P(overloaded_property) ==
OE_IS_OBJECT) {
(gdb) bt
#0 0x0000000000417258 in overload_get_property
(property_reference=0x7fffffe61af8)
at /home/cristian/php-src/ext/overload/overload.c:363
#1 0x00000000004e9c01 in get_overloaded_property (T=0x7fffffe61ae0) at
/home/cristian/php-src/Zend/zend_execute.c:970
#2 0x00000000004e8327 in _get_zval_ptr (node=0x6a6bd0,
Ts=0x7fffffe614c0, should_free=0x649c10)
at /home/cristian/php-src/Zend/zend_execute.c:93
#3 0x00000000004f2503 in zend_switch_free (opline=0x6a6ba8,
Ts=0x7fffffe614c0)
at /home/cristian/php-src/Zend/zend_execute.c:236
#4 0x00000000004efe54 in execute (op_array=0x6978d0) at
/home/cristian/php-src/Zend/zend_execute.c:2053
#5 0x00000000004d5cf5 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /home/cristian/php-src/Zend/zend.c:934
#6 0x0000000000498774 in php_execute_script
(primary_file=0x7fffffe64750) at
/home/cristian/php-src/main/main.c:1753
#7 0x00000000004f50eb in main (argc=2, argv=0x7fffffe648b8) at
/home/cristian/php-src/sapi/cli/php_cli.c:830
./sapi/cli/php -v
PHP 4.4.3-dev (cli) (built: Jan 31 2006 19:48:51) (DEBUG)
------------------------------------------------------------------------
[2006-01-31 18:30:29] matt dot flaherty at hildebrand dot co dot uk
Almost forgot. PHP is configured in the standard way for this distro:
./configure --prefix=/usr --datadir=/usr/share/php
--mandir=/usr/share/man --bindir=/usr/bin --libdir=/usr/share
--includedir=/usr/include --sysconfdir=/etc --with-_lib=lib
--with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin
--disable-debug --enable-inline-optimization --enable-memory-limit
--enable-magic-quotes --enable-safe-mode --enable-sigchild
--disable-ctype --disable-session --without-mysql --disable-cli
--without-pear --with-openssl --with-apxs2=/usr/sbin/apxs2-prefork
i586-suse-linux
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/36234
--
Edit this bug report at http://bugs.php.net/?id=36234&edit=1