plcapi.git
8 years agoMerge pull request #27 from gggeek/php53 4.0.0-alpha
Gaetano Giunta [Sun, 12 Jul 2015 23:08:24 +0000 (00:08 +0100)]
Merge pull request #27 from gggeek/php53

Move branch php53 into master

8 years agoTag 4.0.0-alpha
gggeek [Sun, 12 Jul 2015 23:06:29 +0000 (00:06 +0100)]
Tag 4.0.0-alpha

8 years agoClean up old-API code
gggeek [Sun, 12 Jul 2015 19:47:00 +0000 (20:47 +0100)]
Clean up old-API code

8 years agoAdd some commented code to remind the user that the client can accept many charsets now
gggeek [Sun, 12 Jul 2015 19:24:09 +0000 (20:24 +0100)]
Add some commented code to remind the user that the client can accept many charsets now

8 years agoAdd a benchmark to see if the new api for Value is slower or faster than the old one
gggeek [Sun, 12 Jul 2015 19:23:40 +0000 (20:23 +0100)]
Add a benchmark to see if the new api for Value is slower or faster than the old one

8 years agoImplement interface ArrayAccess in the Value class
gggeek [Sun, 12 Jul 2015 17:59:39 +0000 (18:59 +0100)]
Implement interface ArrayAccess in the Value class

8 years agoFix failing tests: charsets mixing up w.keepalives
gggeek [Sun, 12 Jul 2015 13:17:07 +0000 (14:17 +0100)]
Fix failing tests: charsets mixing up w.keepalives

8 years agoOne more character-set related test
gggeek [Sun, 12 Jul 2015 13:07:43 +0000 (14:07 +0100)]
One more character-set related test

8 years agoUpdate docs
gggeek [Sun, 12 Jul 2015 12:42:15 +0000 (13:42 +0100)]
Update docs

8 years agoRemove code which has been commented out for almost ten years...
gggeek [Sun, 12 Jul 2015 12:19:47 +0000 (13:19 +0100)]
Remove code which has been commented out for almost ten years...

8 years agoAllow easier configuration to detect exotic charsets when the received payload does...
gggeek [Sun, 12 Jul 2015 11:34:53 +0000 (12:34 +0100)]
Allow easier configuration to detect exotic charsets when the received payload does not declare them

8 years agoDocs and formatting to please Scrutinizer
gggeek [Sun, 12 Jul 2015 10:40:27 +0000 (11:40 +0100)]
Docs and formatting to please Scrutinizer

8 years agoTry to make hhvm test runs faster
gggeek [Sun, 12 Jul 2015 00:25:54 +0000 (01:25 +0100)]
Try to make hhvm test runs faster

8 years ago3rd time is a charm?
gggeek [Sun, 12 Jul 2015 00:05:27 +0000 (01:05 +0100)]
3rd time is a charm?

8 years ago2nd try at test stabilization
gggeek [Sat, 11 Jul 2015 23:45:23 +0000 (00:45 +0100)]
2nd try at test stabilization

8 years agoTry to stabilize recently introduced test
gggeek [Sat, 11 Jul 2015 23:05:34 +0000 (00:05 +0100)]
Try to stabilize recently introduced test

8 years agoAllow hhvm testsuite failures not to fail the Travis build
gggeek [Sat, 11 Jul 2015 21:48:46 +0000 (22:48 +0100)]
Allow hhvm testsuite failures not to fail the Travis build

8 years agoFix ArrayIterator interface implementation; remove usage of arraysize(), structsize...
gggeek [Wed, 17 Jun 2015 22:18:50 +0000 (23:18 +0100)]
Fix ArrayIterator interface implementation; remove usage of arraysize(), structsize(), structreset() and structeach() from the codebase

8 years agoAdded support for Countable and IteratorAggregate interfaces
gggeek [Sun, 7 Jun 2015 19:13:59 +0000 (21:13 +0200)]
Added support for Countable and IteratorAggregate interfaces

8 years agoAdd a test for receiving requests which use non-utf8 encoding
gggeek [Sun, 7 Jun 2015 14:36:58 +0000 (16:36 +0200)]
Add a test for receiving requests which use non-utf8 encoding

8 years agoMinor cleanup in variable names
gggeek [Sun, 7 Jun 2015 13:47:01 +0000 (15:47 +0200)]
Minor cleanup in variable names

