Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Jochem Maas
Justin Burger wrote: Good Morning, I was having a discussion with a fellow PHP Developer this morning and he mentioned that he put's an '@' sign in front of all function calls, and every time he accesses an array; I know that this is sloppy, and dangerous, but I don't know exactly what this expo

Re[2]: [PHP] Error Suppression with '@'

2005-08-02 Thread Richard Davey
Hello Justin, Tuesday, August 2, 2005, 8:43:09 PM, you wrote: JB> Does suppressing the error only suppress it from the screen, or JB> does it ignore the error? JB> ie: is the error still logged? It will ignore it totally, it doesn't even make it as far as the log files - which is why in most cas

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Kristen G. Thorson
Example: I was working on a HORRIBLE piece of code for a cart app. The original programmer had a line like this: $result = mysql_query( "SELECT * FROM user_logins WHERE cookie='".$cookie."'" ); Where $cookie is a session id stored in a cookie (what else? ;). The problem was, he had some

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Justin Burger
Does suppressing the error only suppress it from the screen, or does it ignore the error? ie: is the error still logged? On Aug 2, 2005, at 12:18 PM, John Nichel wrote: Justin Burger wrote: Good Morning, I was having a discussion with a fellow PHP Developer this morning and he menti

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread John Nichel
Justin Burger wrote: Does suppressing the error only suppress it from the screen, or does it ignore the error? ie: is the error still logged? Please reply to the list. I don't know if it still logs the error (assuming you have error logging turned on). -- John C. Nichel ÜberGeek KegWorks

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread John Nichel
Justin Burger wrote: Good Morning, I was having a discussion with a fellow PHP Developer this morning and he mentioned that he put's an '@' sign in front of all function calls, and every time he accesses an array; I know that this is sloppy, and dangerous, but I don't know exactly what this expo

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Matt Darby
Justin Burger wrote: Good Morning, I was having a discussion with a fellow PHP Developer this morning and he mentioned that he put's an '@' sign in front of all function calls, and every time he accesses an array; I know that this is sloppy, and dangerous, but I don't know exactly what this exp

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Rory Browne
On 8/2/05, Justin Burger <[EMAIL PROTECTED]> wrote: > Good Morning, > I was having a discussion with a fellow PHP Developer this morning and he > mentioned that he put's an '@' sign in front of all function calls, and > every time he accesses an array; Any chance of revealing his identity - so tha

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Torgny Bjers
Hello Justin, I would guess that this is mostly performance and memory related. When, for instance, trying to iterate an array, or a directory with files, using @ on all function calls, it will attempt to go through the array, attempting to allocate memory for each item, but when finding it empty/

[PHP] Error Suppression with '@'

2005-08-02 Thread Justin Burger
Good Morning, I was having a discussion with a fellow PHP Developer this morning and he mentioned that he put's an '@' sign in front of all function calls, and every time he accesses an array; I know that this is sloppy, and dangerous, but I don't know exactly what this exposes him to, can any one