| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2007-05-18 02:20 UTC] danhen at web dot de
  [2009-11-23 12:56 UTC] val@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 10:00:02 2025 UTC | 
Description: ------------ I job with bcompiler for compile classes these extends class extends class Reproduce code: --------------- // file 'Classes.php' class OutputClass { function WriteString($str) { echo $str; } } // file 'Code.php' class FontClass extends OutputClass { function FontAndWrite($str) { parent::WriteString("<font color=red>$str</font>"); } } class StyleClass extends FontClass { function StyleAndFont($str) { parent::FontAndWrite("<b>$str</b>"); } } // file Compiling.php include("Classes.php"); $h = fopen('Code.phb', 'w'); bcompiler_write_header($h); bcompiler_write_file($h, 'Code.php'); bcompiler_write_footer($h); fclose($h); // file Loading.php include("Classes.php"); bcompiler_load('Code.phb'); StyleClass::StyleAndFont('My Text'); !!!!! Fatal error: Call to undefined method OutputClass::fontandwrite() in ... I first run Compiling.php and after Loading.php Expected result: ---------------- !!!!! Fatal error: Call to undefined method OutputClass::fontandwrite() in ...