]> granicus.if.org Git - php/commitdiff
oops.
authorSterling Hughes <sterling@php.net>
Sun, 11 Jun 2000 07:51:10 +0000 (07:51 +0000)
committerSterling Hughes <sterling@php.net>
Sun, 11 Jun 2000 07:51:10 +0000 (07:51 +0000)
# P.s.:  The current CVS is broken (virtual dir stuff), does anyone have
# an idea on when it will be fixed?

ext/swf/swf.c

index 6c161affe442fe383764ed349458b1c31b8d5037..5a0c006184d96e94f0c06d7ba1a86d2f3e0d93c2 100644 (file)
@@ -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));
        }
 }