Changed return value for PDO::lastInsertId for 8.1+ (#1332)
This commit is contained in:
parent
f52fb48335
commit
14aa44933d
|
@ -1616,7 +1616,7 @@ zend_string * pdo_sqlsrv_dbh_last_id(_Inout_ pdo_dbh_t *dbh, _In_ const zend_str
|
|||
str[0] = '\0';
|
||||
return str;
|
||||
#else
|
||||
return NULL;
|
||||
return ZSTR_EMPTY_ALLOC();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ try {
|
|||
|
||||
|
||||
?>
|
||||
--EXPECTREGEX--
|
||||
string\(3\) "200"
|
||||
string\(3\) "102"
|
||||
(string\(0\) ""|bool\(false\))
|
||||
--EXPECT--
|
||||
string(3) "200"
|
||||
string(3) "102"
|
||||
string(0) ""
|
||||
|
|
Loading…
Reference in a new issue