Changed return value for PDO::lastInsertId for 8.1+ (#1332)

This commit is contained in:
Jenny Tam 2021-11-18 16:38:19 -08:00 committed by GitHub
parent f52fb48335
commit 14aa44933d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -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
}

View file

@ -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) ""