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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 08:01:33 2024 UTC