Skip to content

Commit

Permalink
Implement Fast CGI support
Browse files Browse the repository at this point in the history
Split the monolithic functions preparing special variables such
as $_REQUEST or $_SERVER into multiple functions to enable feeding of
data from multiple sources. In case of FastCGI protocol, the values are
sent by the web server.

Import parts of proxygen and thrift.

Added #ifdef's to allow compilation with an unpatched version
of libevent library.

Reviewed By: @ptarjan

Differential Revision: D988737
Differential Revision: D1008756
Differential Revision: D1021808
Differential Revision: D1035231
  • Loading branch information
Julius Kopczewski authored and sgolemon committed Nov 6, 2013
1 parent 3c069c8 commit f9f61cb
Show file tree
Hide file tree
Showing 104 changed files with 22,160 additions and 0 deletions.
9 changes: 9 additions & 0 deletions stubs/glog/portability.h
@@ -0,0 +1,9 @@
#ifndef HPHP_THIRD_PARTY_GLOG_PORTABILITY
#define HPHP_THIRD_PARTY_GLOG_PORTABILITY

#include <glog/logging.h>

#define CHECK_NULL(val) CHECK_EQ((val), static_cast<void*>(NULL))

#endif // #ifndef HPHP_THIRD_PARTY_GLOG_PORTABILITY

1 change: 1 addition & 0 deletions thrift/.gitignore
@@ -0,0 +1 @@
Makefile
15 changes: 15 additions & 0 deletions thrift/CMakeLists.txt
@@ -0,0 +1,15 @@
set(CXX_SOURCES)
auto_sources(files "*.cpp" "RECURSE" "${CMAKE_CURRENT_SOURCE_DIR}")
list(APPEND CXX_SOURCES ${files})

find_package(Boost 1.48.0 COMPONENTS thread system REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})

include_directories("${HPHP_HOME}/hphp/third_party")
add_library(hphp_thrift STATIC ${CXX_SOURCES})

target_link_libraries(hphp_thrift ${Boost_LIBRARIES}
${LIBGLOG_LIBRARY}
${LIBPTHREAD_LIBRARIES})

0 comments on commit f9f61cb

Please sign in to comment.