Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #6964
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "J.O. Aho" <user@example.net> |
| Newsgroups | comp.lang.php |
| Subject | Re: Never log deprecation warnings |
| Date | Thu, 06 Sep 2012 18:04:38 +0200 |
| Lines | 36 |
| Message-ID | <aarvsmFrqpU1@mid.individual.net> (permalink) |
| References | <5048723b$0$293$14726298@news.sunsite.dk> <1971504.EYt92dMKsL@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net Uji2HqVUO+jeIv/rpMF/bAU1HjXJaN7X5XeHiqPbofGT1qGq1AoGBskMnSlxmdwhVa |
| Cancel-Lock | sha1:HHBBDrUh1o4A+3VZB+j7wDYuVno= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120807 Thunderbird/14.0 |
| In-Reply-To | <1971504.EYt92dMKsL@PointedEars.de> |
| Xref | csiph.com comp.lang.php:6964 |
Show key headers only | View raw
On 06/09/12 15:48, Thomas 'PointedEars' Lahn wrote: > Jonathan Stein wrote: > >> Does anyone have an idea about how to never log deprecation warnings - >> even if the code alters error_reporting? >> >> I'm thinking about setting "php_flag log_errors off" in .htaccess to >> block all error logging, but I would prefer to log real errors. > > You could set `error_reporting' to something that includes `& ~DEPRECATED' > (and code that alters error-reporting in more than one place, except for > debugging purposes, is potentially bad code anyway), but … > >> (And no, avoiding deprecated functions is not an option in this case). > > … I strongly suggest you fix the code instead. Why is that IYHO not an > option in this case? > > If you do not fix deprecated code now, it will be a real error in one of the > next PHP versions. Upgrading PHP to that version will cause your > application to break. Not upgrading to it will cause your application to be > inherently insecure as you would not get all the security fixes. You do not > want any of that to happen. Of course they could try to stick to the current version of PHP on the server, but of course then they will be stuck with all the security issues which may be in the PHP (we seen a number of such this year) or try to bakcport fixes to the PHP source code and build it. Of course the absolute simplest thing to do is to fix the PHP scripts, have to agree with Thomas and Jerry on this one. -- //Aho
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-06 11:51 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-06 09:10 -0400
Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-06 15:42 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-06 11:26 -0400
Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-06 15:48 +0200
Re: Never log deprecation warnings "J.O. Aho" <user@example.net> - 2012-09-06 18:04 +0200
Re: Never log deprecation warnings The Natural Philosopher <tnp@invalid.invalid> - 2012-09-06 17:33 +0100
Re: Never log deprecation warnings Scott Johnson <noonehome@chalupasworld.com> - 2012-09-06 10:37 -0700
Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-06 19:49 +0200
Re: Never log deprecation warnings The Natural Philosopher <tnp@invalid.invalid> - 2012-09-06 18:56 +0100
Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-06 21:53 +0200
Re: Never log deprecation warnings "J.O. Aho" <user@example.net> - 2012-09-06 20:41 +0200
Re: Never log deprecation warnings The Natural Philosopher <tnp@invalid.invalid> - 2012-09-06 19:52 +0100
Re: Never log deprecation warnings Denis McMahon <denismfmcmahon@gmail.com> - 2012-09-06 19:59 +0000
Re: Never log deprecation warnings The Natural Philosopher <tnp@invalid.invalid> - 2012-09-06 23:34 +0100
Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-07 00:53 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-06 20:09 -0400
Re: Never log deprecation warnings Scott Johnson <noonehome@chalupasworld.com> - 2012-09-06 18:41 -0700
Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-10 12:43 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-10 07:43 -0400
Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-11 10:38 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-11 08:34 -0400
Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-11 15:06 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-11 09:32 -0400
Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-11 21:53 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-11 16:16 -0400
Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-13 11:31 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 13:01 -0400
Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-13 21:33 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 20:08 -0400
Re: Never log deprecation warnings Michael Fesser <netizen@gmx.de> - 2012-09-14 15:41 +0200
Re: Never log deprecation warnings Christoph Becker <cmbecker69@gmx.de> - 2012-09-12 02:28 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-11 21:08 -0400
Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-12 01:16 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-11 20:18 -0400
Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-12 12:09 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-12 08:26 -0400
Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-12 15:42 +0200
Re: Never log deprecation warnings The Natural Philosopher <tnp@invalid.invalid> - 2012-09-12 15:07 +0100
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-12 12:08 -0400
Re: Never log deprecation warnings Shake <QUITAESTO@QUITAESTO.NOES> - 2012-09-12 18:13 +0200
Re: Never log deprecation warnings The Natural Philosopher <tnp@invalid.invalid> - 2012-09-12 17:28 +0100
Re: Never log deprecation warnings Shake <QUITAESTO@QUITAESTO.NOES> - 2012-09-12 18:37 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-12 15:01 -0400
Re: Never log deprecation warnings Anders Wegge Keller <wegge@wegge.dk> - 2012-09-12 21:35 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 12:53 -0400
Re: Never log deprecation warnings Shake <alex.estevezQUENO@QUENOfilnet.es> - 2012-09-12 21:39 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 12:55 -0400
Re: Never log deprecation warnings Shake <QUITAESTO@QUITAESTO.NOES> - 2012-09-13 19:24 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 15:02 -0400
Re: Never log deprecation warnings Shake <QUITAESTO@QUITAESTO.NOES> - 2012-09-13 21:12 +0200
Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-13 22:20 +0200
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 20:13 -0400
Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 20:10 -0400
Re: Never log deprecation warnings Tim Streater <timstreater@greenbee.net> - 2012-09-12 23:13 +0100
csiph-web