mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Fixed bug #77273
This commit is contained in:
parent
73596c56e7
commit
cb009b12a5
2 changed files with 6 additions and 1 deletions
4
NEWS
4
NEWS
|
@ -9,6 +9,10 @@ PHP NEWS
|
|||
. Fixed bug #75684 (In mysqlnd_ext_plugin.h the plugin methods family has
|
||||
no external visibility). (Anatol)
|
||||
|
||||
- PDO:
|
||||
. Fixed bug #77273 (array_walk_recursive corrupts value types leading to PDO
|
||||
failure). (Nikita)
|
||||
|
||||
- Sockets:
|
||||
. Fixed bug #76839 (socket_recvfrom may return an invalid 'from' address
|
||||
on MacOS). (Michael Meyer)
|
||||
|
|
|
@ -273,7 +273,7 @@ static PHP_METHOD(PDO, dbh_constructor)
|
|||
pdo_dbh_t *pdbh = NULL;
|
||||
zval *v;
|
||||
|
||||
if ((v = zend_hash_index_find(Z_ARRVAL_P(options), PDO_ATTR_PERSISTENT)) != NULL) {
|
||||
if ((v = zend_hash_index_find_deref(Z_ARRVAL_P(options), PDO_ATTR_PERSISTENT)) != NULL) {
|
||||
if (Z_TYPE_P(v) == IS_STRING &&
|
||||
!is_numeric_string(Z_STRVAL_P(v), Z_STRLEN_P(v), NULL, NULL, 0) && Z_STRLEN_P(v) > 0) {
|
||||
/* user specified key */
|
||||
|
@ -386,6 +386,7 @@ options:
|
|||
if (str_key) {
|
||||
continue;
|
||||
}
|
||||
ZVAL_DEREF(attr_value);
|
||||
pdo_dbh_attribute_set(dbh, long_key, attr_value);
|
||||
} ZEND_HASH_FOREACH_END();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue