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';
|
str[0] = '\0';
|
||||||
return str;
|
return str;
|
||||||
#else
|
#else
|
||||||
return NULL;
|
return ZSTR_EMPTY_ALLOC();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ try {
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
--EXPECTREGEX--
|
--EXPECT--
|
||||||
string\(3\) "200"
|
string(3) "200"
|
||||||
string\(3\) "102"
|
string(3) "102"
|
||||||
(string\(0\) ""|bool\(false\))
|
string(0) ""
|
||||||
|
|
Loading…
Reference in a new issue