[xdebug-general] Re: isset & empty not shown in traces

From: Yannick Warnier <ywarnier[@]beeznest.org>
Date: Thu, 03 May 2007 14:59:03 +0200

Le jeudi 03 mai 2007 à 09:05 +0200, Derick Rethans a écrit :
> On Wed, 2 May 2007, Sean Coates wrote:
>
> > Yannick Warnier wrote:
> > > Hello,
> > >
> > > I'm using xdebug 2.0.0 RC3. Is there a reason why calls to isset() and
> > > empty() are not reported in traces?
> >
> > I suspect for the same reason that instanceof and == are not shown in
> > traces (they're not actual functions).
>
> That is correct, isset() and empty() are language constructs in PHP.

OK, thanks to both.
I suppose the classic way of getting around that (if needs be) is to
write a wrapper function like
  function myisset($var){return isset($var);}
which I did and it worked fine (but you have to replace all the isset()
calls by myisset() calls in the script that worries you).

Yannick
Received on Thu May 03 2007 - 14:59:06 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST