Wiec takie 2 metody obsluguja mi bledy w calym skrypcie
CODE
set_error_handler( 'error_handler' );
set_exception_handler( 'exception_handler' );
function error_handler( $code, $message, $file = 0, $line = 0 )
{
$all = "Błąd: $code \nTreść: $message \nPlik: $file \nLinia: $line\n";
print $all;
$all = "\n".date('H:m:s')." ".$all;
error_log( $all, 3, 'log/log'.date('y-m-d').'.txt' );
}
function exception_handler( $e )
{
error_handler( $e->getCode(), $e->getMessage(), $e->getFile(), $e->getLine() );
}
natomiast błąd jest wyrzucany przez następującą funkcje klasy Allegro
CODE
public function wystaw_aukcje( $localId )
{
$this->fields = array(
'sessionHandle' => self::$sessionId,
'fields' => $this->fields,
'localId' => $localId,
);
return self::$soapClient->doNewAuctionExt( $this->fields );
}
funkcje wystaw_aukcje wywołuje już w programie głównym wszystkie pola są poprawne, bo średnio na 500 aukcji wyskoczy jeden błąd zależy mi poprostu na tym, żeby ten błąd nie przerywał programu