8 years agomake parsingbugstests executable on their own
gggeek [Sat, 30 May 2015 15:29:41 +0000 (17:29 +0200)]
make parsingbugstests executable on their own

8 years agowrite chagelog of debugger in its interface
gggeek [Sat, 30 May 2015 13:47:06 +0000 (15:47 +0200)]
write chagelog of debugger in its interface

8 years agofix backwards compatibility in xmlrpc_wrappers.inc
gggeek [Sat, 30 May 2015 13:46:12 +0000 (15:46 +0200)]
fix backwards compatibility in xmlrpc_wrappers.inc

8 years agoAdvance in compatibility docs
gggeek [Sat, 30 May 2015 13:22:12 +0000 (15:22 +0200)]
Advance in compatibility docs

8 years agoFix: debugger was not able any more to generate wrapped client code
gggeek [Sat, 30 May 2015 12:49:59 +0000 (14:49 +0200)]
Fix: debugger was not able any more to generate wrapped client code

8 years agoCorrectly reset php error handler even when user-code raises an exception
gggeek [Sat, 30 May 2015 11:48:28 +0000 (13:48 +0200)]
Correctly reset php error handler even when user-code raises an exception

8 years agoFix: reset debug and error messages between server execution calls
gggeek [Sat, 30 May 2015 10:09:55 +0000 (12:09 +0200)]
Fix: reset debug and error messages between server execution calls

8 years agoFix: better generation of method signatures in wrap_php_ calls
gggeek [Sat, 30 May 2015 09:47:07 +0000 (11:47 +0200)]
Fix: better generation of method signatures in wrap_php_ calls

8 years agoadd test for debug messages set into the server by client code
gggeek [Sat, 30 May 2015 09:28:06 +0000 (11:28 +0200)]
add test for debug messages set into the server by client code

8 years agoBetter support for 'undefined' values in debugger's 'load method synopsis'
gggeek [Sat, 30 May 2015 09:18:29 +0000 (11:18 +0200)]
Better support for 'undefined' values in debugger's 'load method synopsis'

8 years agotwo fixes for 'load method synopsis' action in the debugger; add tests for NIL values...
gggeek [Sat, 30 May 2015 09:04:18 +0000 (11:04 +0200)]
two fixes for 'load method synopsis' action in the debugger; add tests for NIL values in the dispatch map

8 years agoFix bugs found by Scrutinizer
gggeek [Mon, 25 May 2015 19:39:33 +0000 (20:39 +0100)]
Fix bugs found by Scrutinizer

8 years agoUpdate docs - in particular add one (incomplete) file describing all API changes...
gggeek [Mon, 25 May 2015 19:14:08 +0000 (20:14 +0100)]
Update docs - in particular add one (incomplete) file describing all API changes and the quirks of 'compatibility mode'

8 years agoAdd more compatibility stuff in xmlrpcs.inc; split the function used to serve system...
gggeek [Mon, 25 May 2015 18:47:00 +0000 (19:47 +0100)]
Add more compatibility stuff in xmlrpcs.inc; split the function used to serve system.getCapabilities call to allow it to be changed in subclasses

8 years agoAdd a warning to the manual; move more method names to camelCase; fix support for...
gggeek [Mon, 25 May 2015 17:42:21 +0000 (18:42 +0100)]
Add a warning to the manual; move more method names to camelCase; fix support for very legacy calling convention in wrap_xmlrpc_method

8 years agoAdd one more test for wrapped php functions: preserve php objects in results
gggeek [Sun, 24 May 2015 00:59:27 +0000 (01:59 +0100)]
Add one more test for wrapped php functions: preserve php objects in results

8 years agoAdd test for the method signature of wrapped functions
gggeek [Sat, 23 May 2015 23:49:08 +0000 (00:49 +0100)]
Add test for the method signature of wrapped functions

8 years agoSimplify code generated by wrap_php_function; make sure its closure version is identi...
gggeek [Sat, 23 May 2015 23:33:52 +0000 (00:33 +0100)]
Simplify code generated by wrap_php_function; make sure its closure version is identical wrt the nr. of parameters received

8 years agoMake sure all error messages have the method name
gggeek [Sat, 23 May 2015 22:13:56 +0000 (23:13 +0100)]
Make sure all error messages have the method name

