f.haeder.net

Search

Items tagged with: xdebug

#xdebug let suppressed warnings/errors scream:
SCREAM: Error suppression ignored for
Warning: file_get_contents(/../phptmp/friendica/daemon.pid): failed to open stream: No such file or directory in /../friendica/bin/daemon.php on line 67

This whole thing can be done otherwise:
- remove the @ from it
- use file_exists() or is_readable() to check if file exists
- if so, read it, otherwise skip further parts

This leads to better code. In addition to that, maybe this particular thing can be encapsulated away in a class?
 
You may have to install and enable #XDebug module to get a nice debug backtrace. :-) And maybe you need to enable some options for it to output more messages, e.g. about local variables and such.
 
newer older