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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 18:01:31 2024 UTC