vasanthgk1991 / gwtphp

Automatically exported from code.google.com/p/gwtphp
1 stars 0 forks source link

GWT 2.0 #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to use GWTPHP with GWT 2.0 and i can't get it working.
I think the problem is in the function prepareToRead() in the class
ServerSerializationStreamReader.class.php

i cannot get tokens parser.

Any advise or suggestion ? 

thank you in advance
Giorgio

Original issue reported on code.google.com by giorgio....@gmail.com on 25 Mar 2010 at 11:13

GoogleCodeExporter commented 9 years ago
This issue can be fixed with this code 
ServerSerializationStreamReader.class.php, method prepareToRead:

        while (false != ($nextIdx = strpos ( $encodedTocens, "|", $idx))) {
            $current = substr($encodedTocens,$idx,$nextIdx-$idx);
            $this->tokenList[] =($current);
            $idx = $nextIdx + 1;
        }

It fixes the parser problem that GWTPHP can run the method and give the result. 
But the GWT 2 client still can't understand the response.

Original comment by migracao...@gontijo.org on 17 Jul 2010 at 8:00

GoogleCodeExporter commented 9 years ago
To get it working with GWT 2, change the code below at 
AbstractSerializationStream.class.php:

//before
private $version = 3;

//after
private $version = 5;

Cheers,
Henrique

Original comment by migracao...@gontijo.org on 17 Jul 2010 at 9:55