[xdebug-general] Re: Multiline array declaration

From: Derick Rethans <derick[@]xdebug.org>
Date: Tue, 25 Mar 2008 11:32:13 +0100 (CET)

On Mon, 24 Mar 2008, Mauro C. wrote:

> consider this code:
>
> <?php
> $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. :/

regards,
Derick

-- 
Like Xdebug? Send a postcard: http://derickrethans.nl/xdebug_2_released.php
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Tue Mar 25 2008 - 11:32:14 GMT

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