summaryrefslogtreecommitdiff
path: root/ext/ming
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2003-11-15 00:53:39 +0000
committerFrank M. Kromann <fmk@php.net>2003-11-15 00:53:39 +0000
commit72297f444b70fc6191a57d61bfbc2e87dc19c8f8 (patch)
tree5e36825d6f0b1c383c54c3954cd04fbf640a2244 /ext/ming
parentc53b53f9265fa68e86b4f4a69bf961c158ce34cc (diff)
downloadphp-git-72297f444b70fc6191a57d61bfbc2e87dc19c8f8.tar.gz
Adding missing class init's for new ming 0.3a functions
Diffstat (limited to 'ext/ming')
-rw-r--r--ext/ming/ming.c9
1 files changed, 8 insertions, 1 deletions
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 <stdio.h>
#include <math.h>
#include <ming.h>
@@ -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;
}