From d6250b3d522848afa5caf62e5b8e3110b0763958 Mon Sep 17 00:00:00 2001 From: Brian Sweeney Date: Sun, 12 Jan 2014 21:58:56 -0500 Subject: [PATCH] Fix order of class definition As indicated in the documentation on inheritance, PHP requires that classes be defined before they are used. In terms of a class that extends another class, the parent should be defined before the child. Earlier versions of PHP (and indeed the current version) may have been lenient on this point, but most opcache engines enforce the stricter ordering requirement. @url http://www.php.net/manual/en/language.oop5.inheritance.php --- classes/Font_Glyph_Outline.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/Font_Glyph_Outline.php b/classes/Font_Glyph_Outline.php index 28ac878..7b83154 100644 --- a/classes/Font_Glyph_Outline.php +++ b/classes/Font_Glyph_Outline.php @@ -7,9 +7,6 @@ * @version $Id: Font_Table_glyf.php 46 2012-04-02 20:22:38Z fabien.menager $ */ -require_once dirname(__FILE__) . "/Font_Glyph_Outline_Simple.php"; -require_once dirname(__FILE__) . "/Font_Glyph_Outline_Composite.php"; - /** * `glyf` font table. * @@ -104,4 +101,7 @@ function getSVGContours() { function getGlyphIDs(){ return array(); } -} \ No newline at end of file +} + +require_once dirname(__FILE__) . "/Font_Glyph_Outline_Simple.php"; +require_once dirname(__FILE__) . "/Font_Glyph_Outline_Composite.php";