Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Resolved coding standard violation brought up in discussion, updated …
Browse files Browse the repository at this point in the history
…readme to reflect BC break
  • Loading branch information
Mike Willbanks committed Jan 10, 2013
1 parent 7f23e2c commit 1a086bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -13,6 +13,15 @@ DD Mmm YYYY

### UPDATES IN 2.1.0

#### Backwards Compatibility Break: Session Storage
The default session storage object has changed to an array adapter; this
is a minimal break in compatibility. Most developers are not working
directly with the storage object, but rather a Container, therefore switching
out the default will not change anything for those developers.
For those who are using it directly:
* Register the old SessionStorage object explicitly, or
* Do not utilize object notation for accessing members of the Storage object.

Please see CHANGELOG.md.

### SYSTEM REQUIREMENTS
Expand Down
3 changes: 2 additions & 1 deletion library/Zend/Session/Storage/SessionArrayStorage.php
Expand Up @@ -269,7 +269,8 @@ public function isLocked($key = null)
if ($readOnly && !$locks) {
// global lock in play; all keys are locked
return true;
} elseif ($readOnly && $locks) {
}
if ($readOnly && $locks) {
return array_key_exists($key, $locks);
}

Expand Down

0 comments on commit 1a086bd

Please sign in to comment.