Skip to content

Commit

Permalink
[zend-openid] fix for file storage on windows
Browse files Browse the repository at this point in the history
fix for `Zend_OpenId_Consumer_Storage_File` when symlinks are not used (i.e. on windows)
One of the files created in `Zend_OpenId_Consumer_Storage_File::addAssociations()` was being deleted for some unknown reason, but `Zend_OpenId_Consumer` relies on it to be there.

Fixes errors in OpenId tests when running on windows. i.a.
```
Zend_Auth_Adapter_OpenIdTest::testAuthenticateLoginValid
Failed asserting that false is true.
```
  • Loading branch information
falkenhawk committed Nov 28, 2022
1 parent edd43e8 commit a12da0e
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ public function addAssociation($url, $handle, $macFunc, $secret, $expires)
if ($f2) {
fwrite($f2, $data);
fclose($f2);
@unlink($name1);
$ret = true;
} else {
$ret = false;
Expand Down

0 comments on commit a12da0e

Please sign in to comment.