[PHP] Re: if elseif elseif elseif....

2009-03-05 Thread Davi Ramos
I tought you forgot to initializae the $obligatoryFieldNotPresent variable, as PHP create variables when they are initialized, the $obligatoryFieldNotPresent variable is created inside the if. $obligatoryFieldNotPresent = 0; if (strlen($_POST["titleIN"]) == 0 ) { $obligatoryFieldNotPre

[PHP] Help with a potential bug

2009-02-27 Thread Davi Ramos
Can someone help me find the smallest block of code that is making Apache SEGV? Actually the code is about 30 lines and actually depends with Doctrine (which I think it is not causing the crash as well, but it is combined with something else). I also make use of user defined stream wrappers. These

[PHP] Re: Best error handling

2009-02-27 Thread Davi Ramos
n Rixham wrote: > Davi Ramos wrote: > >> Hi. I have a kind of webserver that certain applications communicate with. >> The problem is that the script (named peer.php) must output data as xml. >> Thats ok (thanks to XMLWriter). The problem is that when some error occurs >>

[PHP] Best error handling

2009-02-27 Thread Davi Ramos
Hi. I have a kind of webserver that certain applications communicate with. The problem is that the script (named peer.php) must output data as xml. Thats ok (thanks to XMLWriter). The problem is that when some error occurs (those note catchable by set_error_handler) I have no control on data being