diff options
| author | Xinchen Hui <laruence@gmail.com> | 2016-04-15 21:29:27 -0700 |
|---|---|---|
| committer | Xinchen Hui <laruence@gmail.com> | 2016-04-15 21:29:27 -0700 |
| commit | 7e01c518b6a504846f397b787ab285105531d562 (patch) | |
| tree | bd046cfb2a115356b4ac6fb6fbf1180a3036901d /ext/pgsql | |
| parent | 05d53dee7d70a94c0cef57ae2dae735f98a3d833 (diff) | |
| download | php-git-7e01c518b6a504846f397b787ab285105531d562.tar.gz | |
Fixed bug #72028 (pg_query_params(): NULL converts to empty string)
I don't have a pgsql server by hand, so no test script, but the fix must
be right.
Diffstat (limited to 'ext/pgsql')
| -rw-r--r-- | ext/pgsql/pgsql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 84a443e1b0..c22a23eb02 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -1968,7 +1968,7 @@ PHP_FUNCTION(pg_query_params) params = (char **)safe_emalloc(sizeof(char *), num_params, 0); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(pv_param_arr), tmp) { - + ZVAL_DEREF(tmp); if (Z_TYPE_P(tmp) == IS_NULL) { params[i] = NULL; } else { |
