Permalink
Browse files

Added back thrift..

  • Loading branch information...
1 parent aa801b3 commit 65dd94dd21bc8e60934d345665700d174ac6290f @kallaspriit committed Dec 4, 2011
Showing with 90,798 additions and 0 deletions.
  1. +787 −0 thrift/Thrift.php
  2. +51 −0 thrift/autoload.php
  3. 0 thrift/ext/thrift_protocol/.deps
  4. +172 −0 thrift/ext/thrift_protocol/Makefile
  5. 0 thrift/ext/thrift_protocol/Makefile.fragments
  6. +119 −0 thrift/ext/thrift_protocol/Makefile.global
  7. +8 −0 thrift/ext/thrift_protocol/Makefile.objects
  8. +2,885 −0 thrift/ext/thrift_protocol/acinclude.m4
  9. +9,251 −0 thrift/ext/thrift_protocol/aclocal.m4
  10. +14,853 −0 thrift/ext/thrift_protocol/autom4te.cache/output.0
  11. +76 −0 thrift/ext/thrift_protocol/autom4te.cache/requests
  12. +543 −0 thrift/ext/thrift_protocol/autom4te.cache/traces.0
  13. +6,366 −0 thrift/ext/thrift_protocol/build/libtool.m4
  14. +75 −0 thrift/ext/thrift_protocol/build/mkdep.awk
  15. +32 −0 thrift/ext/thrift_protocol/build/scan_makefile_in.awk
  16. +1,807 −0 thrift/ext/thrift_protocol/build/shtool
  17. +1,526 −0 thrift/ext/thrift_protocol/config.guess
  18. +59 −0 thrift/ext/thrift_protocol/config.h
  19. +58 −0 thrift/ext/thrift_protocol/config.h.in
  20. +691 −0 thrift/ext/thrift_protocol/config.log
  21. +15 −0 thrift/ext/thrift_protocol/config.m4
  22. +11 −0 thrift/ext/thrift_protocol/config.nice
  23. +798 −0 thrift/ext/thrift_protocol/config.status
  24. +1,658 −0 thrift/ext/thrift_protocol/config.sub
  25. +14,853 −0 thrift/ext/thrift_protocol/configure
  26. +203 −0 thrift/ext/thrift_protocol/configure.in
  27. 0 thrift/ext/thrift_protocol/install-sh
  28. +7,622 −0 thrift/ext/thrift_protocol/libtool
  29. +6,957 −0 thrift/ext/thrift_protocol/ltmain.sh
  30. 0 thrift/ext/thrift_protocol/missing
  31. 0 thrift/ext/thrift_protocol/mkinstalldirs
  32. +1,069 −0 thrift/ext/thrift_protocol/php_thrift_protocol.cpp
  33. +27 −0 thrift/ext/thrift_protocol/php_thrift_protocol.h
  34. +2,479 −0 thrift/ext/thrift_protocol/run-tests.php
  35. +8,743 −0 thrift/packages/cassandra/Cassandra.php
  36. +14 −0 thrift/packages/cassandra/cassandra_constants.php
  37. +4,460 −0 thrift/packages/cassandra/cassandra_types.php
  38. +429 −0 thrift/protocol/TBinaryProtocol.php
  39. +70 −0 thrift/protocol/TBinarySerializer.php
  40. +376 −0 thrift/protocol/TProtocol.php
  41. +161 −0 thrift/transport/TBufferedTransport.php
  42. +179 −0 thrift/transport/TFramedTransport.php
  43. +200 −0 thrift/transport/THttpClient.php
  44. +82 −0 thrift/transport/TMemoryBuffer.php
  45. +46 −0 thrift/transport/TNullTransport.php
  46. +109 −0 thrift/transport/TPhpStream.php
  47. +96 −0 thrift/transport/TServerSocket.php
  48. +50 −0 thrift/transport/TServerTransport.php
  49. +320 −0 thrift/transport/TSocket.php
  50. +294 −0 thrift/transport/TSocketPool.php
  51. +106 −0 thrift/transport/TTransport.php
  52. +12 −0 thrift/transport/TTransportFactory.php
