|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-02-04 13:33 UTC] val@php.net
[2010-02-05 03:32 UTC] bugs at bilke dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 16:00:01 2025 UTC |
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