Skip to content

Commit

Permalink
Bumped version
Browse files Browse the repository at this point in the history
- reflects development status
  • Loading branch information
weierophinney committed Jan 29, 2013
1 parent 93e446f commit 72db5a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 52 deletions.
55 changes: 4 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,60 +5,13 @@ Develop: [![Build Status](https://secure.travis-ci.org/zendframework/zf2.png?bra

## RELEASE INFORMATION

*Zend Framework 2.1.0*
*Zend Framework 2.1.1dev*

This is the first minor (feature) release for the version 2 series.
This is the first maintenance release for the version 2.1 series.

29 Jan 2013
DD MMM YYYY

### UPDATES IN 2.1.0

#### Backwards Compatibility Break: Session Storage

The default session storage object has changed from
`Zend\Session\Storage\SessionStorage` to an array adapter
(`Zend\Session\Storage\SessionArrayStorage`; this is a minimal break in
compatibility. Most developers are not working directly with the storage
object, but rather a `Zend\Session\Container`; as a result, switching out the
default will not cause compatibility problems for most developers.

The change was introduced to alleviate issues when working with 3rd party
libraries that access nested members of the `$_SESSION` superglobal.

Those affected will be those (a) directly accessing the storage instance, and
(b) using object notation to access session members:

```php
$foo = null;

/** @var $storage Zend\Session\Storage\SessionStorage */
if (isset($storage->foo)) {
$foo = $storage->foo;
}
```

If you are using array notation, as in the following example, your code remains
forwards compatible:

```php
$foo = null;

/** @var $storage Zend\Session\Storage\SessionStorage */
if (isset($storage['foo'])) {
$foo = $storage['foo'];
}
```

If you are not working directly with the storage instance, you will be
unaffected.

For those affected, the following courses of action are possible:

- Update your code to replace object property notation with array notation, OR
- Initialize and register a `Zend\Session\Storage\SessionStorage` object
explicitly with the session manager instance.

#### Other updates in 2.1.0
### UPDATES IN 2.1.1

Please see CHANGELOG.md.

Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Version/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class Version
/**
* Zend Framework version identification - see compareVersion()
*/
const VERSION = '2.1.0';
const VERSION = '2.1.1dev';

/**
* Github Service Identifier for version information is retreived from
Expand Down

0 comments on commit 72db5a1

Please sign in to comment.