diff options
author | Christophe Nowicki <cnowicki@easter-eggs.com> | 2004-08-12 16:09:32 +0000 |
---|---|---|
committer | Christophe Nowicki <cnowicki@easter-eggs.com> | 2004-08-12 16:09:32 +0000 |
commit | f82f883008bf770a56f94f2d19ab7ce2998a5392 (patch) | |
tree | 6ca66dda91422ccd7874f19be5b7f3242d325296 /php/environs | |
parent | 043c47a5b2e3b17f5fbebaea27172f8a877a7870 (diff) | |
download | lasso-f82f883008bf770a56f94f2d19ab7ce2998a5392.tar.gz lasso-f82f883008bf770a56f94f2d19ab7ce2998a5392.tar.xz lasso-f82f883008bf770a56f94f2d19ab7ce2998a5392.zip |
remove all debug messages.
Diffstat (limited to 'php/environs')
-rw-r--r-- | php/environs/lasso_federation.c | 2 | ||||
-rw-r--r-- | php/environs/lasso_identity.c | 9 | ||||
-rw-r--r-- | php/environs/lasso_login.c | 14 | ||||
-rw-r--r-- | php/environs/lasso_profile.c | 44 | ||||
-rw-r--r-- | php/environs/lasso_server.c | 10 |
5 files changed, 26 insertions, 53 deletions
diff --git a/php/environs/lasso_federation.c b/php/environs/lasso_federation.c index 63d5718b..b51a4d95 100644 --- a/php/environs/lasso_federation.c +++ b/php/environs/lasso_federation.c @@ -40,7 +40,7 @@ PHP_FUNCTION(lasso_federation_new) { int num_args; - zend_printf("DEBUG: lasso_federation_new\n"); + if ((num_args = ZEND_NUM_ARGS()) != 1) WRONG_PARAM_COUNT diff --git a/php/environs/lasso_identity.c b/php/environs/lasso_identity.c index 4c25c209..539a8928 100644 --- a/php/environs/lasso_identity.c +++ b/php/environs/lasso_identity.c @@ -37,7 +37,7 @@ PHP_FUNCTION(lasso_identity_new) { LassoIdentity *identity; - zend_printf("DEBUG: lasso_identity_new\n"); + identity = lasso_identity_new(); @@ -51,7 +51,7 @@ PHP_FUNCTION(lasso_identity_destroy) { LassoIdentity *identity; zval *param; - zend_printf("DEBUG: lasso_identity_destroy\n"); + int num_args; @@ -64,7 +64,6 @@ PHP_FUNCTION(lasso_identity_destroy) { ZEND_FETCH_RESOURCE(identity, LassoIdentity *, ¶m, -1, le_lassoidentity_name, le_lassoidentity); - zend_printf("DEBUG: identity at 0x%p\n", identity); lasso_identity_destroy(identity); @@ -80,7 +79,7 @@ PHP_FUNCTION(lasso_identity_dump) { int num_args; - zend_printf("DEBUG: lasso_identity_dump\n"); + if ((num_args = ZEND_NUM_ARGS()) != 1) WRONG_PARAM_COUNT @@ -91,8 +90,6 @@ PHP_FUNCTION(lasso_identity_dump) { ZEND_FETCH_RESOURCE(identity, LassoIdentity *, ¶m, -1, le_lassoidentity_name, le_lassoidentity); - zend_printf("DEBUG: identity at 0x%p\n", identity); - identity_dump = lasso_identity_dump(identity); RETURN_STRING(identity_dump, 1); diff --git a/php/environs/lasso_login.c b/php/environs/lasso_login.c index 359c80e7..b2f24101 100644 --- a/php/environs/lasso_login.c +++ b/php/environs/lasso_login.c @@ -39,7 +39,7 @@ PHP_FUNCTION(lasso_login_new) { LassoServer *server; zval *param; - zend_printf("DEBUG: lasso_login_new\n"); + int num_args; @@ -65,7 +65,7 @@ PHP_FUNCTION(lasso_login_init_authn_request) { char *meta; int meta_len; - zend_printf("DEBUG: lasso_login_init_authn_request\n"); + int num_args; int ret; @@ -94,7 +94,7 @@ PHP_FUNCTION(lasso_login_destroy) { LassoLogin *login; zval *param; - zend_printf("DEBUG: lasso_login_destroy\n"); + int num_args; @@ -121,7 +121,7 @@ PHP_FUNCTION(lasso_login_new_from_dump) { char *dump; int dump_len; - zend_printf("DEBUG: lasso_login_new_from_dump\n"); + zval *parm_server, *parm_user; @@ -150,7 +150,7 @@ PHP_FUNCTION(lasso_login_build_request_msg) { LassoLogin *login; - zend_printf("DEBUG: lasso_login_build_request_msg\n"); + zval *parm; @@ -177,14 +177,12 @@ PHP_FUNCTION(lasso_login_build_authn_request_msg) { char *remote_providerID; int remote_providerID_len; - zend_printf("DEBUG: lasso_login_build_authn_request_msg\n"); - zval *parm; int num_args; int ret; - if ((num_args = ZEND_NUM_ARGS()) != 1) + if ((num_args = ZEND_NUM_ARGS()) != 2) WRONG_PARAM_COUNT if (zend_parse_parameters(num_args TSRMLS_CC, "zs", &parm, diff --git a/php/environs/lasso_profile.c b/php/environs/lasso_profile.c index 3f107e6e..c3bec8dc 100644 --- a/php/environs/lasso_profile.c +++ b/php/environs/lasso_profile.c @@ -44,7 +44,7 @@ PHP_FUNCTION(lasso_profile_new) zval *parm_server, *parm_identity, *parm_session; - zend_printf("DEBUG: lasso_profile_new\n"); + int num_args; @@ -58,17 +58,11 @@ PHP_FUNCTION(lasso_profile_new) ZEND_FETCH_RESOURCE(server, LassoServer *, &parm_server, -1, le_lassoserver_name, le_lassoserver); - zend_printf("DEBUG: server at 0x%p\n", server); - ZEND_FETCH_RESOURCE(identity, LassoIdentity *, &parm_identity, -1, le_lassoidentity_name, le_lassoidentity); - zend_printf("DEBUG: identity at 0x%p\n", identity); - ZEND_FETCH_RESOURCE(session, LassoSession *, &parm_session, -1, le_lassosession_name, le_lassosession); - zend_printf("DEBUG: session at 0x%p\n", session); - ctx = lasso_profile_new(server, identity, session); ZEND_REGISTER_RESOURCE(return_value, ctx, le_lassoprofile); @@ -79,35 +73,35 @@ PHP_FUNCTION(lasso_profile_new) /* {{{ proto lasso_profile_dump() */ PHP_FUNCTION(lasso_profile_dump) { - zend_printf("DEBUG: lasso_profile_dump\n"); + } /* }}} */ /* {{{ proto lasso_profile_set_remote_providerid() */ PHP_FUNCTION(lasso_profile_set_remote_providerid) { - zend_printf("DEBUG: lasso_profile_set_remote_providerid\n"); + } /* }}} */ /* {{{ proto lasso_profile_set_response_status() */ PHP_FUNCTION(lasso_profile_set_response_status) { - zend_printf("DEBUG: lasso_profile_set_response_status\n"); + } /* }}} */ /* {{{ proto lasso_profile_user_from_dump() */ PHP_FUNCTION(lasso_profile_user_from_dump) { - zend_printf("DEBUG: lasso_profile_user_from_dump\n"); + } /* }}} */ /* {{{ proto lasso_profile_get_request_type_from_soap_msg() */ PHP_FUNCTION(lasso_profile_get_request_type_from_soap_msg) { - zend_printf("DEBUG: lasso_profile_get_request_type_from_soap_msg\n"); + } /* }}} */ @@ -117,7 +111,7 @@ PHP_FUNCTION(lasso_cast_to_profile) LassoProfile *ctx; LassoLogin *login; - zend_printf("DEBUG: lasso_cast_to_profile\n"); + zval *parm; @@ -133,8 +127,6 @@ PHP_FUNCTION(lasso_cast_to_profile) ZEND_FETCH_RESOURCE(login, LassoLogin *, &parm, -1, le_lassologin_name, le_lassologin); - zend_printf("DEBUG: login at 0x%p\n", login); - ctx = LASSO_PROFILE(login); ZEND_REGISTER_RESOURCE(return_value, ctx, le_lassoprofile); @@ -146,7 +138,7 @@ PHP_FUNCTION(lasso_profile_get_request) { LassoProfile *ctx; LassoNode *node; - zend_printf("DEBUG: lasso_profile_get_request\n"); + zval *parm; @@ -162,9 +154,7 @@ PHP_FUNCTION(lasso_profile_get_request) { ZEND_FETCH_RESOURCE(ctx, LassoProfile *, &parm, -1, le_lassoprofile_name, le_lassoprofile); - zend_printf("DEBUG: profile at 0x%p\n", ctx); - zend_printf("DEBUG: ctx->request at 0x%p\n", ctx->request); node = ctx->request; ZEND_REGISTER_RESOURCE(return_value, node, le_lassonode); @@ -175,7 +165,7 @@ PHP_FUNCTION(lasso_profile_get_msg_url) { LassoProfile *ctx; LassoNode *node; - zend_printf("DEBUG: lasso_profile_get_msg_url\n"); + zval *parm; @@ -191,10 +181,6 @@ PHP_FUNCTION(lasso_profile_get_msg_url) { ZEND_FETCH_RESOURCE(ctx, LassoProfile *, &parm, -1, le_lassoprofile_name, le_lassoprofile); - zend_printf("DEBUG: profile at 0x%p\n", ctx); - - zend_printf("DEBUG: ctx->msg_url at 0x%p\n", ctx->msg_url); - if (ctx->msg_url) RETURN_STRING(ctx->msg_url, 1); } @@ -206,7 +192,7 @@ PHP_FUNCTION(lasso_profile_get_msg_body) { LassoProfile *ctx; LassoNode *node; - zend_printf("DEBUG: lasso_profile_get_msg_body\n"); + zval *parm; @@ -222,10 +208,6 @@ PHP_FUNCTION(lasso_profile_get_msg_body) { ZEND_FETCH_RESOURCE(ctx, LassoProfile *, &parm, -1, le_lassoprofile_name, le_lassoprofile); - zend_printf("DEBUG: profile at 0x%p\n", ctx); - - zend_printf("DEBUG: ctx->msg_body at 0x%p\n", ctx->msg_body); - if (ctx->msg_body) RETURN_STRING(ctx->msg_body, 1); } @@ -236,7 +218,7 @@ PHP_FUNCTION(lasso_profile_get_msg_relaystate) { LassoProfile *ctx; LassoNode *node; - zend_printf("DEBUG: lasso_profile_get_msg_relaystate\n"); + zval *parm; @@ -252,10 +234,6 @@ PHP_FUNCTION(lasso_profile_get_msg_relaystate) { ZEND_FETCH_RESOURCE(ctx, LassoProfile *, &parm, -1, le_lassoprofile_name, le_lassoprofile); - zend_printf("DEBUG: profile at 0x%p\n", ctx); - - zend_printf("DEBUG: ctx->msg_relayState at 0x%p\n", ctx->msg_relayState); - if (ctx->msg_relayState) RETURN_STRING(ctx->msg_relayState, 1); } diff --git a/php/environs/lasso_server.c b/php/environs/lasso_server.c index 4abb9d60..15af83ab 100644 --- a/php/environs/lasso_server.c +++ b/php/environs/lasso_server.c @@ -52,7 +52,7 @@ PHP_FUNCTION(lasso_server_new) { int num_args; - zend_printf("DEBUG: lasso_server_new\n"); + if ((num_args = ZEND_NUM_ARGS()) != 5) WRONG_PARAM_COUNT @@ -82,7 +82,7 @@ PHP_FUNCTION(lasso_server_add_provider) { char *b; int b_len; - zend_printf("DEBUG: lasso_server_add_provider\n"); + int num_args; @@ -111,7 +111,7 @@ PHP_FUNCTION(lasso_server_dump) { int num_args; - zend_printf("DEBUG: lasso_server_dump\n"); + if ((num_args = ZEND_NUM_ARGS()) != 1) WRONG_PARAM_COUNT @@ -134,7 +134,7 @@ PHP_FUNCTION(lasso_server_destroy) { LassoServer *server; zval *param; - zend_printf("DEBUG: lasso_server_destroy\n"); + int num_args; @@ -161,7 +161,7 @@ PHP_FUNCTION(lasso_server_new_from_dump) { int dump_len; int num_args; - zend_printf("DEBUG: lasso_server_new_from_dump\n"); + if ((num_args = ZEND_NUM_ARGS()) != 1) WRONG_PARAM_COUNT |