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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Fri Dec 03 17:03:34 2021 UTC