LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2011, 06:53 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
error_reporting in php.ini, how to configure?


Hi!
What exactly should "error_reporting" line look like to enable all error reportings?

Comments say:
Code:
;   Developments Value: E_ALL | E_STRICT
So should it be
Code:
error_reporting = E_ALL | E_STRICT
?

Last edited by Mr. Alex; 07-27-2011 at 07:39 AM.
 
Old 07-27-2011, 07:10 AM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
yes this is fine:
Code:
error_reporting = E_ALL | E_STRICT
but you need to turn on the display of these errors:
Code:
display_errors = On
Also don't forget to turn that off on production server

Last edited by angel115; 07-27-2011 at 07:13 AM.
 
1 members found this post helpful.
Old 07-28-2011, 04:32 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
I have
Code:
display_errors = On
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; display_startup_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

error_reporting = E_ALL | E_STRICT
;   Default Value: E_ALL & ~E_NOTICE
;   Development Value: E_ALL | E_STRICT
;   Production Value: E_ALL & ~E_DEPRECATED
in this file and tried to execute php code:

Code:
<?php
$a = 9 / 0;
echo $a;
?>
It gave me no error. Just blank page.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php.ini:upload_max_filesize reverts to default when error_reporting = All geokker Linux - Server 4 07-11-2011 10:39 AM
[SOLVED] php.ini.rpmsave instead of php.ini ilvista Linux - Server 3 02-01-2011 04:39 PM
php.ini-dist to php.ini lord-fu Programming 10 05-02-2006 05:24 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
php5 configure with different php.ini file dtra Linux - Software 2 01-19-2005 08:04 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration