Bug 572851 - Lots of PHP Deprecated warnings in pnp4nagios
Summary: Lots of PHP Deprecated warnings in pnp4nagios
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pnp4nagios
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Xavier Bachelot
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-12 07:48 UTC by Jan ONDREJ
Modified: 2010-11-04 23:33 UTC (History)
2 users (show)

Fixed In Version: pnp4nagios-0.4.14-4.fc14
Clone Of:
Environment:
Last Closed: 2010-11-04 13:39:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fixed new and ereg* functions. (920 bytes, patch)
2010-03-12 07:48 UTC, Jan ONDREJ
no flags Details | Diff

Description Jan ONDREJ 2010-03-12 07:48:03 UTC
Created attachment 399574 [details]
Fixed new and ereg* functions.

Description of problem:
My apache logs on nagios server are filling quicly. There are lots of PHP Deprecated warnings from pnp4nagios. I can't turn off PHP deprecation warnings in php configuration, because this setting is reset in pnp4nagios index.php.
There was more than 1 GB used by these error messages.

Version-Release number of selected component (if applicable):
pnp4nagios-0.4.14-2.fc12.i686

How reproducible:
always

Steps to Reproduce:
1. open pnp4nagios pages
2. see logs (on my system /var/log/httpd/ssl_error_log
  
Actual results:
PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/share/nagios/html/pnp4nagios/include/function.inc.php on line 1032, referer: https://stats.bart.sk/summary.php
PHP Deprecated:  Function eregi() is deprecated in /usr/share/nagios/html/pnp4nagios/include/function.inc.php on line 1541, referer: https://stats.bart.sk/summary.php

Expected results:
no warnings

Additional info:
Attaching a patch, which should fix this problem. Please review it and apply.

Comment 1 Fedora Update System 2010-09-27 21:16:48 UTC
pnp4nagios-0.4.14-4.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/pnp4nagios-0.4.14-4.fc13

Comment 2 Fedora Update System 2010-09-27 21:16:55 UTC
pnp4nagios-0.4.14-4.fc12 has been submitted as an update for Fedora 12.
https://admin.fedoraproject.org/updates/pnp4nagios-0.4.14-4.fc12

Comment 3 Fedora Update System 2010-09-27 21:17:01 UTC
pnp4nagios-0.4.14-4.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/pnp4nagios-0.4.14-4.fc14

Comment 4 Fedora Update System 2010-09-28 05:27:23 UTC
pnp4nagios-0.4.14-4.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update pnp4nagios'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/pnp4nagios-0.4.14-4.fc13

Comment 5 Bug Zapper 2010-11-03 20:02:17 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Jan ONDREJ 2010-11-04 13:39:02 UTC
I think this is already fixed, just not closed. Closing as currentrelease.

Comment 7 Fedora Update System 2010-11-04 23:31:19 UTC
pnp4nagios-0.4.14-4.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2010-11-04 23:32:44 UTC
pnp4nagios-0.4.14-4.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2010-11-04 23:33:37 UTC
pnp4nagios-0.4.14-4.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.