8 years agoDo not generate invalid php code when wrapping a closure in generate-code mode
gggeek [Sat, 23 May 2015 22:13:31 +0000 (23:13 +0100)]
Do not generate invalid php code when wrapping a closure in generate-code mode

8 years agotest exceptions thrown in wrapped code; make testsuite faster by not wrapping the...
gggeek [Sat, 23 May 2015 20:40:54 +0000 (21:40 +0100)]
test exceptions thrown in wrapped code; make testsuite faster by not wrapping the whole server

8 years agoAdd a test for wrapping closures
gggeek [Sat, 23 May 2015 20:14:27 +0000 (21:14 +0100)]
Add a test for wrapping closures

8 years agoFix buildWrapFunctionSource which had been forgotten when moving analyzed phpdoc...
gggeek [Sat, 23 May 2015 20:13:49 +0000 (21:13 +0100)]
Fix buildWrapFunctionSource which had been forgotten when moving analyzed phpdoc params to named instead of positional

8 years agoremove last global variable from the codebase
gggeek [Sat, 23 May 2015 19:41:11 +0000 (20:41 +0100)]
remove last global variable from the codebase

8 years agoAdd one more test for wrap_method; add some comments to tests files; mark http tests...
gggeek [Sat, 23 May 2015 18:58:45 +0000 (19:58 +0100)]
Add one more test for wrap_method; add some comments to tests files; mark http tests skipped when skipped instead of failed

8 years agoRemove usage of one global var in favor of static class var
gggeek [Sat, 23 May 2015 18:57:34 +0000 (19:57 +0100)]
Remove usage of one global var in favor of static class var

8 years agoFix one signature of proxy method in proxy.php demo file
gggeek [Sat, 23 May 2015 18:29:03 +0000 (19:29 +0100)]
Fix one signature of proxy method in proxy.php demo file

8 years agoWIP: Make wrap_xmlrpc_method return a closure by default instead of eval'ing a functi...
gggeek [Sun, 17 May 2015 22:44:14 +0000 (23:44 +0100)]
WIP: Make wrap_xmlrpc_method return a closure by default instead of eval'ing a function definition

8 years agorename variables and clean up comments
gggeek [Sun, 17 May 2015 15:55:46 +0000 (16:55 +0100)]
rename variables and clean up comments

8 years agofix previous commit: leftover debug code in server.php
gggeek [Sun, 17 May 2015 01:25:49 +0000 (02:25 +0100)]
fix previous commit: leftover debug code in server.php

8 years agoImprove generation of methods signature by the Wrapper class
gggeek [Sun, 17 May 2015 01:17:04 +0000 (02:17 +0100)]
Improve generation of methods signature by the Wrapper class

8 years agoShow in debugger the count of server methods found
gggeek [Fri, 15 May 2015 00:52:23 +0000 (01:52 +0100)]
Show in debugger the count of server methods found

8 years agoFix wrap_php_class(); add more tests for wrapping
gggeek [Fri, 15 May 2015 00:51:53 +0000 (01:51 +0100)]
Fix wrap_php_class(); add more tests for wrapping

8 years agoUpdate comments
gggeek [Tue, 12 May 2015 22:56:03 +0000 (23:56 +0100)]
Update comments

8 years agoRefactor demo files (client side): remove redundant ones; make sure all use existing...
gggeek [Tue, 12 May 2015 22:49:19 +0000 (23:49 +0100)]
Refactor demo files (client side): remove redundant ones; make sure all use existing servers; add a proxy example

8 years agoRefactor the Wrapper class to generate closures by default and avoid usage of 'eval'
gggeek [Wed, 6 May 2015 22:38:35 +0000 (23:38 +0100)]
Refactor the Wrapper class to generate closures by default and avoid usage of 'eval'

8 years agoAdd a test for registering anonymous functions in the server dispatch map
gggeek [Sat, 2 May 2015 16:45:12 +0000 (17:45 +0100)]
Add a test for registering anonymous functions in the server dispatch map

8 years agoset code highlighting in snippets
gggeek [Tue, 28 Apr 2015 23:47:39 +0000 (00:47 +0100)]
set code highlighting in snippets

8 years agoimprove readme
gggeek [Tue, 28 Apr 2015 23:30:12 +0000 (00:30 +0100)]
improve readme

8 years agoMove to asciidoc as principal documentation format
gggeek [Tue, 28 Apr 2015 23:20:41 +0000 (00:20 +0100)]
Move to asciidoc as principal documentation format

9 years agotry again fixing xsl paths for docs
gggeek [Mon, 27 Apr 2015 21:41:03 +0000 (22:41 +0100)]
try again fixing xsl paths for docs

9 years agoone more doc build fix
gggeek [Mon, 27 Apr 2015 21:01:29 +0000 (22:01 +0100)]
one more doc build fix

9 years agoFixes for doc generation with new dir structure
gggeek [Mon, 27 Apr 2015 20:56:58 +0000 (21:56 +0100)]
Fixes for doc generation with new dir structure

9 years agoRestructure the documentation folder; add more options to makefile
gggeek [Mon, 27 Apr 2015 20:49:08 +0000 (21:49 +0100)]
Restructure the documentation folder; add more options to makefile

9 years agoRemove gitignore from docs dir, as we now build in a separate directory
gggeek [Mon, 27 Apr 2015 01:50:07 +0000 (02:50 +0100)]
Remove gitignore from docs dir, as we now build in a separate directory

9 years agoInstall the docbook xslts via composer for doc generation
gggeek [Mon, 27 Apr 2015 01:36:19 +0000 (02:36 +0100)]
Install the docbook xslts via composer for doc generation

9 years agoMore readme tags to display on github
gggeek [Mon, 27 Apr 2015 01:33:24 +0000 (02:33 +0100)]
More readme tags to display on github

9 years agoAdd generation of docs to pakefile
gggeek [Mon, 27 Apr 2015 01:32:42 +0000 (02:32 +0100)]
Add generation of docs to pakefile

9 years agoAdd pakefile as replacement for makefile
gggeek [Mon, 27 Apr 2015 00:10:46 +0000 (01:10 +0100)]
Add pakefile as replacement for makefile

9 years agoTest if we can get faster tests for hhvm
gggeek [Sun, 19 Apr 2015 22:03:43 +0000 (23:03 +0100)]
Test if we can get faster tests for hhvm

9 years agoMake debugger use utf8 by default
gggeek [Sun, 19 Apr 2015 21:59:55 +0000 (22:59 +0100)]
Make debugger use utf8 by default

9 years agoSet default internal charset to UTF8 and change tests accordingly; add function has_e...
gggeek [Sun, 19 Apr 2015 20:22:22 +0000 (21:22 +0100)]
Set default internal charset to UTF8 and change tests accordingly; add function has_encoding() from lib ver. 3.0.1; fixed one missing autoload in xmlrpc.inc; proper usage of actual and expected in all tests

9 years agoComments and whitespace in discuss.php
gggeek [Sun, 19 Apr 2015 18:48:03 +0000 (19:48 +0100)]
Comments and whitespace in discuss.php

9 years agoRemove legacy api usage from comment.php
gggeek [Sun, 19 Apr 2015 18:42:57 +0000 (19:42 +0100)]
Remove legacy api usage from comment.php

9 years agoFix: encoder needs the kindOf method on requests
gggeek [Sun, 19 Apr 2015 18:42:13 +0000 (19:42 +0100)]
Fix: encoder needs the kindOf method on requests

9 years agofix: the client can now successfully call methods using ISO-8859-1 or UTF-8 character...
gggeek [Sat, 18 Apr 2015 01:06:44 +0000 (02:06 +0100)]
fix: the client can now successfully call methods using ISO-8859-1 or UTF-8 characters in their name

9 years agoMake the debugger tolerate latin-1 characters in all fields, not just method payload
gggeek [Sat, 18 Apr 2015 00:40:26 +0000 (01:40 +0100)]
Make the debugger tolerate latin-1 characters in all fields, not just method payload

9 years agoTerminate files with a NL to appease sensiolabs
gggeek [Fri, 17 Apr 2015 23:38:14 +0000 (00:38 +0100)]
Terminate files with a NL to appease sensiolabs

9 years agoRemove legacy code from vardemo demo file
gggeek [Fri, 17 Apr 2015 23:34:23 +0000 (00:34 +0100)]
Remove legacy code from vardemo demo file

