diff options
author | Julien Pauli <jpauli@php.net> | 2016-07-12 15:46:07 +0200 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2016-07-12 15:46:07 +0200 |
commit | 822498128bbb1cba429fae9dfab8be61493d2eea (patch) | |
tree | f529badf1f45569601241660a6bf5eb296c39bd2 /ext/pdo/pdo_stmt.c | |
parent | 5cce0d7c7c54a420a452ead5d85b93034d252b47 (diff) | |
download | php-git-822498128bbb1cba429fae9dfab8be61493d2eea.tar.gz |
Revert "Fixes #52384: Adds parameter value to dumped output. Also adds output flag indicating presence of PDO::PARAM_INPUT_OUTPUT."
This reverts commit 15336b44d95c41079438af8ac73f77ff893aeef7.
Diffstat (limited to 'ext/pdo/pdo_stmt.c')
-rw-r--r-- | ext/pdo/pdo_stmt.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 2c089f1da6..a2ae2fdf3a 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -2159,36 +2159,10 @@ static PHP_METHOD(PDOStatement, debugDumpParams) php_stream_printf(out TSRMLS_CC, "Key: Name: [%d] %.*s\n", len, len, str); } - php_stream_printf(out TSRMLS_CC, "paramno=%ld\nname=[%d] \"%.*s\"\nis_param=%d\nparam_type=%d\nis_input_output=%d\n", + php_stream_printf(out TSRMLS_CC, "paramno=%ld\nname=[%d] \"%.*s\"\nis_param=%d\nparam_type=%d\n", param->paramno, param->namelen, param->namelen, param->name ? param->name : "", param->is_param, - PDO_PARAM_TYPE(param->param_type), - (param->param_type & PDO_PARAM_INPUT_OUTPUT) == PDO_PARAM_INPUT_OUTPUT); - - /* - * Check the type of the parameter and print out the value. - * - * Most are self explanatory with the following exceptions: - * PDO::PARAM_INT evaluates to a long - * PDO::PARAM_LOB evaluates to a string - */ - switch (Z_TYPE_P(param->parameter)) { - case IS_BOOL: - php_stream_printf(out TSRMLS_CC, "param_value=%s\n", Z_BVAL_P(param->parameter)?"true":"false"); - break; - case IS_NULL: - php_stream_printf(out TSRMLS_CC, "param_value=null\n"); - break; - case IS_LONG: - php_stream_printf(out TSRMLS_CC, "param_value=%ld\n", Z_LVAL_P(param->parameter)); - break; - case IS_STRING: - php_stream_printf(out TSRMLS_CC, "param_value=%s\n", Z_STRVAL_P(param->parameter)); - break; - default: - php_stream_printf(out TSRMLS_CC, "param_value=unknown\n"); - break; - } + param->param_type); zend_hash_move_forward_ex(stmt->bound_params, &pos); } |