ID:               30707
 Updated by:       paj...@php.net
 Reported By:      guth at fiifo dot u-psud dot fr
-Status:           Open
+Status:           Assigned
 Bug Type:         Scripting Engine problem
 Operating System: Debian, 64bit
 PHP Version:      5.2.8
-Assigned To:      
+Assigned To:      dmitry
 New Comment:

Dmitry, can you take a look at it please?


Previous Comments:
------------------------------------------------------------------------

[2009-01-21 22:59:42] preinhei...@php.net

I encounter this bug with builds of 5.2.8, built on debian.

Configure Line:
 Command        './configure' '--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-mysql' '--with-gd' '--enable-soap' '--with-libxml-dir=/usr/lib/'
'--with-mysql-sock=/tmp' '--with-tidy' '--with-jpeg-dir=/usr/lib/'
'--with-xsl' '--with-curl' '--with-snmp'
'--with-freetype-dir=/usr/local/freetype2' '--with-zlib'
'--enable-gd-native-ttf' '--with-openssl'
'--with-mm=/usr/local/mm-1.4.2/' '--with-mcrypt' '--with-pdo-mysql'
'--with-mysqli' '--enable-debug'

"memcheck" output is up at
http://example.preinheimer.com/30707.a.txt
(too long to paste to a form)

Please let me know if there's anything I can do to help diagnose the
issue.

------------------------------------------------------------------------

[2005-05-04 13:18:01] dmi...@php.net

Fixed in CVS HEAD and PHP_5_0

------------------------------------------------------------------------

[2005-04-29 10:23:15] sni...@php.net

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208719680 (LWP 31723)]
0x0812c49f in zend_do_fcall_common_helper_SPEC
(execute_data=0xbff2c160) at zend_vm_execute.h:120
120             if (EX(function_state).function->common.fn_flags &
ZEND_ACC_ABSTRACT) {
(gdb) bt
#0  0x0812c49f in zend_do_fcall_common_helper_SPEC
(execute_data=0xbff2c160) at zend_vm_execute.h:120
#1  0x0812c3c9 in execute (op_array=0x8bdd8e4) at zend_vm_execute.h:78
#2  0x0810ea63 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/php/php5/Zend/zend.c:1059
#3  0x080dcd78 in php_execute_script (primary_file=0xbff2e600) at
/usr/src/php/php5/main/main.c:1653
#4  0x08186a5f in main (argc=2, argv=0xbff2e6c4) at
/usr/src/php/php5/sapi/cli/php_cli.c:954


------------------------------------------------------------------------

[2004-12-18 10:38:33] guth at fiifo dot u-psud dot fr

Same bug, different code.
two hours lost :(

The constructor contains a return statement, but it is only 

<?php

class UserModuleTest  {
        
        public function __construct($obj) {

                try {
                        new UserModuleTest($this->query());
                } catch(Exception $e) {
                }
                
        }

        public function query() {
                throw new Exception;
        }



}

$test = new UserModuleTest(new UserModuleTest());

?>

------------------------------------------------------------------------

[2004-11-10 19:02:50] tony2...@php.net

This code is much simplier IMO and demonstrates the same behaviour
(both with 5.0.x & 5.1.x):
<?
class C {

        public function __construct() {
                $this->byePHP($this->plip());
        }

        public function byePHP($plop) {
                echo "www.haricow.org";
        }

        public function plip() {
                try {
                        $this->plap($this->plop());
                }
                catch(Exception $e) {
                }
        }

        public function plap($a) {
        
        }

        public function plop() {
                throw new Exception;
        }

}

new C;
?>

------------------------------------------------------------------------

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/30707

-- 
Edit this bug report at http://bugs.php.net/?id=30707&edit=1

Reply via email to