php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45640 segmentation fault extending classes
Submitted: 2008-07-27 19:02 UTC Modified: 2008-08-04 01:00 UTC
From: hhiacxk02 at sneakemail dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.2.6 OS: gentoo
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hhiacxk02 at sneakemail dot com
New email:
PHP Version: OS:

 

 [2008-07-27 19:02 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-27 20:13 UTC] jani@php.net
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.
 [2008-08-04 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 15:01:36 2025 UTC