View
Oops, something went wrong.
View
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package thrift
+ */
+
+
+/**
+ * Include this file if you wish to use autoload with your PHP generated Thrift
+ * code. The generated code will *not* include any defined Thrift classes by
+ * default, except for the service interfaces. The generated code will populate
+ * values into $GLOBALS['THRIFT_AUTOLOAD'] which can be used by the autoload
+ * method below. If you have your own autoload system already in place, rename your
+ * __autoload function to something else and then do:
+ * $GLOBALS['AUTOLOAD_HOOKS'][] = 'my_autoload_func';
+ *
+ * Generate this code using the --gen php:autoload Thrift generator flag.
+ */
+
+$GLOBALS['THRIFT_AUTOLOAD'] = array();
+$GLOBALS['AUTOLOAD_HOOKS'] = array();
+
+if (!function_exists('__autoload')) {
+ function __autoload($class) {
+ global $THRIFT_AUTOLOAD;
+ $classl = strtolower($class);
+ if (isset($THRIFT_AUTOLOAD[$classl])) {
+ include_once $GLOBALS['THRIFT_ROOT'].'/packages/'.$THRIFT_AUTOLOAD[$classl];
+ } else if (!empty($GLOBALS['AUTOLOAD_HOOKS'])) {
+ foreach ($GLOBALS['AUTOLOAD_HOOKS'] as $hook) {
+ $hook($class);
+ }
+ }
+ }
+}
No changes.
@@ -0,0 +1,172 @@
+srcdir = /home/priit/thrift-0.8.0/lib/php/src/ext/thrift_protocol
+builddir = /home/priit/thrift-0.8.0/lib/php/src/ext/thrift_protocol
+top_srcdir = /home/priit/thrift-0.8.0/lib/php/src/ext/thrift_protocol
+top_builddir = /home/priit/thrift-0.8.0/lib/php/src/ext/thrift_protocol
+EGREP = /bin/grep -E
+SED = /bin/sed
+CONFIGURE_COMMAND = './configure' '--disable-option-checking' '--prefix=/usr/local' '--cache-file=/dev/null' '--srcdir=.'
+CONFIGURE_OPTIONS = '--disable-option-checking' '--prefix=/usr/local' '--cache-file=/dev/null' '--srcdir=.'
+SHLIB_SUFFIX_NAME = so
+SHLIB_DL_SUFFIX_NAME = so
+ZEND_EXT_TYPE = zend_extension
+RE2C = exit 0;
+AWK = nawk
+THRIFT_PROTOCOL_SHARED_LIBADD = -lstdc++
+shared_objects_thrift_protocol = php_thrift_protocol.lo
+PHP_PECL_EXTENSION = thrift_protocol
+PHP_MODULES = $(phplibdir)/thrift_protocol.la
+PHP_ZEND_EX =
+all_targets = $(PHP_MODULES) $(PHP_ZEND_EX)
+install_targets = install-modules install-headers
+prefix = /usr
+exec_prefix = $(prefix)
+libdir = ${exec_prefix}/lib
+prefix = /usr
+phplibdir = /home/priit/thrift-0.8.0/lib/php/src/ext/thrift_protocol/modules
+phpincludedir = /usr/include/php5
+CC = cc
+CFLAGS = -g -O2
+CFLAGS_CLEAN = $(CFLAGS)
+CPP = cc -E
+CPPFLAGS = -DHAVE_CONFIG_H
+CXX = g++
+CXXFLAGS = -g -O2
+CXXFLAGS_CLEAN = $(CXXFLAGS)
+EXTENSION_DIR = /usr/lib/php5/20090626+lfs
+PHP_EXECUTABLE = /usr/bin/php
+EXTRA_LDFLAGS =
+EXTRA_LIBS =
+INCLUDES = -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+LFLAGS =
+LDFLAGS =
+SHARED_LIBTOOL =
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+SHELL = /bin/bash
+INSTALL_HEADERS =
+mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
+INSTALL = $(top_srcdir)/build/shtool install -c
+INSTALL_DATA = $(INSTALL) -m 644
+
+DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
+COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
+
+all: $(all_targets)
+ @echo
+ @echo "Build complete."
+ @echo "Don't forget to run 'make test'."
+ @echo
+
+build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
+
+libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
+ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
+ -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1
+
+libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
+ $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so
+
+install: $(all_targets) $(install_targets)
+
+install-sapi: $(OVERALL_TARGET)
+ @echo "Installing PHP SAPI module: $(PHP_SAPI)"
+ -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
+ -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \
+ for i in 0.0.0 0.0 0; do \
+ if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \
+ $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \
+ break; \
+ fi; \
+ done; \
+ fi
+ @$(INSTALL_IT)
+
+install-modules: build-modules
+ @test -d modules && \
+ $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR)
+ @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/"
+ @rm -f modules/*.la >/dev/null 2>&1
+ @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
+
+install-headers:
+ -@if test "$(INSTALL_HEADERS)"; then \
+ for i in `echo $(INSTALL_HEADERS)`; do \
+ i=`$(top_srcdir)/build/shtool path -d $$i`; \
+ paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
+ done; \
+ $(mkinstalldirs) $$paths && \
+ echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \
+ for i in `echo $(INSTALL_HEADERS)`; do \
+ if test "$(PHP_PECL_EXTENSION)"; then \
+ src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \
+ else \
+ src=$$i; \
+ fi; \
+ if test -f "$(top_srcdir)/$$src"; then \
+ $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+ elif test -f "$(top_builddir)/$$src"; then \
+ $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+ else \
+ (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+ cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
+ fi \
+ done; \
+ fi
+
+PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1'
+PHP_TEST_SHARED_EXTENSIONS = ` \
+ if test "x$(PHP_MODULES)" != "x"; then \
+ for i in $(PHP_MODULES)""; do \
+ . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \
+ done; \
+ fi; \
+ if test "x$(PHP_ZEND_EX)" != "x"; then \
+ for i in $(PHP_ZEND_EX)""; do \
+ . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \
+ done; \
+ fi`
+PHP_DEPRECATED_DIRECTIVES_REGEX = '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
+
+test: all
+ -@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
+ INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
+ if test "$$INI_FILE"; then \
+ $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
+ else \
+ echo > $(top_builddir)/tmp-php.ini; \
+ fi; \
+ INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
+ if test "$$INI_SCANNED_PATH"; then \
+ INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
+ $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
+ fi; \
+ TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
+ TEST_PHP_SRCDIR=$(top_srcdir) \
+ CC="$(CC)" \
+ $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
+ rm $(top_builddir)/tmp-php.ini; \
+ else \
+ echo "ERROR: Cannot run tests without CLI sapi."; \
+ fi
+
+clean:
+ find . -name \*.gcno -o -name \*.gcda | xargs rm -f
+ find . -name \*.lo -o -name \*.o | xargs rm -f
+ find . -name \*.la -o -name \*.a | xargs rm -f
+ find . -name \*.so | xargs rm -f
+ find . -name .libs -a -type d|xargs rm -rf
+ rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
+
+distclean: clean
+ rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp
+ $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
+
+.PHONY: all clean install distclean test
+.NOEXPORT:
+php_thrift_protocol.lo: /home/priit/thrift-0.8.0/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp
+ $(LIBTOOL) --mode=compile $(CXX) -I. -I/home/priit/thrift-0.8.0/lib/php/src/ext/thrift_protocol $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /home/priit/thrift-0.8.0/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp -o php_thrift_protocol.lo
+$(phplibdir)/thrift_protocol.la: ./thrift_protocol.la
+ $(LIBTOOL) --mode=install cp ./thrift_protocol.la $(phplibdir)
+
+./thrift_protocol.la: $(shared_objects_thrift_protocol) $(THRIFT_PROTOCOL_SHARED_DEPENDENCIES)
+ $(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_thrift_protocol) $(THRIFT_PROTOCOL_SHARED_LIBADD)
+
@@ -0,0 +1,119 @@
+mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
+INSTALL = $(top_srcdir)/build/shtool install -c
+INSTALL_DATA = $(INSTALL) -m 644
+
+DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
+COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
+
+all: $(all_targets)
+ @echo
+ @echo "Build complete."
+ @echo "Don't forget to run 'make test'."
+ @echo
+
+build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
+
+libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
+ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
+ -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1
+
+libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
+ $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so
+
+install: $(all_targets) $(install_targets)
+
+install-sapi: $(OVERALL_TARGET)
+ @echo "Installing PHP SAPI module: $(PHP_SAPI)"
+ -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
+ -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \
+ for i in 0.0.0 0.0 0; do \
+ if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \
+ $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \
+ break; \
+ fi; \
+ done; \
+ fi
+ @$(INSTALL_IT)
+
+install-modules: build-modules
+ @test -d modules && \
+ $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR)
+ @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/"
+ @rm -f modules/*.la >/dev/null 2>&1
+ @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
+
+install-headers:
+ -@if test "$(INSTALL_HEADERS)"; then \
+ for i in `echo $(INSTALL_HEADERS)`; do \
+ i=`$(top_srcdir)/build/shtool path -d $$i`; \
+ paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
+ done; \
+ $(mkinstalldirs) $$paths && \
+ echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \
+ for i in `echo $(INSTALL_HEADERS)`; do \
+ if test "$(PHP_PECL_EXTENSION)"; then \
+ src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \
+ else \
+ src=$$i; \
+ fi; \
+ if test -f "$(top_srcdir)/$$src"; then \
+ $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+ elif test -f "$(top_builddir)/$$src"; then \
+ $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+ else \
+ (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+ cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
+ fi \
+ done; \
+ fi
+
+PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1'
+PHP_TEST_SHARED_EXTENSIONS = ` \
+ if test "x$(PHP_MODULES)" != "x"; then \
+ for i in $(PHP_MODULES)""; do \
+ . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \
+ done; \
+ fi; \
+ if test "x$(PHP_ZEND_EX)" != "x"; then \
+ for i in $(PHP_ZEND_EX)""; do \
+ . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \
+ done; \
+ fi`
+PHP_DEPRECATED_DIRECTIVES_REGEX = '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
+
+test: all
+ -@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
+ INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
+ if test "$$INI_FILE"; then \
+ $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
+ else \
+ echo > $(top_builddir)/tmp-php.ini; \
+ fi; \
+ INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
+ if test "$$INI_SCANNED_PATH"; then \
+ INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
+ $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
+ fi; \
+ TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
+ TEST_PHP_SRCDIR=$(top_srcdir) \
+ CC="$(CC)" \
+ $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
+ rm $(top_builddir)/tmp-php.ini; \
+ else \
+ echo "ERROR: Cannot run tests without CLI sapi."; \
+ fi
+
+clean:
+ find . -name \*.gcno -o -name \*.gcda | xargs rm -f
+ find . -name \*.lo -o -name \*.o | xargs rm -f
+ find . -name \*.la -o -name \*.a | xargs rm -f
+ find . -name \*.so | xargs rm -f
+ find . -name .libs -a -type d|xargs rm -rf
+ rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
+
+distclean: clean
+ rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp
+ $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
+
+.PHONY: all clean install distclean test
+.NOEXPORT:
@@ -0,0 +1,8 @@
+php_thrift_protocol.lo: /home/priit/thrift-0.8.0/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp
+ $(LIBTOOL) --mode=compile $(CXX) -I. -I/home/priit/thrift-0.8.0/lib/php/src/ext/thrift_protocol $(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -c /home/priit/thrift-0.8.0/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp -o php_thrift_protocol.lo
+$(phplibdir)/thrift_protocol.la: ./thrift_protocol.la
+ $(LIBTOOL) --mode=install cp ./thrift_protocol.la $(phplibdir)
+
+./thrift_protocol.la: $(shared_objects_thrift_protocol) $(THRIFT_PROTOCOL_SHARED_DEPENDENCIES)
+ $(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_thrift_protocol) $(THRIFT_PROTOCOL_SHARED_LIBADD)
+
Oops, something went wrong.

0 comments on commit 65dd94d

Please sign in to comment.