|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7365 php_value error_reporting doesn't work for me
Submitted: 2000-10-20 07:27 UTC Modified: 2002-04-01 00:00 UTC
Avg. Score:4.3 ± 0.9
Reproduced:5 of 5 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (20.0%)
From: alex-spam at rdc dot ru Assigned:
Status: No Feedback Package: PHP options/info functions
PHP Version: 4.1.1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: alex-spam at rdc dot ru
New email:
PHP Version: OS:


 [2000-10-20 07:27 UTC] alex-spam at rdc dot ru
PHP version 4.0.3, compiled as DSO module.
I want to disable warnings, so I have:

   php_value error_log "/tmp/phperr.log"
   php_value error_reporting 0     # disabled EVERYTHING

'faulty' code (line 120:

In browser when I request the page, I get:
   Warning: Undefined index: replies in /home/www-html/htdocs/forum/ on line 120
, this is a warning I guess, but they should be disabled

phpinfo() says about my configuration:
error_log             /tmp/phperr.log       no value
error_reporting       0                     no value
, so it seems that config is read ok

/tmp/phperr.log doesn't get created. If I write
   php_flag display_errors 0

It disables all error reporting whatsoever, but it makes debugging
nearly impossible. Error log isn't created in this case as well.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-12 12:51 UTC]
this seems to be fixed in both 4.0.4 and current CVS. if you experience the same behavior after update, please reopen this bug report.
 [2002-02-28 12:47 UTC] norman at norman dot com dot br
I still get this problem with PHP 4.1.1, compiled as a DSO module:

This doesnt work in apache .conf files:
  php_value error_log "/tmp/phperr.log"
  php_value error_reporting 0     

Just this also doesnt work:
  php_value error_reporting 0

In both previous cases, I still get warnings shown...

But the flag WORKS:
  php_flag display_errors 0

 [2002-02-28 19:41 UTC]
error_reporting should be able to changed anywhere.

PHP_INI_ENTRY("error_reporting",			NULL,		PHP_INI_ALL,		OnUpdateErrorReporting)

Could you try snapshot to see if it helps?
 [2002-04-01 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-05-15 18:37 UTC] kosnarova dot alena at seznam dot cz
hlavi&#269;ka XHTML!!!
  $Spojeni = mysql_connect("", "hn_kosik", "nazdar");							
  mysql_select_db("hn_kosik", $Spojeni);									
  mysql_query("DELETE FROM chat WHERE time < ".(TIME()-600), $Spojeni);						
  if ($_GET["logout"]) {											
    mysql_query("UPDATE uzivatele SET posledni_akce = ".(time()-600)." WHERE id = '".$_SESSION["idUzivatele"]."'" , $Spojeni);	
    $_SESSION ["idUzivatele"] = "";						
  if($_GET["send"]) {													
    $Dotaz = mysql_query("SELECT id FROM uzivatele WHERE nick = '".$_POST["nick"]."' AND heslo = '".MD5($_POST["heslo"])."'", $Spojeni);
    $vysledek = mysql_fetch_array($Dotaz);									
    if ($vysledek["id"] != "") {										
      $_SESSION ["idUzivatele"] = $vysledek["id"];									
      mysql_query("UPDATE uzivatele SET posledni_akce = ".time()." WHERE id = '".$vysledek["id"]."'" , $Spojeni);	
 if ($_GET["message"])  {												
   mysql_query("INSERT INTO chat (odesilatel,adresat,cas,time,zprava) VALUES (".$_SESSION["idUzivatele"].",
    mysql_query("UPDATE uzivatele SET posledni_akce = ".time()." WHERE id = '".$vysledek["id"]."'" , $Spojeni);		
  if ($_SESSION["idUzivatele"] == "") {										
  <form action="index.php?send=true" method="post">
    <tr><td>Nick</td><td><input name="nick" type="text" /></td></tr>
    <tr><td>Heslo</td><td><input name="heslo" type="password" /></td></tr>
    <tr><td><a href="registrace.php">Registrace</a></td><td><input name="Registrace" type="submit" /></td></tr>
  if ($_SESSION["idUzivatele"] != ""){									
  <div id="zpravy">
     $Dotaz = mysql_query("SELECT uzivatele.nick,chat.cas,chat.zprava FROM chat INNER JOIN uzivatele ON = chat.odesilatel 
     WHERE chat.adresat = ".$_SESSION["idUzivatele"]." OR chat.adresat = 0 ORDER BY time DESC", $Spojeni);
    while ($vysledek = mysql_fetch_array($Dotaz)) {							
      Echo "<p>".$vysledek["cas"]." ".$vysledek["nick"].":".$vysledek["zprava"]."</p>";				

<div id="uzivatele">
    $Dotaz = mysql_query("SELECT nick FROM uzivatele WHERE posledni_akce > ".(time()-600),$Spojeni);			
    while ($vysledek = mysql_fetch_array($Dotaz)) {									
      Echo "<li>".$vysledek["nick"]."</li>";									
 <li><a href="index.php?logout=true">Odhlasit se</a></li>

<div id="psani">
 <form action="index.php?message=true" method="post">
  <input name="zprava" type="text">
  <select name="adresat">
    <option value="0">vsem</option>
    $Dotaz = mysql_query("SELECT id,nick FROM uzivatele WHERE posledni_akce > ".(time()-600),$Spojeni);		
    while ($vysledek = mysql_fetch_array($Dotaz)) {								
      Echo "<option value = \"".$vysledek["id"]."\">".$vysledek["nick"]."</option>";	
  <input type="submit">
 [2007-05-15 18:41 UTC] kosnarova dot alena at seznam dot cz
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
<html xmlns="" xml:lang="cs" lang="cs">
 <head><!--  ?&#269;&#345;???&#268;&#344;?? -->
  <meta name="generator" content="PSPad editor," />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  if($_GET["send"]) {												

    $Spojeni=mysql_connect("", "hn_kosik", "nazdar");							

    mysql_select_db("hn_kosik", $Spojeni);									
															// pracovat
    $Dotaz = mysql_query("SELECT COUNT(*) AS pocet FROM uzivatele WHERE nick = '".$_POST["nick"]."'", $Spojeni);	// dotaz, jenz vrati pocet uzivatelu

    $vysledek = mysql_fetch_array($Dotaz);									

    if ($vysledek["pocet"]!= 0) {										
      Echo "Uzivatel jiz existuje";   										

    } else if($_POST["nick"] == "") {										
      Echo "Neni zadan nick";

    } else if($_POST["heslo"] == "") {											
	Echo "Neni zadane heslo";

    } else if($_POST["heslo"] != $_POST["overeni_hesla"]) {								
      Echo "Spatne heslo";												

    } else {														
      mysql_query("INSERT INTO uzivatele (nick,heslo) VALUES ('".$_POST["nick"]."','".MD5($_POST["heslo"])."')", $Spojeni);	// je vytvoren novy zaznam


   <form action="registrace.php?send=true" method="post">
    <tr><td>nick</td><td><input name="nick" type="text" /></td></tr>
    <tr><td>heslo</td><td><input name="heslo" type="password" /></td></tr>
    <tr><td>overeni hesla</td><td><input name="overeni_hesla" type="password" /></td></tr>
    <input type="submit" />
 [2007-05-15 20:15 UTC] kosnarova dot alena at seznam dot cz
  `odesilatel` int(11) NOT NULL,
  `adresat` int(11) NOT NULL,
  `cas` varchar(8) collate utf8_czech_ci NOT NULL,
  `time` bigint(20) NOT NULL,
  `zprava` varchar(255) collate utf8_czech_ci NOT NULL

-- --------------------------------------------------------

-- Struktura tabulky `uzivatele`

CREATE TABLE `uzivatele` (
  `id` int(11) NOT NULL auto_increment,
  `nick` varchar(30) collate utf8_czech_ci NOT NULL,
  `heslo` varchar(50) collate utf8_czech_ci NOT NULL,
  `stav` tinyint(1) NOT NULL,
  `posledni_akce` bigint(20) NOT NULL,
  PRIMARY KEY  (`id`)
 [2007-05-15 20:22 UTC] kosnarova dot alena at seznam dot cz
Kachnovo CSS na HTML str?nky.....

/* CSS Document */
body {text-align:center; }
#prezentace { width: 800px;
              margin: auto;
#hlavicka { height: 100px;
            width:  780px;
            float: center;
            clear: both;
#obsah {    text-align: left;
            width: 600px;
            float: right;
            background-color: white;
#menu {     text-align: left;
            width: 170px;
            height: 500px;
            float: left;
            background-color: white;
#paticka {  width: 100%;
            background-color: #0000cc;;
            float: left;}
 [2008-07-13 03:03 UTC] udocproject at yahoo dot com
Try creating a PHP file to display what the "phpinfo();" function will return about the PHP environment.

From that information, see if it matches where the PHP engine is looking for "PHP.ini" and then provide it to that path or correct it so that the configuration file is actually found and loaded.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Mar 04 22:01:30 2024 UTC