9 years agoFor travis tests, use the version of phpunit which we install via composer, instead...
gggeek [Fri, 17 Apr 2015 23:21:22 +0000 (00:21 +0100)]
For travis tests, use the version of phpunit which we install via composer, instead of the system one (might fix autoloading pbl for Logger)

9 years agoRefactor demo server: do not rely any more on legacy, more CamelCasiness
gggeek [Fri, 17 Apr 2015 23:05:30 +0000 (00:05 +0100)]
Refactor demo server: do not rely any more on legacy, more CamelCasiness

9 years agoFix debugger for the case of a big payload with latin1 characters
gggeek [Fri, 17 Apr 2015 23:03:23 +0000 (00:03 +0100)]
Fix debugger for the case of a big payload with latin1 characters

9 years agoFix: php_2_xmlrpc_type is not a public function anymore
gggeek [Fri, 17 Apr 2015 23:02:43 +0000 (00:02 +0100)]
Fix: php_2_xmlrpc_type is not a public function anymore

9 years agoRemove docblock injected by phpstorm
gggeek [Tue, 14 Apr 2015 23:52:46 +0000 (00:52 +0100)]
Remove docblock injected by phpstorm

9 years agoMake charset-related tests more friendly to hhvm; stricter tests for demo files
gggeek [Tue, 14 Apr 2015 23:15:44 +0000 (00:15 +0100)]
Make charset-related tests more friendly to hhvm; stricter tests for demo files

9 years agoTry to echo hhvm error log on failure
gggeek [Tue, 14 Apr 2015 22:33:50 +0000 (23:33 +0100)]
Try to echo hhvm error log on failure

9 years agoImprove the way test suite reports error messages at DEBUG=1
gggeek [Tue, 14 Apr 2015 22:29:15 +0000 (23:29 +0100)]
Improve the way test suite reports error messages at DEBUG=1

9 years agoFix: fatal hhvm error when outputting log messages in us-ascii charset
gggeek [Tue, 14 Apr 2015 22:04:27 +0000 (23:04 +0100)]
Fix: fatal hhvm error when outputting log messages in us-ascii charset

9 years agoFix: lowercase class name makes debugger break on HHVM
gggeek [Tue, 14 Apr 2015 21:48:11 +0000 (22:48 +0100)]
Fix: lowercase class name makes debugger break on HHVM

9 years agoFix 2 comments
gggeek [Sun, 12 Apr 2015 13:31:42 +0000 (14:31 +0100)]
Fix 2 comments

9 years agoConsistent with server, at debug level 1, request will not dump the rebuilt php objec...
gggeek [Sun, 12 Apr 2015 12:48:05 +0000 (13:48 +0100)]
Consistent with server, at debug level 1, request will not dump the rebuilt php object to screen; let paring tests echo the xml they use, as http tests do

9 years agoFix one phpdoc
gggeek [Sun, 12 Apr 2015 12:11:09 +0000 (13:11 +0100)]
Fix one phpdoc

9 years agoMinor fix in one charset-related test
gggeek [Sun, 12 Apr 2015 12:05:28 +0000 (13:05 +0100)]
Minor fix in one charset-related test

9 years agoMake latin-1 tests more ide-proof
gggeek [Sun, 12 Apr 2015 11:59:05 +0000 (12:59 +0100)]
Make latin-1 tests more ide-proof

9 years agoComments fixing
gggeek [Sun, 12 Apr 2015 11:44:05 +0000 (12:44 +0100)]
Comments fixing

9 years agoMove from static logging calls to a singleton
gggeek [Sun, 12 Apr 2015 11:43:38 +0000 (12:43 +0100)]
Move from static logging calls to a singleton

9 years agobetter name for undefined var used for testing
gggeek [Sun, 12 Apr 2015 11:42:22 +0000 (12:42 +0100)]
better name for undefined var used for testing

9 years agoAlways display debug messages even when there's badly encoded chars in them
gggeek [Sun, 12 Apr 2015 11:27:00 +0000 (12:27 +0100)]
Always display debug messages even when there's badly encoded chars in them

9 years agoPRS-2 formatting: else and braces
gggeek [Sat, 11 Apr 2015 23:49:34 +0000 (00:49 +0100)]
PRS-2 formatting: else and braces