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

Undefined index #6

Closed
Chi-teck opened this issue Jan 4, 2012 · 1 comment
Closed

Undefined index #6

Chi-teck opened this issue Jan 4, 2012 · 1 comment
Assignees

Comments

@Chi-teck
Copy link

Chi-teck commented Jan 4, 2012

I just restored default error handler and got multiple notices.

Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer. No buffer to delete in D:\www\flight\net\Response.php on line 154
Notice: Undefined index: router in D:\www\flight\core\Dispatcher.php on line 74
Notice: Undefined offset: 1 in D:\www\flight\net\Router.php on line 61
Notice: Undefined index: router in D:\www\flight\core\Dispatcher.php on line 74
Notice: Undefined index: request in D:\www\flight\core\Dispatcher.php on line 74
Notice: Undefined index: HTTP_X_REQUESTED_WITH in D:\www\flight\net\Request.php on line 50
Notice: Undefined index: CONTENT_TYPE in D:\www\flight\net\Request.php on line 54
Notice: Undefined index: CONTENT_LENGTH in D:\www\flight\net\Request.php on line 55
Notice: Undefined index: GET in D:\www\flight\net\Router.php on line 123
Strict Standards: Only variables should be passed by reference in D:\www\flight\Flight.php on line 279
hello world!
Notice: Undefined index: response in D:\www\flight\core\Dispatcher.php on line 74

Here is my code:

require 'flight/Flight.php';
restore_exception_handler();
restore_error_handler();
error_reporting (-1);
Flight::route('/', function(){
  echo 'hello world!';
});
Flight::start();
@ghost ghost assigned mikecao Jan 4, 2012
@mikecao
Copy link
Collaborator

mikecao commented Jan 5, 2012

Fixed in commit 8300887

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

No branches or pull requests

2 participants