https://bugs.php.net/bug.php?id=63016 --- config.m4.orig 2012-07-29 08:41:03.000000000 -0500 +++ config.m4 2013-01-04 06:04:30.000000000 -0600 @@ -27,6 +27,6 @@ PHP_REQUIRE_CXX() PHP_ADD_LIBRARY_WITH_PATH(stdc++, "", RAR_SHARED_LIBADD) - PHP_NEW_EXTENSION(rar, rar.c rar_error.c rararch.c rarentry.c rar_stream.c rar_navigation.c $unrar_sources, $ext_shared,,-DRARDLL -DGUI -DSILENT -Wno-write-strings -Wno-logical-op-parentheses -I@ext_srcdir@/unrar) + PHP_NEW_EXTENSION(rar, rar.c rar_error.c rararch.c rarentry.c rar_stream.c rar_navigation.c $unrar_sources, $ext_shared,,-DRARDLL -DGUI -DSILENT -Wno-write-strings -I@ext_srcdir@/unrar) PHP_ADD_BUILD_DIR($ext_builddir/unrar) fi