php - error control operator not working -
php - error control operator not working -
my question similar one. however, error command operator not work me.
with next code:
$this->fp = @fsockopen($this->ip, $this->port, $errno, $errstr, $this->timeout);
i still error message:
fsockopen(): unable connect xxx.xxx.xxx.xx:xxxxx (a connection effort failed because connected party did not respond after period of time, or established connection failed because connected host has failed respond. )
is possible can have error command operators disabled?
i found problem! i've been using own error handler
set_error_handler('my_error_handler');
and prints out errors irregardless if @
has been prefixed or not.
fyi - code php manual demonstrates how errors can suppressed within user defined error handler:
// if error has been supressed @ if (error_reporting() == 0) { return; }
php
Comments
Post a Comment