Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

This commit was manufactured by cvs2svn to create tag 'RELEASE_0_2'.

git-svn-id: http://svn.php.net/repository/pecl/rar/tags/RELEASE_0_2@173405 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit dd129d30fa9f418e9604f0c3d9356bb030721f7a 1 parent c15a6ca
cvs2svn authored
Showing with 8 additions and 2 deletions.
  1. +1 −1  config.m4
  2. +1 −1  config.w32
  3. +6 −0 rar.cpp
View
2  config.m4
@@ -24,8 +24,8 @@ if test "$PHP_RAR" != "no"; then
PHP_REQUIRE_CXX
AC_DEFINE(HAVE_RAR, 1, [Whether you have rar support])
PHP_SUBST(RAR_SHARED_LIBADD)
- PHP_ADD_BUILD_DIR($ext_builddir/unrar)
PHP_ADD_LIBRARY_WITH_PATH(stdc++, "", RAR_SHARED_LIBADD)
PHP_NEW_EXTENSION(rar, rar.cpp $unrar_sources, $ext_shared,,-I@ext_srcdir@/unrar)
+ PHP_ADD_BUILD_DIR($ext_builddir/unrar)
fi
View
2  config.w32
@@ -5,7 +5,7 @@ ARG_ENABLE("rar", "Rar support", "no");
if (PHP_RAR != "no") {
EXTENSION("rar", "rar.cpp");
- ADD_SOURCES(configure_module_dirname + "/unrar/", "rar.cpp \
+ ADD_SOURCES(configure_module_dirname + "/unrar", "rar.cpp \
strlist.cpp strfn.cpp pathfn.cpp int64.cpp \
savepos.cpp global.cpp file.cpp filefn.cpp \
filcreat.cpp archive.cpp arcread.cpp unicode.cpp \
View
6 rar.cpp
@@ -278,6 +278,12 @@ PHP_MINIT_FUNCTION(rar)
le_rar_file = zend_register_list_destructors_ex(_rar_file_list_dtor, NULL, le_rar_file_name, module_number);
+ REGISTER_LONG_CONSTANT("RAR_HOST_MSDOS", HOST_MSDOS, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("RAR_HOST_OS2", HOST_OS2, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("RAR_HOST_WIN32", HOST_WIN32, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("RAR_HOST_UNIX", HOST_UNIX, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("RAR_HOST_MACOS", HOST_MACOS, CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("RAR_HOST_BEOS", HOST_BEOS, CONST_CS | CONST_PERSISTENT);
return SUCCESS;
}
/* }}} */
Please sign in to comment.
Something went wrong with that request. Please try again.