php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59059 Calling methods, declared in parent classes causes seg fault
Submitted: 2010-02-02 11:26 UTC Modified: 2010-02-05 03:32 UTC
From: bugs at bilke dot org Assigned: val (profile)
Status: Closed Package: bcompiler (PECL)
PHP Version: 5.2.10 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bugs at bilke dot org
New email:
PHP Version: OS:

 

 [2010-02-02 11:26 UTC] bugs at bilke dot org
Description:
------------
The staring point is a compiled custom class, which extends some php built in class.

If I call a method on the custom-class which is defined within the parent class i got a seg fault.

Reproduce code:
---------------
Compile-Code:

$f = fopen('compile/MyClass.php', "w");
bcompiler_write_header($f);
bcompiler_write_file($f, 'MyClass.php');
bcompiler_write_footer($f);
fclose($f);

MyClass.php:
<?php
class MyClass extends DateTime {
}
?>

Calling script (index.php):
<?php
require_once 'MyClass.php';

$o = new MyClass();
$o->getOffset();
?>



Expected result:
----------------
The offset of DateTime

Actual result:
--------------
$ php index.php 
Segmentation fault
Exit 139

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-04 13:33 UTC] val@php.net
Could you please check it with the latest SVN version. I believe it should be fixed now. Please confirm if the bug is gone.
 [2010-02-05 03:32 UTC] bugs at bilke dot org
bug seems to gone in the latest svn version. thx
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 01 20:01:29 2024 UTC