summaryrefslogtreecommitdiff
path: root/ext/swf/swf.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2000-06-11 07:51:10 +0000
committerSterling Hughes <sterling@php.net>2000-06-11 07:51:10 +0000
commit164cbab7c6886504ce0c219c98c78aed31482fb5 (patch)
treefdf06b07295e4bd74baed46ef008371aec5ffcbd /ext/swf/swf.c
parentcac15508d5bbeee80f9c73099af3aa8b6293ac0f (diff)
downloadphp-git-164cbab7c6886504ce0c219c98c78aed31482fb5.tar.gz
oops.
# P.s.: The current CVS is broken (virtual dir stuff), does anyone have # an idea on when it will be fixed?
Diffstat (limited to 'ext/swf/swf.c')
-rw-r--r--ext/swf/swf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/swf/swf.c b/ext/swf/swf.c
index 6c161affe4..5a0c006184 100644
--- a/ext/swf/swf.c
+++ b/ext/swf/swf.c
@@ -22,7 +22,8 @@
#include "php.h"
#if HAVE_SWF
-#include "swf.h"
+#include <stdio.h>
+#include <swf.h>
#include "ext/standard/info.h"
#include "php_swf.h"
@@ -168,7 +169,7 @@ PHP_FUNCTION(swf_openfile)
na = Z_STRVAL_PP(name);
- swf_openfile((strcasecmp("php://stdout", na)==0) ? stdout : na,
+ swf_openfile((strcasecmp("php://stdout", na)==0) ? fileno(stdout) : na,
(float)Z_DVAL_PP(sizeX), (float)Z_DVAL_PP(sizeY),
(float)Z_DVAL_PP(frameRate), (float)Z_DVAL_PP(r), (float)Z_DVAL_PP(g), (float)Z_DVAL_PP(b));
}
@@ -463,10 +464,10 @@ void php_swf_define(INTERNAL_FUNCTION_PARAMETERS, int opt)
if (opt) {
swf_defineline(Z_LVAL_PP(objid), (float)Z_DVAL_PP(x1), (float)Z_DVAL_PP(y1),
- (float)Z_DVAL_PP(x2), (float)Z_DVAL_PP(y2), (float)(Z_DVAL_PP(width));
+ (float)Z_DVAL_PP(x2), (float)Z_DVAL_PP(y2), (float)Z_DVAL_PP(width));
} else {
swf_definerect(Z_LVAL_PP(objid), (float)Z_DVAL_PP(x1), (float)Z_DVAL_PP(y1),
- (float)Z_DVAL_PP(x2), (float)Z_DVAL_PP(y2), (float)(Z_DVAL_PP(width));
+ (float)Z_DVAL_PP(x2), (float)Z_DVAL_PP(y2), (float)Z_DVAL_PP(width));
}
}