From: Frank M. Kromann Date: Sat, 15 Nov 2003 00:53:39 +0000 (+0000) Subject: Adding missing class init's for new ming 0.3a functions X-Git-Tag: php-5.0.0b3RC1~683 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72297f444b70fc6191a57d61bfbc2e87dc19c8f8;p=php Adding missing class init's for new ming 0.3a functions --- diff --git a/ext/ming/ming.c b/ext/ming/ming.c index 8c9457d3d9..dcef086420 100644 --- a/ext/ming/ming.c +++ b/ext/ming/ming.c @@ -24,7 +24,7 @@ #endif #include "php.h" -#include "php_ming.h" +#include "php_globals.h" #include "ext/standard/info.h" #include "ext/standard/file.h" #include "ext/standard/fsock.h" @@ -32,6 +32,7 @@ #if HAVE_MING +#include "php_ming.h" #include #include #include @@ -69,6 +70,7 @@ static SWFMorph getMorph(zval *id TSRMLS_DC); static SWFMovieClip getSprite(zval *id TSRMLS_DC); static SWFSound getSound(zval *id TSRMLS_DC); #ifdef HAVE_NEW_MING +static SWFFontCharacter getFontCharacter(zval *id TSRMLS_DC); static SWFSoundInstance getSoundInstance(zval *id TSRMLS_DC); #endif @@ -3869,6 +3871,7 @@ PHP_MINIT_FUNCTION(ming) INIT_CLASS_ENTRY(sprite_class_entry, "swfsprite", swfsprite_functions); INIT_CLASS_ENTRY(sound_class_entry, "swfsound", swfsound_functions); #ifdef HAVE_NEW_MING + INIT_CLASS_ENTRY(fontchar_class_entry, "swffontchar", swffontchar_functions); INIT_CLASS_ENTRY(soundinstance_class_entry, "swfsoundinstance", swfsoundinstance_functions); #endif @@ -3885,6 +3888,10 @@ PHP_MINIT_FUNCTION(ming) action_class_entry_ptr = zend_register_internal_class(&action_class_entry TSRMLS_CC); morph_class_entry_ptr = zend_register_internal_class(&morph_class_entry TSRMLS_CC); sprite_class_entry_ptr = zend_register_internal_class(&sprite_class_entry TSRMLS_CC); +#ifdef HAVE_NEW_MING + fontchar_class_entry_ptr = zend_register_internal_class(&fontchar_class_entry TSRMLS_CC); + soundinstance_class_entry_ptr = zend_register_internal_class(&soundinstance_class_entry TSRMLS_CC); +#endif return SUCCESS; }