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

Fix assertion failure on unclean shutdown #1510

Merged
merged 2 commits into from Nov 3, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Test case for #1509
  • Loading branch information
sjinks committed Nov 2, 2013
commit b7f69e9ebbf03adf3c4ecbac0306e864fb6fd651
12 changes: 12 additions & 0 deletions ext/tests/issue-1509.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--TEST--
Assertion failure on unclean shutdown - https://github.com/phalcon/cphalcon/issues/1509
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
$di = new \Phalcon\DI();
$di->set('url', function() { return new NonExistingClass; });
$di->get('url');
?>
--EXPECTF--
Fatal error: Class 'NonExistingClass' not found in %s on line %d