Reply to Re: [PHP] Quick Poll: PHP 4 / 5

Your name:

Reply:


Posted by Oliver Grδtz on 09/19/05 16:37

Rasmus Lerdorf schrieb:
> [...]
> What do we do with code like this? If you follow it through it is
> essentially doing:
>
> 3 = "banana";

This is obviously totally wrong and has to be noted as wrong, hence
E_NOTICE. Since it can be dealt with without rendering the script
unexecutable raising a fatal error in PHP5 is wrong => switch that to
E_NOTICE, too.

But the problem for a lot of people using PHP applications simply is
that they had perfectly running code and they weren't getting any
notices at all. Now they still have working code but this one error in
code they haven't written is throwing notices at them like hell.

The quick answer is "deactivate error reporting for production systems",
but this is not a real solution for the PHP 4.x platform. People _using_
foreign code expect to get consistent behaviour from their applications.
So the report level for this should be configurable for the 4.x branch
with silence as default.

AllOLLi
____________
"The good news is: The whiskey works."
[Lost in Translation]

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация