summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2000-10-09 19:10:39 +0000
committerAndrei Zmievski <andrei@php.net>2000-10-09 19:10:39 +0000
commita193c9ce3e02cd6b368c12fa394b2d8bba85d03e (patch)
tree6f8937950f8ed9bca95424c404b779bf5fee8f2a
parent92b3dd06e301db83ded4a5609272b6c6d4d4d68f (diff)
downloadphp-git-a193c9ce3e02cd6b368c12fa394b2d8bba85d03e.tar.gz
Fix a misconfiguration error and missing return statement.
-rw-r--r--ext/swf/config.m42
-rw-r--r--ext/swf/swf.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ext/swf/config.m4 b/ext/swf/config.m4
index ac75a3b766..25809a4822 100644
--- a/ext/swf/config.m4
+++ b/ext/swf/config.m4
@@ -27,7 +27,7 @@ if test "$PHP_SWF" != "no"; then
AC_ADD_INCLUDE($SWF_DIR/include)
PHP_SUBST(SWF_SHARED_LIBADD)
- AC_ADD_LIBRARY_WITH_PATH(swf, $SWF_DIR, SWF_SHARED_LIBADD)
+ AC_ADD_LIBRARY_WITH_PATH(swf, $SWF_DIR/lib, SWF_SHARED_LIBADD)
AC_DEFINE(HAVE_SWF,1,[ ])
PHP_EXTENSION(swf, $ext_shared)
diff --git a/ext/swf/swf.c b/ext/swf/swf.c
index 32ec0c1aaf..d5bc6181ea 100644
--- a/ext/swf/swf.c
+++ b/ext/swf/swf.c
@@ -157,6 +157,8 @@ PHP_MINIT_FUNCTION(swf)
PHP_RINIT_FUNCTION(swf)
{
SWFG(use_file) = 0;
+
+ return SUCCESS;
}
/* {{{ proto void swf_openfile(string name, double xsize, double ysize, double framerate, double r, double g, double b)