[xdebug-general] Re: Multiline array declaration

From: Mauro C. <incastrix[@]yahoo.it>
Date: Tue, 25 Mar 2008 18:17:54 +0000 (GMT)

----- Messaggio originale -----
> Da: Derick Rethans <derick[@]xdebug.org>
> A: Mauro C. <incastrix[@]yahoo.it>
> Cc: xdebug-general[@]lists.xdebug.org
> Inviato: Marted́ 25 marzo 2008, 11:32:13
> Oggetto: Re: [xdebug-general] Multiline array declaration
>
> On Mon, 24 Mar 2008, Mauro C. wrote:
>
> > consider this code:
> >
> > > > $array = array (
> > "scheme" => "http");
> > ?>
> >
> > if I set breakpoint at line 2 not stop.
> > it stop if I set a breakpoint on line 3.
>
> I can't do much about this. For PHP this code translates to:
>
> compiled vars: !0 = $array
> line # op fetch ext return operands
> -------------------------------------------------------------------------------
> 3 0 EXT_STMT
> 1 INIT_ARRAY ~0 'http',
> 'scheme'
> 2 ASSIGN !0, ~0
> 5 3 EXT_STMT
> 4 RETURN 1
>
> As you can see, PHP sees everything only on line 3. :/

Ok, need to compute breakpoint set and move it to the end of declaration.

Thanks,

Mauro Casciari

>
> regards,
> Derick
> --
> Like Xdebug? Send a postcard: http://derickrethans.nl/xdebug_2_released.php
> Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
>

      Inviato da Yahoo! Mail.
Tanti modi per restare in contatto con chi vuoi.
http://it.docs.yahoo.com/mail/overview/index.html
Received on Tue Mar 25 2008 - 19:18:39 GMT

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