Re: [SOAP] Error fetching headers

From: Date: Mon, 03 Jun 2002 12:16:46 +0000
Subject: Re: [SOAP] Error fetching headers
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-47@lists.php.net to get a copy of this message
--- ahristov <ahristov@icygen.com> wrote: > Hi Brad, > I have problems while trying to access this service. > The fatal error is like this : Error fetching http headers. > If I comment the NULLs everything works ok. What version are you running? I think if you use CVS this problem will go away. I plan on releasing another version soon. Yeah I just ran it in the version I have compiled and it worked ok. > I have another problem with the extension. It is not possible to transport > Cyrillic symbols from the server to the client. Probably this is not only > problematic when dealing with cyrillic but probably with other non-english > symbols. Are you sure about this?.. I use the extension for full utf-8 support I transport all sorts of wierd symbols. I even use mb_string to manipulate utf-8 comming from a utf-8 db. > Last but not least there is problem with the integer indexes of arrays. > In case all keys are integers but not sequent and greater than 0. After > transporting them the array is reordered starting from 0 to count()-1. I > think that the problem is in the server part. On the other hand if to the > same array is added a value with string key than the nothing changes. I've > experienced similar problems with array_slice() and some other functions > that are "naughty" enough to change the keys. In my case the keys are > timestamp from nowadays This is true... For this to work it would have to handle sparse array encoding. Which it "will" do someday. There are some other things that it doesn't do with arrays right now ither. To get around this can you cast your timestamps as strings.. Then it will treat the array as a hashtable and you can get what you are looking for. > > > Best regards, > Andrey Hristov > <?php > > $server = new SoapServer('urn:Test'); > $server->setClass('CTest'); > $server->handle(); > > class CTest{ > function BadThings(){ > return array ( > 0 => > array ( > 'task_name' => NULL, > 'task_id' => 1, > ), > 1 => > array ( > 2 => > array ( > 0 => > array ( > 'task_name' => NULL, > 'task_id' => 2, > ), > 1 => > array ( > 6 => > array ( > 0 => > array ( > 'task_name' => NULL, > 'task_id' => 6, > ), > ), > ), > ), > ), > ); > }/* bad things */ > }/* CTest */ > ?> > > > -- > PHP Soap Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com

« previous php.soap (#47) next »