#43968 [Opn]: Extending internal class causes a crash

From: Date: Tue, 29 Jan 2008 17:49:08 +0000
Subject: #43968 [Opn]: Extending internal class causes a crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-121749@lists.php.net to get a copy of this message
 ID:               43968
 Updated by:       felipe@php.net
 Reported By:      mkoppanen@php.net
 Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Debian
 PHP Version:      5.2CVS-2008-01-29 (snap)
 Assigned To:      dmitry
 New Comment:

The problem isn't with classes. Just a simple "valgrind php" show the
errors.


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

[2008-01-29 17:14:42] felipe@php.net

I reproduced in 5.3 (CVS), the problem is occuring with all classes.
(not only internal)

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

[2008-01-29 16:53:59] mkoppanen@php.net

Description:
------------
PHP 5.2.5 and current snapshot (php5.2-200801291330) cause a crash when
extending an internal class and terminating the script with die(); or
fatal error.

This does no happen with debug build or with USE_ZEND_ALLOC=0

Reproduce code:
---------------
class a extends arrayobject 
{
} 
die();

Expected result:
----------------
No output

Actual result:
--------------
/opt/php5-cvs/bin/php -r 'class a extends arrayobject {} die();'
zend_mm_heap corrupted



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


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


Thread (5 messages)

« previous php.bugs (#121749) next »