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

white space before DOCTYPE tag if _SESSION variables exist #34

Open
nluis3294 opened this issue Sep 21, 2012 · 0 comments
Open

white space before DOCTYPE tag if _SESSION variables exist #34

nluis3294 opened this issue Sep 21, 2012 · 0 comments

Comments

@nluis3294
Copy link

I've been tracking an issue, but I was wondering if anyone else has seen something like this.

My wordpress template has a DOCTYPE tag on the first line. When I have a $_SESSION variable declared, I automatically get 3 lines of white space before the DOCTYPE tag. If I wipe my session, the white space goes away.

I was able to track the problem down to this line:

\library\zend\session.php
approximately line 470
$startedCleanly = session_start();

Right before the session_start(), there is no white space. As soon as the function exits, I have 3 lines of white space.

I did a var_dump(debug_backtrace()), and it seems to arrive at this file/line through Vulnero. But I'm not sure how to track this any further.

This is the debug trace once i get into Bootstrap.
\library\Vulnero\Application\Bootstrap\Bootstrap.php (function=authenticate, approximate line number 386)
\library\Zend\Auth.php
\library\Zend\Auth\Storage\Session.php
\library\Zend\Session\Namespace.php

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

//white space line here (goes away if there are no $_SESSION variables)
//white space line here (goes away if there are no $_SESSION variables)
//white space line here (goes away if there are no $_SESSION variables)

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

1 participant