summaryrefslogtreecommitdiffstats
path: root/bindings/php5
Commit message (Collapse)AuthorAgeFilesLines
* [php5] Comments starting with '#' are deprecatedFrédéric Péters2011-01-141-1/+1
|
* [bindings php5] remove hardcoding the php5 cli interpreterBenjamin Dauvergne2011-01-043-3/+3
| | | | | The test script did fail under Centos/Fedora because the interpreter for php5 is named php.
* [binding php5] add inline implementation of lasso_log since it is a private ↵Benjamin Dauvergne2010-12-141-0/+22
| | | | function of lasso
* [Strings] add string constant for the internal XML attributes used in dumpsBenjamin Dauvergne2010-09-031-1/+1
| | | | | | | | | Add string constants for signature method, signature type, private key (file path or content), private key password and certificate (file path or content). Add cast for xmlChar constant strings definition in python bindings, it assumed all constant strings were char*.
* [Bindings] improve cleaning and distribution buidingBenjamin Dauvergne2010-07-211-4/+2
|
* [Bindings php5] simplify is_object in php_code.pyBenjamin Dauvergne2010-07-121-2/+1
|
* [Binding php5] use is_rc to match error return typeBenjamin Dauvergne2010-07-121-1/+1
|
* [Bindings] accept simple string in string<->xmlNode converterBenjamin Dauvergne2010-06-291-11/+2
| | | | | | | | | | Some use case ask for passing simple libxml content node (i.e just an UTF-8 string) when a method argument or a field of the xmlNode* type. This commit add a static method in bindings/utils.c named lasso_string_fragment_to_xmlnode which does this transform by trying to parse an XML document then by trying to parse a well balanced XML fragment of only one node (if there is more than one node such as in the string " xxx <tag/> yyy ", we free the node list and return NULL).
* Binding PHP5 tests: fix assertion dump testBenjamin Dauvergne2010-03-021-17/+1
|
* Bindings php5: use accessort from bindings/utils.pyBenjamin Dauvergne2010-02-221-29/+38
| | | | | * bindings/php5/wrapper_source.py: do not handle 'type/variable' tuple directly, use accessors.
* Binding php5: fix generation of list freeingBenjamin Dauvergne2010-02-171-2/+2
| | | | | * bindings/php5/wrapper_source.py: free_glist wants a GList** as first argument.
* Bindings: use lasso_return_xxx macros instead of GLib onesBenjamin Dauvergne2010-02-011-1/+1
|
* Bindings: make binding generation more silentBenjamin Dauvergne2010-02-011-1/+1
| | | | | | | | * bindings/java/Makefile.am bindings/perl/Makefile.am bindings/php5/Makefile.am bindings/python/Makefile.am: use AM_V_GEN, or similar variable for all steps of binding generation, normal output can be activated with the V=1 argument to the 'make' command.
* Bindings php5: string hashtable methods are only used by ID-WSF bindings, ↵Benjamin Dauvergne2010-01-281-2/+2
| | | | | | | | | mark them unused by default * bindings/php5/wrapper_source_top.c: only id-wsf has field of type GHashtTable<char*,char*> so when compiling without --enable-wsf, it give 'unused symbols' errors. Lets mark de the concerned functions as unused.
* Bindings: java, php5, python simplify logic in binding generatorBenjamin Dauvergne2010-01-283-212/+223
| | | | | | * use utils.h macros to manipulate fields. * use utils.py function to filter variables, argument and return types. * finish support of hashtables of strings for php5 and python.
* Bindings PHP5: use is_cstring to match string typesBenjamin Dauvergne2010-01-251-1/+1
|
* Bindings PHP5: rewire php5 tests to the makefiles, make them pass distcheckBenjamin Dauvergne2010-01-186-5/+6
|
* Bindings: add support for time_t to bindings, add support for 'string' type ↵Benjamin Dauvergne2010-01-121-1/+1
| | | | for list in java binding
* Bindings: simplify GList handlingBenjamin Dauvergne2010-01-042-23/+23
|
* Bindings: in bindings.py, parse '(in)' gobject-introspection annotation, in ↵Benjamin Dauvergne2010-01-041-1/+0
| | | | | | | | | | utils.py, use it to reverse default annotation for pointer of pointers Bindings: in bindings.py, improve regular expression for declarations Bindings: parse gobject-introspection annotation in return value documentation, add cast to C calls when parameter type is const in java binding, problem arise with const char ** arrays
* Bindings: make the binding infrastructure understand GObject-introspections ↵Benjamin Dauvergne2010-01-042-15/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | annotations * bindings/bindings.py * bindings/utils.py: add convenience function to treat arguments tuple: (type,name,{annotations}). introduce new argument options, fix that arguments are 3-tuple of the form (type,name,annotations), where annotations is a dictionary. Key of this dictionnary can be: - optional, wheter the argument is necessary, it means it has a default value. - out, means that the pointer is a pointer of pointer, for bindings that can return exceptions, it will be returned instead of the integer error code, the only way to access error codes will be exceptions. - element-type, contained type of a list or an array, - key-type, value-type, type of respectively the key and value of a GHashTable. - transfer, wheter a the callee(for arguments)/caller(for return values) owns the values passed, it can be none,container(if the callee/caller only owns the container not the contained value) or full. doc.parameters is now a 3-tuple of (attribute-name, attribute-description, attribute-annotations) where attribute-annotations is a string of the form '(option1)(option2 option-arguments) etc.'. - add predicates for xml, list and time_t values. improve predicates for cstring and const modifier. * bindings/overrides.xml: 'out' arguments are not well supported for java, so skip functions using them. * bindings/java/lang.py bindings/php5/php_code.py bindings/php5/wrapper_source.py bindings/python/lang.py: - update language specifig binding generators for handling new annotations. - improve python method declaration, handle optional arguments with default values, factorize this chode in two methods, get_python_arg_decl and defval_to_python_value. * bindings/python/tests/Makefile.am bindings/python/tests/idwsf1_tests.py bindings/python/tests/idwsf2_tests.py: make test work with out of source build dir.
* Bindings php5: add support for xmlNode argumentsBenjamin Dauvergne2009-03-272-3/+15
| | | | | | | | * bindings/php5/php_code.py: * bindings/php5/wrapper_source.py: complete error reporting about on documentation treatment. treat xmlNode* arguments (convert string to xmlNode, give as argument, then frees it).
* All: Fix missing field initializer problemsBenjamin Dauvergne2009-01-241-1/+1
| | | | | | * lots of files: Explicitely set all field of initialized structures, in order to remove -Wno-missing-field-initilizers from needed compiler options when using -Wall -Wextra.
* Remove use of xmlFreeDoc for lasso_release_docBenjamin Dauvergne2008-11-041-1/+2
| | | | | | | | | | | | | | - bindings/java/wrapper_top.c, bindings/php4/lasso_php4_helper.c, bindings/php5/wrapper_source_top.c, bindings/python/wrapper_top.c, lasso/id-ff/identity.c, lasso/id-ff/lecp.c, lasso/id-ff/login.c, lasso/id-ff/logout.c, lasso/id-ff/name_registration.c, lasso/id-ff/profile.c, lasso/id-ff/provider.c, lasso/id-ff/server.c, lasso/id-ff/session.c, lasso/id-wsf-2.0/data_service.c, lasso/id-wsf/data_service.c, lasso/id-wsf/discovery.c, lasso/id-wsf/wsf_profile.c, lasso/saml-2.0/ecp.c, lasso/saml-2.0/login.c, lasso/saml-2.0/name_id_management.c, lasso/utils.h, lasso/xml/tools.c, lasso/xml/xml.c, swig/Lasso.i: Remove use of xmlFreeDoc. Use lasso_release_doc instead.
* Clean generated files in bindingsBenjamin Dauvergne2008-11-041-0/+1
| | | | | | | | * bindings/java/Makefile.am: * bindings/php5/Makefile.am: * bindings/python/Makefile.am: - reformat value and add generated files to the MOSTLYCLEANFILES variable
* add functionality to enable debugging flags at runtimeBenjamin Dauvergne2008-10-011-2/+0
| | | | | | | | | | | | | | | | | | | | | | This code permit to set flags, separated by commas, space, tabulations, or colons. This flags activates debug functions like, suppressing validations of signatures or print debugging message about deallocations. The new flags are defined in /lasso/debug.h they can be set using an environment variable named LASSO_FLAG or a function named lasso_set_flag. There are two flags currently: - verify-signature: To deactivate it, pass 'no-verify-signature' inside LASSO_DEBUG. It desactivate signature verification, inside two functions: lasso_query_verify_signature and lasso_provider_verify_signature. - memory-debug: It enabled reporting of memory deallocation inside generic memory dellaocator for LassoNode objects and also in bindings. - lasso/xml/xml.c: do not free a null hash table pointer.
* php: added a root class to define generic getter and setterDamien Laniel2008-09-171-23/+26
|
* * Remove ending blanksBenjamin Dauvergne2008-09-125-9/+9
|
* * When --enable-debugging is used, add -Wno-xxx options to AM_CFLAGS so thatBenjamin Dauvergne2008-09-121-4/+4
| | | | bindings compile with -Werror (-Werror is activated by --enable-debugging now)
* * Fix blanks mismatch (space in *.c and *h files or tabs in *.py files) and ↵Benjamin Dauvergne2008-08-051-1/+1
| | | | formatting
* change dependency with respect to moved files, add moved files to EXTRA_DISTBenjamin Dauvergne2008-08-051-2/+3
|
* Move all files related to the php5 binding insideBenjamin Dauvergne2008-08-056-0/+1370
| | | | the php5 subdirectory.
* add Makefile.in to MAINTAINERCLEANFILES in every Makefile.amBenjamin Dauvergne2008-05-273-0/+3
|
* fix INCLUDES var, put top_builddir firstBenjamin Dauvergne2008-05-261-1/+2
|
* [project @ fpeters@0d.be-20080426153010-i98np134gtvc03sy]Frederic Peters2008-04-291-2/+2
| | | | | | | move php extension dir under $(prefix) Original author: Frederic Peters <fpeters@0d.be> Date: 2008-04-26 17:30:10.185000+02:00
* [project @ fpeters@0d.be-20080423153851-70h4ns9mvsncw150]Frederic Peters2008-04-291-1/+3
| | | | | | | ship lasso.ini Original author: Frederic Peters <fpeters@0d.be> Date: 2008-04-23 17:38:51.027000+02:00
* [project @ fpeters@0d.be-20080423145930-yekpmusph6oob90d]Frederic Peters2008-04-292-2/+8
| | | | | | | | merge Original author: Frederic Peters <fpeters@0d.be> Date: 2008-04-23 16:59:30.377000+02:00
* [project @ fpeters@0d.be-20080423100400-sbs984j19ik6dxzi]Frederic Peters2008-04-292-4/+1
| | | | | | | | merge Original author: Frederic Peters <fpeters@0d.be> Date: 2008-04-23 12:04:00.477000+02:00
* [project @ fpeters@0d.be-20080416142356-cl3d6hb3ru62p8xv]Frederic Peters2008-04-293-1/+3
| | | | | | | | Damien Laniel 2008-04-16 added PHPGObject destructors and fixed some memory management Original author: Frederic Peters <fpeters@0d.be> Date: 2008-04-16 16:23:56.715000+02:00
* [project @ fpeters@0d.be-20080405220112-hv62do6qtb8itkxw]Frederic Peters2008-04-291-1/+1
| | | | | | | optional parameters for LassoDiscovery and LassoDataService Original author: Frederic Peters <fpeters@0d.be> Date: 2008-04-06 00:01:12.703000+02:00
* [project @ fpeters@0d.be-20080328175728-1uv5yyo713uhukck]Frederic Peters2008-04-291-1/+1
| | | | | | | merging benjamin branch (again) Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-28 18:57:28.327000+01:00
* [project @ fpeters@0d.be-20080328175710-s4031yloqsdbmvel]Frederic Peters2008-04-297-10/+17
| | | | | | | merging benjamin branch Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-28 18:57:10.522000+01:00
* [project @ fpeters@0d.be-20080326094754-cw66nuog62q06ekk]Frederic Peters2008-04-291-1/+1
| | | | | | | merging benjamin branch Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-26 10:47:54.384000+01:00
* [project @ fpeters@0d.be-20080325172346-eitu3onvzps4b30z]Frederic Peters2008-04-291-2/+6
| | | | | | | | merging benjamin stuff and adding --enable-id-wsf when id-wsf is asked Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-25 18:23:46.535000+01:00
* [project @ fpeters@0d.be-20080310093300-2iv41ihnuify54po]Frederic Peters2008-04-291-2/+2
| | | | | | | merging benjamin branch Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-10 10:33:00.592000+01:00
* [project @ fpeters@0d.be-20080309152828-pw4gd3lcm7rb7dxd]Frederic Peters2008-04-291-1/+1
| | | | | | | | merging benjamin branch Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-09 16:28:28.854000+01:00
* [project @ fpeters@0d.be-20080118215410-d45drghkhvba7822]Frederic Peters2008-04-292-2/+91
| | | | | | | | | merged Damien branch; and fixed PHP5 binding to use GLib memory management functions Original author: Frederic Peters <fpeters@0d.be> Date: 2008-01-18 22:54:10.239000+01:00
* [project @ fpeters@0d.be-20071120204838-b1q3z1nv4phb1t8r]Frederic Peters2008-04-291-1/+1
| | | | | | | | fixed typo in file to remove Original author: Frederic Peters <fpeters@0d.be> Date: 2007-11-20 21:48:38.865000+01:00
* [project @ fpeters@0d.be-20071120201438-11ybvaefw3o02p7h]Frederic Peters2008-04-291-0/+3
| | | | | | | | clean built files Original author: Frederic Peters <fpeters@0d.be> Date: 2007-11-20 21:14:38.792000+01:00
* [project @ fpeters@0d.be-20071120151830-wdnobbexiv300ibb]Frederic Peters2008-04-291-3/+9
| | | | | | | | | fixed some make distcheck issues (still remaining is access to test data when srcdir != builddir) Original author: Frederic Peters <fpeters@0d.be> Date: 2007-11-20 16:18:30.814000+01:00