Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8576887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:01:52+00:00 2026-06-11T20:01:52+00:00

When I was going over error handling in php’s manual, someone posted an interesting

  • 0

When I was going over error handling in php’s manual, someone posted an interesting comment regarding a possible conflict. Here’s the link: http://www.php.net/manual/en/errorfunc.configuration.php.

Basically, it stated that calling session_start() before error_reporting() would cause error_reporting() to behave incorrectly. Instead, the order would have to be flipped. I was curious of anyone experienced this issue before.

More importantly, though, if there is an issue, how will that affect classes? For instance, if I were to implement a class – such as user login – with it’s own specific error handling system involving error_reporting(), would there be a conflict? To be more specific, if I had a file with session_start() then I call the class like I stated above.

Thanks in advanced.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:01:54+00:00Added an answer on June 11, 2026 at 8:01 pm

    First, the two functions are obviously completely unrelated.

    Second, I’ve called error_reporting both before and after session_start and never witnessed a problem. No one who uses my framework has reporting any issues either. It’s best to set error_reporting once near the start of the application, but sometimes I’ll set it at a deeper level when debugging a specific section of other people’s code.

    However, if you were to output errors (display errors on) before starting the session, you can get header warnings if you’re not output buffering.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm going slidely mad over here, maybe someone can help me figure out what's
Why does this give me parse error? going crazy over here.. I have this
I'm going over the jquery widget here: http://blog.davidpadbury.com/2010/10/11/bdd-testing-of-jquery-plugins-using-jasmine/ The plugin is called like so:
This error seems to be posted all over the place but each one seems
I was going over some old C code (listed below) with a view to
I am going over/studying the facebook code that was leaked in 2007, I notice
I am going over a past paper for a database course I am taking
So we start Scrum today and start going over story points estimates. The first
I've moved to a new project team and while going over the codebase, found
as we know, the loop X instruction is going over X until ECX =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.