Re: [PHP-DEV] Re: Tokenizer weirdness

2002-05-24 Thread Sebastian Bergmann

Sebastian Bergmann wrote:
 Andrei Zmievski wrote:
 That's not what I get. Did you try the latest CVS version?

  Yes.

  Never mind, looks like it's a browser rendering thing.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Tokenizer weirdness

2002-05-23 Thread Sebastian Bergmann

Andrei Zmievski wrote:
 Are you post-processing it somehow?

  No: ?php print_r(token_get_all('?php phpinfo(); ?'));?

Array
(
[0] = Array
(
[0] = 353
[1] =  Array
(
[0] = 304
[1] = phpinfo
)

[2] = (
[3] = )
[4] = ;
[5] = Array
(
[0] = 356
[1] =  
)

[6] = Array
(
[0] = 355
[1] = ?
)

)

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: Tokenizer weirdness

2002-05-23 Thread Andrei Zmievski

 No: ?php print_r(token_get_all('?php phpinfo(); ?'));?
 
 Array
 (
 [0] = Array
 (
 [0] = 353
 [1] = Array
 (
 [0] = 304
 [1] = phpinfo
 )
 
 [2] = (
 [3] = )
 [4] = ;
 [5] = Array
 (
 [0] = 356
 [1] = )
 
 [6] = Array
 (
 [0] = 355
 [1] = ?
   )
   )

That's not what I get. Did you try the latest CVS version?

-Andrei   http://www.gravitonic.com/

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: Tokenizer weirdness

2002-05-23 Thread Sebastian Bergmann

Andrei Zmievski wrote:
 That's not what I get. Did you try the latest CVS version?

  Yes.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DEV] Re: Tokenizer weirdness

2002-05-23 Thread James Cox

I just gave this a go and got:

:~:# php -q -f t.php 
Array
(
[0] = Array
(
[0] = 354
[1] = ?php 
)

[1] = Array
(
[0] = 305
[1] = phpinfo
)

[2] = (
[3] = )
[4] = ;
[5] = Array
(
[0] = 357
[1] =  
)

[6] = Array
(
[0] = 356
[1] = ?
)

)

-- james

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: Tokenizer weirdness

2002-05-23 Thread Stig S. Bakken

On Thu, 2002-05-23 at 19:26, Sebastian Bergmann wrote:
 Andrei Zmievski wrote:
  That's not what I get. Did you try the latest CVS version?
 
   Yes.

Windows issue?  Does anyone else using Windows see this?

 - Stig


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DEV] Re: Tokenizer weirdness

2002-05-23 Thread James Cox

it's not just windows.

 -Original Message-
 From: Stig S. Bakken [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 23, 2002 11:28 PM
 To: Sebastian Bergmann
 Cc: Andrei Zmievski; [EMAIL PROTECTED]; PHP Developers
 Subject: Re: [PHP-DEV] Re: Tokenizer weirdness
 
 
 On Thu, 2002-05-23 at 19:26, Sebastian Bergmann wrote:
  Andrei Zmievski wrote:
   That's not what I get. Did you try the latest CVS version?
  
Yes.
 
 Windows issue?  Does anyone else using Windows see this?
 
  - Stig
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: Tokenizer weirdness

2002-05-22 Thread Andrei Zmievski

  Why do I get
 
 Array
 (
 [0] = Array
 (
 [0] = T_OPEN_TAG
 [1] = Array
 (
 [0] = T_STRING
 [1] = phpinfo
 )
 
 [2] = (
 [3] = )
 [4] = ;
 [5] = Array
 (
 [0] = T_WHITESPACE
 [1] = )
 
 [6] = Array
 (
 [0] = T_CLOSE_TAG
 [1] = ?
 )
 
 )
 
   as tokens for
 
 ?php phpinfo(); ?
 
 Note that array index [1] is missing. (It's not reallymissing, just
 put under [0], not the 'root')

I don't get that result. Are you post-processing it somehow? For me, the result
of:

var_dump(token_get_all('?php phpinfo(); ?'));

is this:

array(7) {
  [0]=
  array(2) {
[0]=
int(353)
[1]=
string(6) ?php 
  }
  [1]=
  array(2) {
[0]=
int(304)
[1]=
string(7) phpinfo
  }
  [2]=
  string(1) (
  [3]=
  string(1) )
  [4]=
  string(1) ;
  [5]=
  array(2) {
[0]=
int(356)
[1]=
string(1)  
  }
  [6]=
  array(2) {
[0]=
int(355)
[1]=
string(2) ?
  }
}


-Andrei   http://www.gravitonic.com/

Any sufficiently advanced Operating System
is indistinguishable from Linux.
  - Jim Dennis

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php