[PHP] Re: Exception not being caught

2009-07-17 Thread Lupus Michaelis
Weston C a écrit : If it's catchable, why isn't it caught in my example? This is well-documented here -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org Seeking for a position -- PHP General Mailing Lis

[PHP] Re: Exception handling with file()

2008-02-11 Thread Al
I've just started using Try/catch and found the doc is a bit weak. Best I can tell most, and likely all, our regular system functions do not "throw " and an exception for the Exception handler. Thus, you can put your code in a personal function, with a throw, or use the old fashion way, e.g.,

Re: [PHP] Re: Exception

2005-12-04 Thread Anas Mughal
I don't know about PHP, however, in other languages, exception throwing and catching is expensive. As Curt put it, exception handling should be reserved for truly exceptional cases: - DB connection failure - SOA connectivity failure General errors like the user not completing a form, should be ha

[PHP] Re: Exception

2005-12-04 Thread Christian Herrnbock
mr php wrote: > Hello > Is it good to use exception handling for error handling or I should use > only for exceptions? > For example: > Is it good to throwing user input errors with throw new Exception(). > Thanks Hello, I would also go by keeping them separate; it helps both in logic-flow, and

[PHP] Re: Exception number: c0000005 (access violation

2004-01-11 Thread DvDmanDT
Doesn't that mean the threads try to access the same variable at the same time? Or is it 'The memory could not be read/written'.. If it's the latter one... Tends to happend on free() in my C programs/extensions in XP... It's really strange accutually.. I'm starting to suspect some virus or somethin