summaryrefslogtreecommitdiff
path: root/test/php
Commit message (Collapse)AuthorAgeFilesLines
* Replace ThriftTest.thrift with v0.16/ThriftTest.thrift to allow for merging ↵Jens Geyer2022-09-051-4/+4
| | | | the partially completed uuid implementation to master
* Remove execute bit from plain text files in git (#2611)Christopher Tubbs2022-05-241-0/+0
| | | | | | | Trivially change file mode from 755 to 644 for files in git that shouldn't be marked as executable. These were probably marked as executable due to some contributors developing on Windows using a filesystem that doesn't support POSIX file modes, or aggressively marks everything as executable.
* THRIFT-4969: PHP test doesn't check the code generation with php:classmapKengo Seki2019-10-081-1/+1
| | | | | Client: php This closes #1889.
* THRIFT-4794: finish php json cross testJames E. King III2019-02-102-0/+2
|
* THRIFT-4717: fix up make clean with autoconfJames E. King III2019-01-251-1/+6
|
* THRIFT-4474: Use PSR-4 autoloader by defaultRobert Lu2018-03-153-10/+12
| | | | | | Client: php This closes #1479
* THRIFT-4423: migrate to psr-4Robert Lu2018-01-111-2/+1
| | | | | | Client: php This closes #1445
* THRIFT-4264: Fix PHP tests requiring sockets.soHåkon Hitland2017-09-222-4/+11
| | | | | | Client: php This closes #1315
* configure.ac, Makefile.am: introduce THRIFT variable to support ↵Thomas Petazzoni2017-09-091-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | cross-compilation The thrift build system currently assumes that the thrift compiler is always available in $(top_builddir)/compiler/cpp/thrift. However, in a cross-compilation context, this location contains the thrift compiler built for the target... which obviously will not run on the build machine. In order to support such cross-compilation situation, we introduce the THRIFT variable as a an argument for the configure script (using AC_ARG_VAR). If not specified, it defaults to the existing value of using compiler/cpp/thrift from the build directory, but it can be overridden when calling ./configure. Note that $(top_builddir) cannot be used within the configure script, so we simply use `pwd`, which is the same as the top_builddir. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> This closes #1336 This closes #1350
* THRIFT-4263: Fix use after free bug for thrown exceptionsRoy Sindre Norangshol2017-08-121-0/+19
| | | | | | | | | | | | | | | Client: php Exceptions thrown through PHPExceptionWrapper are prematurely freed at the end of the catch block, even though zend_throw_exception_object expects to take ownership of the value. Ensure we free return_value in case of exceptions Patch: Håkon Hitland <hakon.hitland@zedge.net> Patch: Roy Sindre Norangshol <norangshol@zedge.net> This closes #1314
* THRIFT-3984 PHP7 extension causes segfaultHåkon Hitland2017-02-231-1/+46
| | | | | | | | | | | | | | | | | | | The PHP 7 extension can sometimes free strings it does not own, when serializing string map keys, or the name of called methods. The latter case was somewhat migitated since the double-free has no effect on interned strings. Using ZVAL_STR_COPY instead of ZVAL_STR will increment the reference count, making the following destructor call correct. Fix memory leak in PHP 7 Fix memory leak when deserializing maps or sets. zend_hash_update will add its own reference to the key, so we need to destruct the key zval to not leak. We don't need to destruct the value, the hash table will take ownership of it. This closes #1152
* THRIFT-3886 PHP cross test client returns 0 even when failingHåkon Hitland2016-12-171-30/+97
| | | | | | | Client: PHP Patch: Håkon Hitland <hakon.hitland@zedge.net> This closes #1131
* THRIFT-3046: Allow PSR4 class loading for generated classes (PHP)Andreas Scheja2016-09-033-2/+31
| | | | | | Allow test to be used with psr4 autoloading This closes #1010
* THRIFT-3886 PHP cross test client returns 0 even when failingNobuaki Sukegawa2016-08-201-34/+28
| | | | | | This only fixes tests for primitive values. This closes #1054
* THRIFT-3211: add php client compact protocol to make cross testJim King2015-07-031-6/+23
| | | | This closes #532
* THRIFT-847 Test Framework harmonization across all languagesRoger Meier2015-03-242-1/+11
| | | | | | | | THRIFT-2946 Enhance usability of cross test framework Patch: Nobuaki Sukegawa This closes: #358
* THRIFT-2886 Integrate binary type in standard Thrift cross testJens Geyer2015-01-031-0/+4
| | | | | | | | | | | | Client: C_glib, C++, D, Erlang, Go, Haskell, Lua, Java/Me, JavaScript, Node, Ocaml, Perl, PHP, Python, Ruby Patch: Jens Geyer This closes #341 Minimal server-side implementations and TODO stubs for various languages to let "make check" succeeed. Not contained in this patch and still TODO: - client side implementations, i.e. calls to testBinary() and appropriate tests - server side hex printout missing for some languages
* THRIFT-2768: Whitespace FixupJens Geyer2014-10-031-4/+4
| | | | | | | Client: General (Makefile.am) Patch: Jens Geyer Reverted makefile.am - tabs are not optional there
* THRIFT-2768: Whitespace FixupJens Geyer2014-10-031-4/+4
| | | | | | | Client: General (Makefile.am, *.thrift) Patch: Jens Geyer DocTest.thrift has NOT been changed, the trailing whitespaces are part of the test case.
* THRIFT-1822 PHP unit test does not workRoger Meier2013-01-061-7/+7
| | | | Patch: Roger Meier
* THRIFT-1615 PHP Namespace (was Thrift for Symfony 2)Roger Meier2012-09-051-35/+31
| | | | | | | Patch: Xavier HAUSHERR git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1381323 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-847 Test Framework harmonization across all languagesRoger Meier2012-01-211-14/+7
| | | | | | add php TestClient to the testsuite git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1234292 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-1495 PHP TestClient fatals on missing classRoger Meier2012-01-201-3/+3
| | | | | | Patch: Andrew Grumet git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1233958 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-1081. php: PHP tests broken and somewhat incompleteBryan Duxbury2011-03-041-5/+9
| | | | | | | | This patch fixes some minor bugs and includes a test for Framed Transport. Patch: Nicholas Telford git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1076908 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-1078. php: ThriftTest.thrift generates invalid PHP libraryBryan Duxbury2011-03-021-10/+10
| | | | | | | | This patch updates ThriftTest.thrft to have a valid php namespace, as well as updating the test client to use the properly namespaced code Patch: Nicholas Telford git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1076316 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-592. php: Make the test client work properly after r815878David Reiss2009-12-091-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@888930 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-387. Add license headers to a bunch of filesDavid Reiss2009-03-303-3/+55
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@760189 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-325. Remove a bunch of uses of the old command line formatDavid Reiss2009-02-171-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@745242 13f79535-47bb-0310-9956-ffa450edef68
* Make "make clean" rules a bit more standard.David Reiss2008-02-241-1/+1
| | | | | | | | | | | | | | Summary: make-generic is some sort of internal undocumented thing. make-local is what is supposed to be used for this stuff. Also use $(RM) instead of "rm -f". Reviewed By: marc Test Plan: make clean git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665498 13f79535-47bb-0310-9956-ffa450edef68
* Thrift PHP generation ReduxMark Slee2007-11-132-5/+13
| | | | | | | | | | | Summary: Chopping the amount of code generated by Thrift for PHP services by two orders of magnitude (approx 25% of the previous size). This is done via putting more logic in a dynamic base class and taking it out of the generated code. Hopefully this wins back the CPU cycles paid just to load code from APC at the cost of a marginal increase in dynamic execution runtime. Reviewed By: sgrimm, dreiss Test Plan: Ran all the tests in trunk/test/php, also tested the API generate code and Falcon, etc. in my sandbox git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665328 13f79535-47bb-0310-9956-ffa450edef68
* Some thrift test code fixesMark Slee2007-02-211-1/+2
| | | | | | | Reviewed By: tbr-testaditya git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665014 13f79535-47bb-0310-9956-ffa450edef68
* Fix relative paths in test dirsMark Slee2007-01-251-1/+1
| | | | | | | Reviewed By: makefile git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664950 13f79535-47bb-0310-9956-ffa450edef68
* Bring Thrift test code up to dateMark Slee2006-10-261-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664852 13f79535-47bb-0310-9956-ffa450edef68
* Thrift PHP TSocketPool clientMark Slee2006-09-081-1/+5
| | | | | | | | | Summary: Client that connects to one of an arbitrary pool of servers Reviewed By: aditya git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664795 13f79535-47bb-0310-9956-ffa450edef68
* Thrift: generate Processors not ServersMark Slee2006-09-071-1/+4
| | | | | | | | | Summary: Because the gen'd code isn't actually a server Reviewed By: aditya git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664794 13f79535-47bb-0310-9956-ffa450edef68
* Thrift: Added support for double type across all languagesMark Slee2006-09-061-0/+7
| | | | | | | | | | | | | | | | | Summary: Just for completeness cause I'm crazy. Let's never use these! Notes: Also made thrift grammar support # style comments, so you can do this at the top of your files #!/usr/local/bin/thrift --cpp /** * This is a thrift def file youc an invoke directly and gen code! */ blah git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664789 13f79535-47bb-0310-9956-ffa450edef68
* -- more thrift Makefile changesAditya Agarwal2006-09-061-1/+1
| | | | | | | Reviewed By: Slee git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664788 13f79535-47bb-0310-9956-ffa450edef68
* Thrift test improvements, tests for both inline and normal PHP code genMark Slee2006-09-013-25/+57
| | | | | | | Summary: So you can A/B test and see 6ms vs. 4ms response time :) git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664773 13f79535-47bb-0310-9956-ffa450edef68
* Thrift now works in PHP, hot stuffMark Slee2006-06-302-0/+354
Summary: End to end communication working in Thrift with PHP Problem: It's a bit slower than pillar still. Need to find out why. Reviewed By: aditya Test Plan: Unit tests are in the test directory. Get lucas on the PHP case... git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664720 13f79535-47bb-0310-9956-ffa450edef68