Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.0.7 alpha #15

Merged
merged 11 commits into from
Mar 25, 2015
Merged

0.0.7 alpha #15

merged 11 commits into from
Mar 25, 2015

Conversation

jeremykendall
Copy link
Owner

Changes

  • Adds PHP 7 to .travis.yml
  • Bootstrap now sets Zend\Authentication\Storage\Session as default storage

BC Breaking Changes

  • 302 redirect to named login route now throws HttpUnauthorizedException. Fixes Throw http 401 rather than redirect to 'login' #11.
  • Password Validator upgraded to 3.*
    • Includes BC breaking change from 3.0.0
    • Details available here
    • Change should have no effect on Slim Auth implementation.

Password Validator update is a BC breaking change. See
https://github.com/jeremykendall/password-validator/releases/tag/3.0.0
for details.
The former implementation felt far too magical, considering it was very
confusing to not add storage to the Bootstrap, there was no default
storage in the Bootstrap, yet default storage was indeed set, but a
level or two below Bootstrap. This change makes it very clear what the
default storage implementation is and where it's getting set.
PHP 7 tests keep segfaulting. Ironically, all the tests run, and *then*
it segfaults, exiting with 139. Seems to be b/c xdebug is not installed
for PHP 7, but I don't care enough about PHP 7 to try and fix this. Not
yet, anyhow.

Here's an example of a PHP 7 segfault:

```
PHP 7.0.0-dev (cli) (built: Mar 24 2015 11:08:38)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies

 ... snip ...

PHPUnit 4.5.0 by Sebastian Bergmann and contributors.

Configuration read from /home/travis/build/jeremykendall/slim-auth/travis.xml

The Xdebug extension is not loaded. No code coverage will be generated.

...................

Time: 542 ms, Memory: 8.00Mb

OK (19 tests, 51 assertions)

Collecting CodeCoverage information...
Sending coverage output...
/home/travis/build.sh: line 41:  3460 Segmentation fault      phpunit -c travis.xml
travis_time:end:3140e8da:start=1427306427954747720,finish=1427306428622564267,duration=667816547
[0K
[31;1mThe command "phpunit -c travis.xml" exited with 139.[0m

Done. Your build exited with 1.
```
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling dffaa9d on feature/0.0.7-alpha into 1955926 on develop.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling dffaa9d on feature/0.0.7-alpha into 1955926 on develop.

jeremykendall added a commit that referenced this pull request Mar 25, 2015
@jeremykendall jeremykendall merged commit cede73e into develop Mar 25, 2015
@jeremykendall jeremykendall deleted the feature/0.0.7-alpha branch March 25, 2015 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throw http 401 rather than redirect to 'login'
2 participants