mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
ext/pdo: Move assignment to declaration for clarity
This commit is contained in:
parent
8c27553538
commit
e5c415cd3a
1 changed files with 2 additions and 2 deletions
|
@ -936,8 +936,8 @@ static bool do_fetch(pdo_stmt_t *stmt, zval *return_value, enum pdo_fetch_type h
|
||||||
case PDO_FETCH_NAMED:
|
case PDO_FETCH_NAMED:
|
||||||
/* already have an item with this name? */
|
/* already have an item with this name? */
|
||||||
{
|
{
|
||||||
zval *curr_val;
|
zval *curr_val = zend_hash_find(Z_ARRVAL_P(return_value), column_name);
|
||||||
if ((curr_val = zend_hash_find(Z_ARRVAL_P(return_value), stmt->columns[i].name))) {
|
if (curr_val != NULL) {
|
||||||
zval arr;
|
zval arr;
|
||||||
if (Z_TYPE_P(curr_val) != IS_ARRAY) {
|
if (Z_TYPE_P(curr_val) != IS_ARRAY) {
|
||||||
/* a little bit of black magic here:
|
/* a little bit of black magic here:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue