#45640 [Opn->Fbk]: segmentation fault extending classes
| From: | jani@php.net | Date: | Sun, 27 Jul 2008 20:13:51 +0000 |
| Subject: | #45640 [Opn->Fbk]: segmentation fault extending classes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-127328@lists.php.net to get a copy of this message | ||
ID: 45640
Updated by: jani@php.net
Reported By: hhiacxk02 at sneakemail dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: gentoo
PHP Version: 5.2.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
And if the snapshot crashes, provide a gdb backtrace of the crash.
Previous Comments:
------------------------------------------------------------------------
[2008-07-27 19:02:37] hhiacxk02 at sneakemail dot com
Description:
------------
A segmentation fault occurs when extending two classes.
Reproduce code:
---------------
<?php
class CACHE extends memcache
{
public function GetKey($key)
{
$this->connect('unix:///tmp/memcache1.sock',0);
$value = $this->get($key);
return $value;
}
}
class Users extends CACHE
{
function Get($key)
{
$return = $this->GetKey($key);
return $return;
}
}
$cache = new Users;
$cache->Get('key');
?>
Expected result:
----------------
The memcached results
Actual result:
--------------
Segmentation Fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45640&edit=1